logoalt Hacker News

uecker • today at 3:58 PM • 1 reply • view on HN

In practice Rust does not eliminate all memory safety issues. So it depends what you mean by "essentially". And then the question is what you compare it to. It is certainly much better than average C++ code.


Replies

IshKebab • today at 5:18 PM

It absolutely does.

> Our historical data for C and C++ shows a density of closer to 1,000 memory safety vulnerabilities per MLOC. Our Rust code is currently tracking at a density orders of magnitude lower: a more than 1000x reduction.

https://blog.google/security/rust-in-android-move-fast-fix-t...

I await your tediously predictable "1000x reduction isn't eliminated" response.