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
6
u/Dykam 29d ago
Does it improve portability? It puts the onus of portability on the language maintainers themselves. It can also be limiting. Graphics API's move moderately fast (compared to languages), at least in the high performance segment. Separate libraries allow developers to opt in to the generation they want to use.
I think it's nice to have, but it may feel like a bit much.