Saved by the compiler: Parallelizing a loop with Rust and rayon
Author here. I'm happy to answer questions!<p>I don't have any performance numbers for this loop because it was already very fast. This was just a warm-up exercise before trying to parallelize more complicated loops.<p>My experience with Rust has been interesting. On the one hand, if you compare Rust to Ruby or JavaScript, there really is a "Rust tax"—you have to think about ownership and references and types. But Rust pays me back by making refactoring very easy, and by catching some surprisingly subtle errors at compile time. Plus, I really like Cargo and the crates.io ecosystem.<p>Rust might not be a good match for every project or every programmer, but I'm really enjoying it for low-level, high-performance code.