News for hackers. Stuff that matters.
Re:To become a good C programmer (2011) by api on Monday August 02, 2021 @04:50AM (#28034344)
Unsafe doesn't mean unsafe. It means not provably safe by the compiler. That matters on large code bases, or as code ages and has multiple contributors. Keeping dangerous security bugs out of C is very difficult under those circumstances, but in Rust you can largely trust the compiler and can easily search for all uses of "unsafe" and audit them.
Re:To become a good C programmer (2011) by sharikone on Monday August 02, 2021 @06:59AM (#28035099)
Yes but if you do much low level it is annoying to use a language that constant treats you at best as a dark magic wizard, at worst as a dangerous risk seeker.

All my point was that Rust is not a substitute for C, too heavy and complex and not enough liberating for low level "assembly-wrapping" stuff.

Re:To become a good C programmer (2011) by pjmlp on Monday August 02, 2021 @07:43AM (#28035366)
The concept of unsafe language constructs are about 10 years older than C's birthdate, written in different forms, lowercase, uppercase, special module to be imported, whatever, all ignored by C's authors.

As for C being low level "assembly-wrapping" stuff, yeah when all you have is a PDP-11 clone.

https://queue.acm.org/detail.cfm?id=3212479