News for hackers. Stuff that matters.
Re:Ask HN: What would be your “perfect” programming language? by mikewarot on Tuesday September 13, 2022 @07:51PM (#32831604)
I'd start with most of the best parts of Delphi/Free Pascal

Insanely fast recursive descent single pass compilation.

Assignment and equality test have different tokens := vs =

Var parameters instead of messing with pointers

Functions return values, procedures don't

Strings that are automatically reference counted (no allocation or garbage collection to worry about), counted (so you always know how many bytes of text you have), and just work, yet can hold at least a gigabyte

Units for separate compilation

Strong typing

Then I'd add some things from elsewhere

pre and post increment/decrement from C

declarative programming, using a "magical assignment operator" <<==<< or something like that to indicate that the left is always made to equal the expression on the right, and updated any time the expression changes. -- from an experiment called Metamine that was here a few years ago

Re:Ask HN: What would be your “perfect” programming language? by hyperswine on Wednesday September 14, 2022 @05:34AM (#32834950)
Id be fine with delphi if their IDE was available on other systems like linux or mac. I also kinda find fpc a bit verbose and clunky. Something like an elm interface would make sense I think + the points you laid out
Re:Ask HN: What would be your “perfect” programming language? by mikewarot on Wednesday September 14, 2022 @12:19PM (#32839346)
I'm surprised that Delphi isn't available on other platforms.

Lazarus-IDE is... I've run it on a Raspberry Pi Zero W in the past.

I've just switched to Ubuntu 22.04 LTS as my daily driver, and am installing Lazarus here as well.