‹ BackHN Continuity

Thread

Modern Object Pascal Introduction for Programmers

204 points · 90 comments · birdculture

  1. baranul · · focus · HN ↗
    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.
    1. pjmlp · · focus · HN ↗
      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.

      1. applfanboysbgon · · focus · HN ↗
        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.
        1. lelanthran · · focus · HN ↗
          > 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).

          1. andsoitis · · focus · HN ↗
            > (and then Delphi) had.

            And still does. You can get the latest version of Delphi (including a free version for non-commercial use) here: <a href="https:&#x2F;&#x2F;www.embarcadero.com&#x2F;products&#x2F;delphi" rel="nofollow">https:&#x2F;&#x2F;www.embarcadero.com&#x2F;products&#x2F;delphi

            It rocks.

            You&#x27;re also not limited to Delphi. You can use Oxygene <a href="https:&#x2F;&#x2F;www.remobjects.com&#x2F;elements&#x2F;oxygene&#x2F;language" rel="nofollow">https:&#x2F;&#x2F;www.remobjects.com&#x2F;elements&#x2F;oxygene&#x2F;language

            1. lelanthran · · focus · HN ↗
              &gt; You&#x27;re also not limited to Delphi. You can use Oxygene <a href="https:&#x2F;&#x2F;www.remobjects.com&#x2F;elements&#x2F;oxygene&#x2F;language" rel="nofollow">https:&#x2F;&#x2F;www.remobjects.com&#x2F;elements&#x2F;oxygene&#x2F;language

              If you&#x27;re not in the mood to rent your compiler, you can also try Lazarus.

              1. andsoitis · · focus · HN ↗
                Sure. The rent does give you polish, however.

                Also, for non-commercial use, Delphi is free.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.