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.
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.
> 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).
And still does. You can get the latest version of Delphi (including a free version for non-commercial use) here: <a href="https://www.embarcadero.com/products/delphi" rel="nofollow">https://www.embarcadero.com/products/delphi
It rocks.
You're also not limited to Delphi. You can use Oxygene <a href="https://www.remobjects.com/elements/oxygene/language" rel="nofollow">https://www.remobjects.com/elements/oxygene/language
> You're also not limited to Delphi. You can use Oxygene <a href="https://www.remobjects.com/elements/oxygene/language" rel="nofollow">https://www.remobjects.com/elements/oxygene/language
If you're not in the mood to rent your compiler, you can also try Lazarus.
baranul · · focus · HN ↗
pjmlp · · focus · HN ↗
Otherwise it would still be a big contender.
Everything that Zig offers over C as selling point was already there in Object Pascal.
applfanboysbgon · · focus · HN ↗
lelanthran · · focus · HN ↗
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).
andsoitis · · focus · HN ↗
And still does. You can get the latest version of Delphi (including a free version for non-commercial use) here: <a href="https://www.embarcadero.com/products/delphi" rel="nofollow">https://www.embarcadero.com/products/delphi
It rocks.
You're also not limited to Delphi. You can use Oxygene <a href="https://www.remobjects.com/elements/oxygene/language" rel="nofollow">https://www.remobjects.com/elements/oxygene/language
lelanthran · · focus · HN ↗
If you're not in the mood to rent your compiler, you can also try Lazarus.
andsoitis · · focus · HN ↗
Also, for non-commercial use, Delphi is free.