3 ms·
Rewriting into a safe language actually has some benefits - namely safety compile time guarantees. Only RAM manufacturers like memory leaks.
by jokethrowaway 4y ago
Rewriting into a safe language actually has some benefits - namely safety compile time guarantees.
Only RAM manufacturers like memory leaks.
- Cthulhu_ 4y agoWhile true, I think there's a lot of "this is better because it's been written in Rust" software around these days. The emphasis is on the language, not the problem being solved.
- conaclos 4y agoAgreed. Some project attract attention just because it is written in Rust. Although Rust is well-designed, the language does not make everything.
- krona 4y agoMemory leaks in rust might be less common than a fully GC'ed language but saying rust prevents or makes them less common than e.g. zig/c++ seems like a stretch.
- crabbygrabby 4y agoYou literally cannot get them period in rust. Like it is not possible. That's the point of rust.
- 3836293648 4y agoLeaks are absolutely considered safe by rust. Just look at Box::leak. And if we're comparing it to GC'd "leaks", those are typically hashmaps growning out of control and that can also happen
- voorwerpjes 4y agoLeaks can happen in rust. The guarantee safe rust makes is that memory leaks cannot result in undefined behavior.