r/ProgrammingLanguages • • 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

81 comments sorted by

View all comments

2

u/SeaSafe2923 29d ago

Why is the standard library special?

2

u/ThomasMertes 29d ago

Why is the standard library special?

It is guaranteed to be present on all supported platforms.

If you use the Seed7 graphics library your program will run on Linux, Windows, macOS or in the browser without any change.

If you use GDI or Direct3D this will not be the case.

2

u/nzmjx 29d ago

I think SeaSafe2923 tried to ask: what makes the standard library special compared to cross-platform independent library?

2

u/ThomasMertes 29d ago

think SeaSafe2923 tried to ask: what makes the standard library special compared to cross-platform independent library?

You need to assure that the cross-platform independent library is available on all computers where your software is installed.

The Seed7 standard library is automatically available on all supported platforms.