r/ProgrammingLanguages • u/ThomasMertes • Oct 29 '26
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
View all comments
1
u/mamcx Oct 29 '26
The trouble today is that exist too many graphic APIs, and have wildly different flows.
I think a language with enough support to just include the orchestration of data (binding, value tracking, broadcasting, etc) is good enough and let the user to finish with whatever API and paradigm it wants.
Incidentally a lang I think have some cool ideas for this is https://www.red-lang.org, mostly for the idea of "dialects" that are like DSL on top things like the GUI systems is build: https://github.com/red/docs/blob/master/en/vid.adoc