r/ProgrammingLanguages • u/ThomasMertes • 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
View all comments
1
u/Limp-Temperature1783 29d ago
Badly. Mostly due to compatibility as a constraint. And operator/statement thing is a bad abstraction for graphics. It's not a CPU, GPUs aren't built for serialized data, you need to do vector algebra for the most part, which is expression-based. At least that's a start.