4 ms·
> examples of code that really would benefit from the compiler's help This seems to be the point of disagreement here, and I think evidence clearly shows that
by Rusky 9y ago
> examples of code that really would benefit from the compiler's help
This seems to be the point of disagreement here, and I think evidence clearly shows that you are wrong. Sure, Rust doesn't help you when writing the implementation of e.g. circular data structures. But what it does do is provide, far beyond C or C++, the tools for the author of that data structure to enforce that it's used correctly.
And as mentioned upthread, most memory/concurrency (especially concurrency) bugs are not in the implementations of these structures, but in their use. So Rust is a fantastic win here, empirically speaking. Look at the rate of memory safety bugs in Rust programs vs C++ programs- Ripgrep vs grep, Servo/Quantum vs Firefox, etc.
- alphaalpha101 9y agoI think you need to be careful with those comparisons. Comparing Rust programmes that are modern and take advantage of not just Rust but all the knowledge we have about safety and security and writing fast code for modern platforms with projects that are ancient and full of cruft? That's not really fair. New modern C++ programmes don't have any memory safety bugs either.