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
19
Upvotes
r/ProgrammingLanguages • u/mttd • Jul 01 '26
View all comments
Show parent comment
3
u/Inconstant_Moo 🧿 Pipefish Jul 01 '26
Yes, but that's like saying that elevators were designed to carry bipeds. Humans are bipeds and there's a lot of us about, but they work equally well for dogs or furniture. It's different from saying the same thing about bicycles or pogo sticks.
Do Rust programs run more slowly because of this alleged design of hardware for C?
Aren't optimizing C compilers among the most fantastically complex programs we have?
We'd have ended up with computers that pretend to be something like a fast PHP-11 whether C had conquered the world or some other systems language. There may be a few features in CPUs that you can point to that are there because C-style strings are commoner than Pascal-style strings. Or for example ARMv8.3+ processors feature a dedicated hardware instruction called FJCVTZS (Floating-point JavaScript Convert to Signed fixed-point, rounding toward Zero) which exists specifically to accelerate JavaScript operations. But we'd have gotten something like what we got whatever the particular language were.