3 comments

  • baranul 1 hour ago
    It's amazing how underestimated the Object Pascal language is. Certain people or rivals want to write it off or declare it's "dead", yet the language (including various dialects) are still going strong.
    • pjmlp 1 hour ago
      Yeah, it was pity that Borland lost its way, and Apple decided to refocus from Object Pascal into C++.

      Otherwise it would still be a big contender.

      Everything that Zig offers over C as selling point was already there in Object Pascal.

      • applfanboysbgon 59 minutes ago
        Comptime? Vastly superior toolchain? Trivial C interop? Sub-second incremental compilation in large projects? I'm not familiar with Object Pascal at all, so do correct me if I'm wrong, but I'd really be surprised if it has much of Zig's standout features.
        • lelanthran 29 minutes ago
          > Comptime? Vastly superior toolchain? Trivial C interop? Sub-second incremental compilation in large projects?

          No comptime, but everything else, sure, Turbo Pascal (and then Delphi) had.

          Maybe it'll blow your mind (not sure if you find this impressive or not), but Turbo Pascal had sub-second compilation per module on large modules back on my 486 with 4MB of RAM.

          Sure, Zig has more features than Pascal, but not the ones you listed (except, of course, for comptime).

        • pjmlp 42 minutes ago
          Comptime is the only thing going for it.

          Object Pascal compilers were already super fast in MS-DOS hardware!

  • WillAdams 1 hour ago
    I bought Delphi ages ago, but never got very far with it, which I regret.

    I'd love to be able to take it up again, and this document looks very promising for that, esp. paired with:

    https://wiki.freepascal.org/pas2js

    which I now see is supported in Lazarus.

    If someone has an example graphical project which compiles to an HTML page w/ JavaScript using the above, I'd love to see it and a detailed set of build instructions and notes on installing the needed toolchain and deployment. (as a note, I'm currently working in flet.dev using Python which allowed me to get a small prototype up-and-running, but I'm still looking into self-hosting and doing something more complex)

  • jqpabc123 2 days ago
    I was introduced a very long time ago --- aka Delphi 2. I really like the language but there are mainly 2 problems that stand in the way of using it.

    1) The code isn't as "optimized" as it could be.

    2) The talent pool is limited --- chicken or egg issue.

    It has been this way for a very long time so I don't see it changing.

    • smartmic 3 minutes ago
      What do you mean by “not optimized enough“? Binaries created with Free Pascal Compiler are very small, compilation time is super fast and runtime performance was never an issue for the typical system/userland programs. I think in many ways on par or ahead of other mainstream system programming languages.
      • pjmlp 0 minutes ago
        Additionally, it eventually shared the same backend with Borland C++, and nowadays C++ Builder.

        Also Embarcadero has also adopted LLVM, while still having fast build times.

    • mhitza 1 hour ago
      As a different datapoint Pascal is still taught here in Romania in secondary school just as it was the case 20 years ago.

      Bigger problem is that they teach the fundamentals with the abandonware that is turbo pascal instead of using something like the modern Free Pascal Compiler. Which means knowledge of what is possible outside curricula is limited.

      Last year I almost was tasked with porting some Pascal codebase to a modern language. Problem was the project had a bus factor of 1, legacy overengineered and would only compile on windows with some proprietary compiler.

      Maybe that company would use Claude/Codex or something like that, today, to port the project.