4 ms·
I don't know. I use Rust myself, but I've seen more people complaining about Rust evangelism than people actually doing that. The RESF is a bad meme.
by GrayShade 5y ago
I don't know. I use Rust myself, but I've seen more people complaining about Rust evangelism than people actually doing that.
The RESF is a bad meme.
- colejohnson66 5y agoWhen there's a memory related bug (or CVE) in a program written in C or C++, there's almost always some comment about how the Rust compiler would've caught it
- KingOfCoders 5y agoFrom Rust developers or from app users? As an app user I would prefer if apps are written in Rust and Im reminded with every CVE for a C program.
- tialaramex 5y agoOn HN there is often: A comment about Rust would catch this (sometimes sarcastic), an explanation about how the bug isn't "really" memory safety and so Rust wouldn't catch it, followed by a comment explaining actually Rust does catch it. The recent Linux mutex security bug is an example. That's not a memory safety bug. Surely Rust doesn't help? But Rust's mutual exclusion design relies on the Rust type system to give us safer locks, in Rust you protect things by having "lock the mutex" be the way you get the reference to the protected object. Thus when the faulty code locks the wrong mutex in Rust it would get the wrong object, and either not compile (you lock variable A and then you're trying to change B but you don't even have B) or not work (you always lock variable A, then change variable A, but your code should change B, it does not work, trivially reproducible bug in your code)