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

0

u/Inconstant_Moo 🧿 Pipefish 29d ago

FAANG does not pay either. AFAIK most libraries are provided by an unpaid developer in Nebraska.

These claims are spurious and have been debunked.

In addition to that I have doubts that FAANG would guarantee quality.

Well of course nothing can guarantee quality, but (a) the sheer number of people they have depending on their standard libraries must do something to maintain quality (b) their test suites are huge (c) you know that thing in cartoons where the guy steps on a rake and it flips up and hits him in the face? I've done that twice in the same day, so if it's between them and me maybe it should be them.

I use this approach on one hand to show how capable Seed7 is ...

I use my approach to show how capable Pipefish is. Of helping people to steal things things. A great philosopher once spoke of the advantages of theft over honest toil, and I forget the rest of the quote but one day I'm definitely going to find out if he had anything positive to say about slapping idiots round the back of the head, we need more philosophers who are also enablers.

---

FYI, the only parts of the Go stdlib written in C are parts of cgo (the C FFI), parts of os/user, and the parts of net that do domain name resolution. Both of the last two are optional and have pure Go versions but the default is to use C. I don't know why. Reasons.

3

u/ThomasMertes 28d ago

FAANG does not pay either. AFAIK most libraries are provided by an unpaid developer in Nebraska.

These claims are spurious and have been debunked.

No, this famous XKCD strip unfortunately describes reality. See the list of projects with few maintainers I posted.

Referring to libraries written by FAANG you wrote:

(a) the sheer number of people they have depending on their standard libraries must do something to maintain quality (b) their test suites are huge

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.

In my daily life I use Linux, bash, GCC, clang, emacs, X11, etc. All of these are open source and nothing is from any FAANG company.

I use my approach to show how capable Pipefish is. Of helping people to steal things things.

Yes, I know that Pipefish is capable of calling Go, as shown in png.pf.

FYI, the only parts of the Go stdlib written in C are parts of cgo (the C FFI), ...

According to my definition of memory safety Go is not a memory safe language (look up the article on my argumentation for that). From my point of view allowing direct calls to C functions or Go functions both make a language memory unsafe. So, if Pipefish allows direct calls to Go or C, it is not a memory safe language. If you read my article you see that I consider many languages as not memory safe.

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.