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
6
u/SwingOutStateMachine Jul 01 '26
There are lots of languages, but they tend to be specialised to one particular class of architecture. For instance, OpenCL, SYCL, CUDA etc all target GPU-like architectures, while OpenMP specialises in multi-core CPU architectures.
You call out differences in memory access, and then accessing across a forest of GPUs: My gut feeling is that this is something that languages won't tackle with much ease. They are, to put it simply, completely different problems (from a compiler perspective). The former is a matter of how the code is optimised, register spilling, data placement, etc, while the latter is much more about data partitioning, and using OS-level drivers to optimality schedule data movement and kernel launches.
Such a language can exist, but it will be big, and will need a big development team behind it. An example would be the Mojo language that Modular are working on (https://www.modular.com/), but even there a lot of the cross-gpu work is handled by a smart runtime, rather than by a compiler.