3 ms·
Rust compiler enables trivial parallelism by enforcing multiple readers ^ writer; and it’s beautiful. See Rayon.
by PartiallyTyped 3y ago
Rust compiler enables trivial parallelism by enforcing multiple readers ^ writer; and it’s beautiful.
See Rayon.
- pdimitar 3y agoI wouldn't say it's trivial but yes it's there and it's very helpful.
- justinpombrio 3y agoThere are many cases where you can replace a call to `.iter()` in your Rust code to a call to `.par_iter()` from `rayon`. Those cases are trivial, and it's great.
- pdimitar 3y agoYes, that one I like a lot.
- nonameiguess 3y agoThat's a very nice feature but I don't know that it belongs in the category of new ideas from programming language theory. Fortran 90 had automatically parallelized language constructs and OpenMP added them to C and C++ as compiler intrinsics in 2002.