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

-1

u/arthurno1 28d ago

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 28d ago

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 28d ago edited 28d ago

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.