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

Show parent comment

2

u/Inconstant_Moo 🧿 Pipefish 28d ago

If FAANG companies sell libraries this is probably true. But spending money on a library and giving it away for free is usually not their thing. Adobe Flash was given away for free and it was not famous for being well tested and bug free. Companies want to make money, which is okay.

If you think that FAANG software is better, fine for you. I have a different view. And I think that most standard libraries are written by open source volunteers and not by FAANG.

I'm talking specifically about Go, and the history of its development is well-known. Its standard libraries were built in-house and Golang is free and open-source. This is because Google built it not to sell to people but to use themselves to write software with. For this they wanted reliability and the many eyeballs that FOSS brings to a project. Unlike Adobe Flash, their standard libraries are famous for being well-tested and bug-free. Worldwide in production I estimate people are calling for example their time library between 10 billion and 100 billion times a second. If there was something wrong with it, someone would notice. I am only one person, spread thin, I'm not going to try and reimplement that better. Time is short, time is long.

1

u/ThomasMertes 28d ago

I'm talking specifically about Go, ...

Now I got it. You were talking about the G in FAANG. :-)

Google probably sees Go like Sun saw Java. I can imagine that they put a lot of effort in improving and pushing Go.

Did you take a look at my "Achieving memory safety" article and what do you think about the description of my graphics library?

2

u/Inconstant_Moo 🧿 Pipefish 28d ago

Now I got it. You were talking about the G in FAANG. :-)

What the rest of them do has no implications for the Pipefish stdlibs.

Google probably sees Go like Sun saw Java. I can imagine that they put a lot of effort in improving and pushing Go.

Not really. No language has the same history as Java. Having failed as a language for embedded systems, it pivoted to being used for embedded apps in the browser, and then when it failed at that too, Sun spent a literal billion dollars on advertising to persuade Business Idiots that despite having failed at the thing it was designed for and the thing it was redesigned for, it was somehow the perfect language to solve enterprise problems that it wasn't designed for at all.

Did you take a look at my "Achieving memory safety" article ...

I did. Guarantees are good of course, but then so are escape hatches ... it depends on the use-case for Seed7, which I'm afraid I haven't dived into much yet.

... and what do you think about the description of my graphics library?

I'm puzzled by why you have your own fonts.

String array images are cute. This is the sort of thing though that Go/Pipefish would omit from their standard libraries on the grounds that it's not a standard --- pretty much everything in the Go stdlibs has an ISO number, rather than just being a nice thing to have.