logoalt Hacker News

pjmlp • today at 1:43 PM • 4 replies • view on 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.


Replies

sehugg • today at 3:19 PM

I recall the turning point was when id used the Watcom compiler for DOOM. Watcom had the 32-bit flat model DOS extender and were starting to add the difficult optimizations. Turbo/Borland Pascal was built for compile and link speed, not even getting a real -O option until Delphi (except for turning off range and stack checking)

➕ show 1 reply
ape4 • today at 3:12 PM

If I remember right, it was memory safe - something C/C++ has yet to achieve.

➕ show 1 reply
applfanboysbgon • today at 2:06 PM

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.

➕ show 3 replies
LoganDark • today at 4:33 PM

> Apple decided to refocus from Object Pascal into C++

IIRC Apple went and made Objective-C(/C++) and then eventually Swift. Not sure if they actually embraced C++ all that much - did they really?

➕ show 1 reply