5 ms·
> There's very little difference in C between a character string, an array of Bytes, or even a struct of appropriate size. This is really bad! > It's designed
by howinteresting 4y ago
> There's very little difference in C between a character string, an array of Bytes, or even a struct of appropriate size.
This is really bad!
> It's designed to be extremely precise, like a hardware description.
This is absolute nonsense. There's far too much undefined behavior in C for it to be described as precise with a straight face.
More generally, C's lack of memory safety has been directly responsible for innumerable vulnerabilities and trillions of dollars in costs to society. It is unacceptable and irresponsible to start a new project that's meant for public use in C in 2022.
- synergy20 4y agolinux,openbsd,systemd etc are all in c,c looks ok to me today.
- howinteresting 4y agoAll of them have had massive security vulnerabilities, and almost certainly (at least Linux and systemd) have many publicly undiscovered ones that are currently being exploited by state actors today.
- pjmlp 4y agoIndeed security researchers appreciate they keeping food at their table, see CVE database.
- kcexn 4y agoHardware description languages also have tons of undefined behaviour. Electronics, in general, has physical conditions it can be in that will not resolve to a finite value in a finite amount of time.