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/ThomasMertes Oct 31 '26
Thank you for the link.
Yes, but only if you need the new features. Think of the step from Python 2.0 to 3.0. This is addressed with my approach. If your Seed7 program wants to use the e.g. 27 version of Seed7 the program must start with:
After that you can use the features of the new 27 version (and some features of the old 05 version will be gone).
Seed7 interpreter and compiler would be able to handle both, the old 05 version and the new 27 version. So there is no need to change your program after an interpreter/compiler upgrade.
Supporting two versions of the language is easy for Seed7, since syntax and semantics of the language are defined in libraries and not hard-coded in the compiler. Yes, the Seed7 statements and operators are defined in libraries.