3 ms·
> I'd prefer my libraries be rock solid secure even if I lose some (or even a lot of) performance for it. Then don't use C. People don't seem to understand th
by ncarlson 17y ago
> I'd prefer my libraries be rock solid secure even if I lose some (or even a lot of) performance for it.
Then don't use C.
People don't seem to understand that C is just a step up from Assembly Language. There are no "types" in the sense that they exist in higher level languages. And thus, there are no ways to check those types (unless you want to write a type checking system yourself). Lets not forget that most modern programming languages with type checking and "rock solid secure" libraries were, in fact, written in C.
- jrockway 17y agoWhich languages? SBCL is written in CL, GHC is written in Haskell, etc. Sure, there is some C to talk the C-based API of the OS it's running on, but all the important stuff is self-hosted. This is a rather common pattern, as nobody really wants to write important application code in C.