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
1
u/BrewingHeavyWeather Jul 04 '26
The problem with most of the first paragraph is that it's been tried, and fails horribly, for performance. The CPU prefetching and cache management always does a better job, in the real world, where off-chip memory just keeps getting relatively slower. Compilers don't have sufficient knowledge of the detailed flow of a given program, which can vary across time and users.
Unfortunately, transactions have yet to be well tried. Nobody used AMD's, as they were still too small in the x86 server world when they came out. Intel's were convoluted, buggy, and now being removed. One console emulator has been the only major user of them. Nobody else has had the cojones, since then, to seriously try to implement and gain support for, hardware transactions. That could be a very worthwhile feature, if baked into enough hardware.