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
5
u/Soupeeee Jul 01 '26
A really easy example of where C falls short is auto vectorization. You can't guarantee that the compiler will do it, and despite how good some systems are at figuring it out, the only way to know for sure is to look at the decompiled output.
Adding language constructs to help ensure that vector instructions are used while still having portable code is a very basic solution to what's being proposed here, although it doesn't go nearly far enough.