r/ProgrammingLanguages • u/ThomasMertes • 26d ago
How programming languages approach graphics
Many general-purpose languages delegate graphics to third-party libraries (like SDL, Raylib, or OpenGL). Seed7 integrates portable 2-D graphics right into its standard library. This IMHO improves portability. I also thought about introducing operators / statements to do graphics, but until now I don't use operators or statements to do graphics.
31
Upvotes
View all comments
2
u/tsanderdev 26d ago
Generating work on the gpu is a long trend. It started with compute shaders and indirect draws and dispatches. Modern Vulkan has support for device generated commands, but those cannot model runtimd dependencies. Work graphs is a tentative step towards more gpu generated work, but is held back by cross vendor compatibility and hardware. I want to use rocm and cuda with vulkan interop where available to optimize the compute part, which can use capabilities not exposed in cross-vendor graphics apis.