2 ms·
Speed is not the only thing why Rust makes sense: 1. Safe Rust disallows data races at compile time, see for example: https://msrc.microsoft.com/blog/2020/04/t
by drogus 3y ago
Speed is not the only thing why Rust makes sense:
1. Safe Rust disallows data races at compile time, see for example: https://msrc.microsoft.com/blog/2020/04/the-safety-boat-kubernetes-and-rust/ https://msrc.microsoft.com/blog/2020/04/the-safety-boat-kube...
2. WASM is getting more and more usage (also on the server side) and Rust is one of the best languages to compile to WASM at the moment
3. If you need to support multiple programming languages with one library it might make sense to write a Rust core and wrappers in other languages
4. Rust has explicit error handling, so it might make sense to write a Rust application in critical applications where you need to be sure you handled as much error conditions as possible
5. Sometimes an application doesn't necessarily need to be ultra fast, but needs to have predictable performance. In some situations Java or Go won't be much slower (or could be even faster) than Rust, but in Rust it might be easier to get lower latency variance.
There is probably more, but I choose Rust for many projects that do not need Rust's speed and I believe this is also the case for many people writing Rust.