r/ProgrammingLanguages • u/ThomasMertes • 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
View all comments
Show parent comment
-1
u/arthurno1 28d ago
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.
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:
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:
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.