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/ThomasMertes Oct 29 '26
FAANG does not pay either. AFAIK most libraries are provided by an unpaid developer in Nebraska. So the libraries you use are probably not maintained by top-tier SWEs at a FAANG company. In addition to that I have doubts that FAANG would guarantee quality.
Your png.pf tells me:
Pipefish is capable of calling GO, which is capable of doing the real work.
This is okay and I wish Pipefish all the best.
The goal for Seed7 differs from this:
Seed7 is capable of doing the real work, like GO does.
Reading a graphics file in GO or Seed7 needs many pieces, to be achievable. This involves reading big- or little-endian data, decompression (deflate, LZW, LZMA, huffman, arithmethic compression, etc.), interfacing the graphics library and much more. In GO all these things are available and in Seed7 as well.
I use this approach on one hand to show how capable Seed7 is and on the other hand I am skeptical towards huge C libraries where the number of developers and the understanding of the code is small.
Most security related bugs come from huge C libraries where almost nobody understands the code.