r/ProgrammingLanguages • • 29d 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.

29 Upvotes

81 comments sorted by

View all comments

Show parent comment

5

u/tsanderdev 29d ago

I'm actually making a language (well, not right now, I tend to switch between my projects every few weeks) because I'm so unhappy with the state of graphics programming and portable gpu compute. The design is based on a generalization of the recently introduced work graph model, so it should be plenty futureproof.

3

u/farnoy 29d ago

How do you figure the work graph model is futureproof? AFAIK it's considered a failed experiment and will probably disappear soon.

2

u/tsanderdev 29d 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.