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

5

u/vmcrash 29d ago

I think to have read that Java was the first programming language that provided a GUI framework out of the box for the three major operating systems. Unfortunately, I don't know of any popular programming language that compiles to native executables which offers similar support.

1

u/initial-algebra 29d ago

Delphi isn't super popular, but it is, if just barely, in the TIOBE top 20.

2

u/vmcrash 29d ago

I've developed with Delphi in the 90th - was great, but Windows-only. Has support for MacOS/Linux added later?

1

u/initial-algebra 29d ago

It appears to have pretty good cross-platform support nowadays, but I'm not sure when that would have been added.

2

u/WittyStick 29d ago

There's Lazarus, based on FreePascal, but very similar to Delphi.

Also Gambas is very similar to classic Visual Basic, and fairly portable.

-1

u/arthurno1 29d ago

I'm not sure when that would have been added

Nothing; it is not their particular fault. It is just the technology is not needed any more.

They added support 20+ years ago. Nobody ever used it for anything serious as far as I am familiar with. Delphi on Windows was popular because they made point-and-click IDE when nobody else had it, and because old-timers who didn't want to learn C but knew Pascal found a refuge. But web-based technologies (xml guis and later html/js) and decline traditional "desktop" software has killed it.