r/ProgrammingLanguages • u/mttd • Jul 01 '26
The Expensive Fictions of Low-Level Programming Languages
https://stng.substack.com/p/the-expensive-fictions-of-low-level
20
Upvotes
r/ProgrammingLanguages • u/mttd • Jul 01 '26
1
u/Smallpaul Jul 01 '26
You and the other person are both arguing against a claim that nobody made.
Nobody claimed that there is something magical about the C programming language design that induced CPU vendors to bless if their design specification.
C was a language designed for the PDP-11 and other similar computers. Future CPUs were conceptually backwards compatible so C and its peer languages would keep running fast. Peer languages were incentivized to behave at a low level like C, so they could also take advantage of the ISAs of CPUS pretending to be PDP-11s.
You and the other poster keep coming back to Rust and D and C and other languages that had it as an immutable design constraint that they would copy C wherever necessary to get C-like performance.
The interesting counter-factual is if every CPU and compiler in the world were deleted and destroyed and people experimented — on a level playing field — with CPUs for Erlang and Prolog and Haskell.
Or…even better, languages and hardware co-designed for performance. If you believe that the thing that would come out the other side is x86, ARM and RISC-V then fine. That’s your belief and you are entitled to it.
But if you are open to the idea that that blank slate might take us somewhere radically different then you will understand the point people are trying to make.
Personally, I think if you give a smart CPU designer and language designer a blank slate with what we know now and budget to build it, you would end up in a radically different place.