3 ms·
About the fun aspect of using Rust. Once I learned it, nothing feels as fun as Rust for two reasons - when I'm done writing the program it almost always works f
by nindalf 4y ago
About the fun aspect of using Rust. Once I learned it, nothing feels as fun as Rust for two reasons - when I'm done writing the program it almost always works first try and second, when it runs I know this is the fastest possible program that I could have written.
It takes a while to get to the point where writing Rust feels easy, but when you do it's so much fun. That's why Rust users love the language so much.
- smabie 4y agoTo elaborate on the 2nd part: idiomatic Rust is usually slower than the absolute fastest program you could have written. Making sure you are not allocating (usually wrt to Strings and Vecs) in the hot path often takes a non trivial amount of work compared to naive solution (for ex, fighting with borrow checker instead of cloning, or or allocating your Vecs and passing results thru a mut ref parameter vs a return value) and also makes your code uglier. That said, writing an ultra performance program in Rust is easier than using any other language in existence rn.