2 ms·
C++ has parallel algorithms built in (http://en.cppreference.com/w/cpp/algorithm http://en.cppreference.com/w/cpp/algorithm). Parallelism is complicated though
by beojan 9y ago
C++ has parallel algorithms built in (http://en.cppreference.com/w/cpp/algorithm http://en.cppreference.com/w/cpp/algorithm).
Parallelism is complicated though, and easy parallelism pretty much requires a functional style. Things like Haskell's Accelerate library (https://www.stackage.org/package/accelerate https://www.stackage.org/package/accelerate) seem the ideal way forward to me.
- smitherfield 9y agoShould be noted that so far only Visual Studio (partially) implements C++17 parallel algorithms, although there are several third-party implementations.[1] Apples to oranges comparison of course, since Rayon isn't [planned to become?] part of the Rust standard library. [1] http://www.bfilipek.com/2017/08/cpp17-details-parallel.html#current-implementation http://www.bfilipek.com/2017/08/cpp17-details-parallel.html#...
- beojan 9y agoIf you're including third-party libraries, you have things like ArrayFire and Intel TBB.