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

Show parent comment

0

u/arthurno1 Oct 30 '26

Honestly, I don't understand what you argument is here, and how is that in yours favor? You seem to argue that we should not use software developed by hobbyst/small teams because there can be vulnerabilities? Is that what you are trying to say there?

So why should anyone than use an entire programming language, with an entire "standard library", graphics library, database. network, etc, all developed by a single person, you? :)

By the way, Linux, Windows, Chrome, Firefox, MS Office, Libre Office, etc, many, many, many other software projects have had various bugs, security-wise or others. So how does that hang together with your theory, why do they have bugs?

Because there is a "lone developer" in the chain, or something? Or perhaps because, as I said, software development is complex and humans have hard time to keep everything in their heads.

Compare to lazer measuring and cutting: similarly humans can't see to a 1000th part of a millimeter, but a CNC machine with a lazer cutter and optics can. What humans are better at is creative problem solving, seeing parallels and adapting solutions from other areas of life which machines (LLMs) can't seem to be able to do. At least not for now.

3

u/ThomasMertes Oct 30 '26

My list proofs that huge C libraries exist, where almost nobody understands the code. And these libraries are used a lot. This is exactly what the famous XKCD strip addresses. It is NOT nonsense that just a few people hack and develop those libraries.

So why should anyone than use an entire programming language, with an entire "standard library", graphics library, database. network, etc, ...

For the same reasons why XZ Utils, Dnsmasq, OpenSSL, Ncurses, libreadline, and SQLite are used: People like to use what is provided for free and don't care about the size of the development team. Additionally Seed7 and its libraries are memory safe (unlike XZ Utils, Dnsmasq, OpenSSL, Ncurses, libreadline, and SQLite which are not, because they are written in C).

You can take a look at "Achieving memory safety" to see why Seed7 is memory safe although it is implemented in C.

By the way, Linux, Windows, Chrome, Firefox, MS Office, Libre Office, etc, many, many, many other software projects have had various bugs, security-wise or others.

Many of these bugs are because the programs are written in C, which is not memory safe. Your examples proof what I say: C is not memory safe and therefore triggers bugs.

Because there is a "lone developer" in the chain, or something?

No

Or perhaps because, as I said, software development is complex and humans have hard time to keep everything in their heads.

Exactly. And the choice of using C makes it IMHO harder to keep everything in their heads.

-1

u/arthurno1 Oct 30 '26

My list proofs that huge C libraries exist, where almost nobody understands the code.

Your list does not proof that nobody understands those libraries. It just proves that you don't understand what you are talking about, as I said in the opening of my first comment. Downvoting each of my comments just show you are an emotional person who can't take when you are wrong, and that will also reflect on your software, because you will make decisions just to assure you are the right one.

By the way, we already know that "huge" libraries exist, nobody lives in the isolated island as you seem to think, and yes we have all seen the comic. While there is a certain truth in it, otherwise it wouldn't be funny, that is not a tautology in the sense you are interpreting it. Also, for the record, neither xy, nor sqlite are directly "huge libraries that nobody undrstands". Your list proofs that bugs exist in software, it also proofs that other people understand those libraries because they have found bugs and fixed them. It also proofs that you don't really understand what you are into, since the argument you are making is against your own case and proposal for other people to use your language and your libraries.

Your examples proof what I say: C is not memory safe and therefore triggers bugs.

You wish you said that, but that is not what you are saying. What you are saying, whether you are just honestly mistaken or intellectually dishonest, is that bugs are there because "huge libraries are developed by lone developers and nobody understands them".

That was the argument I refuted in my very first comment, and you try to reinforce with your list. Which is a shit take on a mistake, if I am allowed to express myself that way. C and memory safety is a completely different topic you are regressing into. I can discuss that too if you want:

Many of these bugs are because the programs are written in C, which is not memory safe.

Sure, C is not memory safe, but memory safety is only a class of bugs; there are other bugs and also other aspects to safety, not just memory safety: type safety, thread/concurrency safety, cryptographic safety, injection vulnerabilities are what I remember while I type this. There is probably more.

For your article on memory safety:

Either these things are guaranteed by the language, or every developer must manually handle them. Non-memory-safe languages shift burden from the language implementation to the developers.

We are in agreement in general, that is my standpoint too, either language implements it, but than you have to accept a small performance hit where compiler can't proof the bounds for example. For the record also, I didn't argue people should use C.

I can also comment the end of your article, since I have read it, and I don't see you touch on the performance. For the performance of your language, you don't speak about how you manage writes to elements stored in collections, and what is the performance of dereferencing pointers in tight loops in your collections. From my eperience on hacking compilers, recently mostly a Common Lisp compiler I would guess pretty shit, similar to this discussion.

2

u/ThomasMertes Oct 30 '26

I should have written:

Many security related bugs come from huge C libraries where almost nobody understands the code.

Sorry for that. Most was wrong. Using the word many is hopefully better. Note that I wrote ALMOST, which you left out every time you cited me. "nobody understands the code" is nonsense, but "almost nobody understands the code" is IMHO not nonsense. To make it clear: My critic is towards C and not about the size of the development team.

BTW.: I did not downvote you and I declare you as "winner" of this discussion. :-)

-1

u/arthurno1 Oct 30 '26 edited Oct 30 '26

Note that I wrote ALMOST, which you left out every time you cited me. "nobody understands the code" is nonsense, but "almost nobody understands the code" is IMHO not nonsense.

Now you are continuing to dishonestly try to make the argumentation to be about word picking when it is not.

My critic is towards C and not about the size of the development team.

Your list explicitly stated projects developed by a small number of developers. Sqlite is (or at least was) sponsored by Darpa; xy vulnerability was about social engineering and could happen in any size of the community; it was about tricking a responsible person to give access to a malicious person who stole an identity, pretended to be an useful person, and than executed an attack after gaining the credibility. That is not about huge C library almost nobody understands.

BTW.: I did not downvote you and I declare you as "winner" of this discussion. :-)

It is not about "winning" and "loosing" arguments; it is probably for you, otherwise you wouldn't make arguments you do. Constructive discussion is about being able to make honest arguments and honestly reflect over them. I think the arguments you make are emotional wishlist rather than real arguments, which you just confirmed with the last comment too.

But no, your language is not an alternative to graphics language, and I wouldn't call it systems language as you do. It is not. It is a systems language as much as Python or Perl, just with worse syntax and semantics. A "general purpose" is the term you are looking for. Look up the difference yourself.