Earlier quoted context omitted.
From an editorial perspective that digression wouldn't have added a whole lot to the point of the page. What would you be hoping to communicate?
It might be slightly good to at least mention that AMD and Intel both worked on this at about the same time. I may make this edit next time I push an update for something else. I welcome pedantic critiques because, well..I too am pedantic. :D
Saved by the compiler: Parallelizing a loop with Rust and rayon
21–30 of 33 posts
Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#22Author here. I'm happy to answer questions! 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. 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 p…
Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#23Earlier quoted context omitted.
A huge payoff that Rust provides vs Ruby or JavaScript is when writing development tools. It saves so much time and trouble to install a binary than to try and get someone to download the right version of Ruby, gem install, etc. Rust, while having its tax, is really great about telling you why your code won't compile and keeping you from footgunning yourself.
Trying to get ack or ag working properly on Windows is a bit of a pain. Now there’s an equivalent in Rust, rg, and I can get something that’s mostly superior to these others with `cargo install rg`. (OK, so I had to have installed Rust first. But I had done that.)
Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#24Earlier quoted context omitted.
Trying to get ack or ag working properly on Windows is a bit of a pain. Now there’s an equivalent in Rust, rg, and I can get something that’s mostly superior to these others with `cargo install rg`. (OK, so I had to have installed Rust first. But I had done that.)
There does not appear to be a crate called "rg". Are you perhasp referring to https://crates.io/crates/ripgrep ?
Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#25A while back I did a whirlwind tour trying out different parallel looping abstractions in different languages, comparing their performance and ease of use. Rust+Rayon was one of the best. Simple code, fast runtime: https://jackmott.github.io/programming/2016/08/30/think-befo...
Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#26Earlier quoted context omitted.
From an editorial perspective that digression wouldn't have added a whole lot to the point of the page. What would you be hoping to communicate?
> From an editorial perspective that digression wouldn't have added a whole lot to the point of the page. Then remove it altogether and only talk in generalities? The rest of the paragraph doesn't namedrop specific brands.
Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#27Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#28Earlier quoted context omitted.
A huge payoff that Rust provides vs Ruby or JavaScript is when writing development tools. It saves so much time and trouble to install a binary than to try and get someone to download the right version of Ruby, gem install, etc. Rust, while having its tax, is really great about telling you why your code won't compile and keeping you from footgunning yourself.
Trying to get ack or ag working properly on Windows is a bit of a pain. Now there’s an equivalent in Rust, rg, and I can get something that’s mostly superior to these others with `cargo install rg`. (OK, so I had to have installed Rust first. But I had done that.)
Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#29Earlier quoted context omitted.
Trying to get ack or ag working properly on Windows is a bit of a pain. Now there’s an equivalent in Rust, rg, and I can get something that’s mostly superior to these others with `cargo install rg`. (OK, so I had to have installed Rust first. But I had done that.)
There does not appear to be a crate called "rg". Are you perhasp referring to https://crates.io/crates/ripgrep ?
Re: Saved by the compiler: Parallelizing a loop with Rust and rayon
#30Earlier quoted context omitted.
> From an editorial perspective that digression wouldn't have added a whole lot to the point of the page. Then remove it altogether and only talk in generalities? The rest of the paragraph doesn't namedrop specific brands.
I'm sorry, somehow I thought there was something interesting behind this beyond mere brand loyalty/antipathy. I see now I was mistaken.