7 ms·
Rust does no eliminate memory errors. 200+ memory safety errors were found in rust crates: https://www.infoq.com/news/2021/11/rudra-rust-safety/ https://www.in
by 3a2d29 4y ago
Rust does no eliminate memory errors.
200+ memory safety errors were found in rust crates: https://www.infoq.com/news/2021/11/rudra-rust-safety/ https://www.infoq.com/news/2021/11/rudra-rust-safety/
I love rust, I think there's a good chance zig in its current state isn't the answer, but saying rust is totally memory safe is wrong. You drop into unsafe and people make the same errors C/C++ devs make.
- deleted 4y ago[deleted]
- vore 4y agoThe surface of exposure is much lower in Rust than in C/C++ however. It is unlikely you are writing your entire program in unsafe Rust, so you can still get a significant benefit from memory-safe safe Rust. In C/C++ world, _everything_ is unsafe, so you can't even limit your exposure in the safer parts because you can do unsafe operations anywhere.
- pjmlp 4y agoWhile true, that depends pretty much on which libraries you depend on, and the npm like ecosystem doesn't help in that regard.
- avgcorrection 4y agoGive me a break. In my original comment: > you don’t ever have to even think about those kinds of things as long as you trust the compiler and the Unsafe code that you rely on. Your comment is not some kind of gotcha. I can’t be bothered to give the long-form disclaimer in all of my follow-up comments. Read the context.