Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Again, I do not believe this is true. One gets a reasonable level of safety with only basic measures even in C.

Even if you believe this is true and the experts are wrong, other languages don’t require even these “basic levels” to provide a greater degree of safety, so presumably they’re still the better choice if only for this reason (not to mention all the others).

> In practice, memory safety is also not even remotely the main issue to worry about, especially when writing a compiler.

I agree—but those other concerns (e.g., attracting developers) are overwhelmingly reasons not to use C.

> It is not easy to write correct code in any language

Right, but “impossible” and “not easy” are different, right?

> See the number of CVEs in the Rust rewrite of coreutils

How are we supposed to derive anything from this? The 44 Rust rewrite CVEs were the result of a comprehensive professional audit that Canonical paid for and which the coreutils project has never experienced. Moreover the coreutils project predates CVE trackers. If your point is “Rust doesn’t preclude logic errors”, then who are you arguing with?

> including still memory safety issues

Which of the 45 or so CVEs were memory safety?



Many C experts I know would not agree with this. What experts are you quoting?

I do not understand your comment about "impossible" and "not easy". It is not impossible to write correct code but also not easy - in any language.

The audits of Rust uutils which identifies 113 issues in total confirm exactly what I said: It is not easy to write correct code in any language, and also in Rust it is very easy to make stupid errors that can compromise safety and security.

My comment about memory safety was about Rust CVEs in general, not uutils. For example, https://rustsec.org/advisories/ lists more than 20 use-after-frees for 2026.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: