3 ms·
I'd rather use a program that uses as little memory as possible and that also never crashes. With Rust you can just have both.
by sunshowers 2y ago
I'd rather use a program that uses as little memory as possible and that also never crashes. With Rust you can just have both.
- mgaunard 2y agoThat's not really what happens. Most Rust code actually does whatever is easiest to get the borrow checker to stop complaining, including extending lifetime beyond the scope that is necessary, and putting reference counting everywhere.
- sunshowers 2y agoI'm not one to boast, but at least my Rust code doesn't do that much. Feel free to have a look, basically all the professional Rust code I've ever written is free software. Rust is a lot better than GC languages at memory usage, and (because borrowing is actually safe) a bit better than C++.
- kiitos 2y agoSure, if you never use unsafe, or anything that uses unsafe, transitively.
- sunshowers 2y agoMemory unsafety is a property of von Neumann architectures, and explicit unsafe limits the scope of damage significantly. I have made major contributions to several Rust projects that have collectively saved organizations over $100MM in production, if not more. I worry about lots of things, but crashes just aren't one of them.