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

81 comments sorted by

View all comments

1

u/Limp-Temperature1783 29d ago

Badly. Mostly due to compatibility as a constraint. And operator/statement thing is a bad abstraction for graphics. It's not a CPU, GPUs aren't built for serialized data, you need to do vector algebra for the most part, which is expression-based. At least that's a start.

3

u/ThomasMertes 28d ago

And operator/statement thing is a bad abstraction for graphics.

Correct.

I would like to get feedback on: The Seed7 graphic library.

The post was just a vehicle to put the link into a comment (links to GitHub are only allowed in comments but not in posts).