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
2
u/Valuable_Leopard_799 29d ago
The stdlib has the same issue, either you are compiling it in which solves it for both, or you depend on something being installed on the target machine. By portable library I meant something in Seed7.
That is of course a very good point, but it's a trade-off.
And a userspace Seed7 library wouldn't have to be either. I'm used from my languages to having portability libraries where you get a subset of all the possible features but the library is able to target, any of a number of backends based on your needs. The backends being the C libraries for one example, but it could be anything else.
The choice is of course up to any ecosystem to make, it just seems that one of the stated pros of having it in the standard library was "portability", which wouldn't necessarily be the case, unless I'm missing something big.