3 ms·
Rayon is basically the "OpenMP of Rust" already. OpenMP is designed around C-style for loops, which Rust discourages.
by pcwalton 7y ago
Rayon is basically the "OpenMP of Rust" already.
OpenMP is designed around C-style for loops, which Rust discourages.
- gpderetta 7y agoFWIW OpenMP supports any C++ random access iterator and c++11 range-for loops. I guess you count any external iterator as C-style loop.
- MauranKilom 7y ago*newer OpenMP versions. MSVC is stuck on OpenMP 2.0 in which you can't even use unsigned integers as loop variable. No, seriously.
- petschge 7y agoMSVC is hilariously bad and not used in HPC code. Not sure how much high performance game code is compiled with it.
- pcwalton 7y agoA lot. I don't think OpenMP is used much in games.
- neutronicus 7y agoYeah OpenMP is mostly for problems with much less data-dependency than games.
- imtringued 7y agoRayon only covers a fraction of OpenMP's features.