←back to thread

358 points ofalkaed | 2 comments | | HN request time: 0.405s | source

Just curious and who knows, maybe someone will adopt it or develop something new based on its ideas.
Show context
Havoc ◴[] No.45556825[source]
Pascal/Delphi - especially in the educational context.

Crazy fast compiler so doesn't frustrate trial & erroring students, decent type system without the wildness of say rust and all the basic programming building blocks you want students to grasp are present without language specific funkiness.

replies(5): >>45557529 #>>45557851 #>>45558541 #>>45558829 #>>45561155 #
le-mark ◴[] No.45557529[source]
Iirc Delphi didn’t have threads, sockets, or OS integration (signals, file watching …). So it wasn’t suited to systems programming ie servers and services. It nailed gui applications, and that was a lot. Maybe freepascal has threads and sockets but imo it was too late.
replies(5): >>45557600 #>>45557730 #>>45557856 #>>45558018 #>>45558406 #
1. badsectoracula ◴[] No.45558406[source]
Delphi 2, the first 32bit version of Delphi, had all of this. Some, like threads, even had wrappers (TThread), but Delphi came with Win32 bindings out of the box so all Win32 functions were available too - and it came bundled with documentation for the APIs. In addition, calling out to a DLL was trivial so even if a function wasn't available, you could just define it. Pretty much anything you could do with a C compiler was possible with Delphi 2 too.

Free Pascal obviously has all of that stuff too.

replies(1): >>45589767 #
2. knotie ◴[] No.45589767[source]
I had the pleasure/pain of maintaining a Delphi 2 app for 6 months in 2014... It was buggy as hell and crashed all the time. All the things you've mentioned were indeed included out of the box. The IDE was pretty much a direct recompile of the of the Delphi 1 IDE with some minimal additions to support Win32. Oh, there was no interfaces (or COM, obviously).

The only reason the company hadn't moved off Delphi 2 was that they hadn't bought the code for a couple of 3rd party components before the 3rd parties went bust... So they were stuck. I had rewritten chunks of it to remove those dependencies before I left, after I had fix the hundreds of thousands of hints and warnings (!).

Delphi 2 was late, and it was rushed out before it was finished. Delphi 3 was rock solid and was the true successor to Delphi 1.