4 ms·
The whole rewrite everything in Rust.
by mr90210 4y ago
The whole rewrite everything in Rust.
- crabbygrabby 4y agoThat's mostly a thing teenagers are doing to learn CS, when it's not it's because the software is vulnerable or slow and benefits from a rewrite in a safe language.
- jokethrowaway 4y agoRewriting 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.
- sedatk 4y agoHow is that worse than Zig in that context?