4 ms·
And in Haskell https://www.stackage.org/haddock/lts-10.6/parallel-3.2.1.1/Control-Parallel-Strategies.html https://www.stackage.org/haddock/lts-10.6/parallel-3.
by floatboth 9y ago
And in Haskell https://www.stackage.org/haddock/lts-10.6/parallel-3.2.1.1/Control-Parallel-Strategies.html https://www.stackage.org/haddock/lts-10.6/parallel-3.2.1.1/C...
And in .NET https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.parallel?view=netframework-4.7.1 https://docs.microsoft.com/en-us/dotnet/api/system.threading...
And in Java https://blog.oio.de/2016/01/22/parallel-stream-processing-in-java-8-performance-of-sequential-vs-parallel-stream-processing/ https://blog.oio.de/2016/01/22/parallel-stream-processing-in...
Rayon is notable because Rust is a native-compiled, no-GC language.
- brazzy 9y agoTo me, the "If it’s not thread-safe to do, then it won’t compile" part sounds rather more notable.
- coolsunglasses 9y agoThat's true of Haskell for the parallelism faculties. It's also true for STM. You can still get stuck or have race conditions with the other concurrency abstractions but it's less common than I encountered elsewhere. I didn't have problems resulting from mutable shared state that was aliased across threads and wasn't supposed to be, it's always explicit.