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
Show parent comment
1
u/Soupeeee Oct 29 '26
Although I never looked too deeply into it, somebody implemented a DSL / transpiler that converts Common Lisp code into OpenGL shaders. An embedded DSL is probably the most reasonable approach when combined a supported graphics toolkit.
Edit: There's a toolkit that it integrates with: https://github.com/cbaggers/cepl