by choeger · 6y ago · 0 comments
The thing is, designing programming languages is a science, but practitioners often considered a craft. Things like the syntax of C++, the undefined behavior of C, the erasure semantics in Java, the weird semantics of Scala, or the minimal type system of Go all stem from that misconception.
Haskell took the science part serious. It is an academic language, but it tought people what can be done with a thorough design. Rust is the first language, as far as I can tell, that takes that mindset and improves practical programming. Rust is just objectively better than C++ in so many aspects. But it would not exist if it were not for Haskell and a plethora of PL research done in that language.
Most likely Rust wouldn't exist had Java and .NET had been properly AOT native compiled since the first version like Delphi, Oberon, Modula-3, which would have taken away many use cases that people kept choosing C or C++ instead.
Or had AT&T not given up on Cyclone and eventually making into a common UNIX language, like it happened with C++.
It's Go who wouldn't then exist, not Rust.
Both of them wouldn't exist.
Go because it is basically Java 1.0 with AOT compilation.
Rust because C++ wouldn't have become as widespread as it currently is.
Stil trying to catch up with Xerox PARC,
> Not in programming terms, but in social terms.
This attitude has changed drastically nowadays.
Lazy-by-default is clearly wrong and clearly a broken design. If that is 'thorough', I fail to see any advantages to 'thoroughness' compared to just making it up as we go along.
And regarding it being "wrong" and "broken", I presume of course that you found inherent problems in the G-machine that you just never came around to publish.
The alternative would be that you are just mentally unable to make the switch away from a strict call-by-value evaluation.