Advice for improving Monte-Carlo code

No, this is not exactly true, FLoops.jl is definitely not a deprecated package. Maybe the author of the package would come in and explain it better than I, but originally FLoops.jl and it’s brother ThreadsX.jl (you can read corresponding announcements here and here ) are built on the basis of Transducers.jl and they are very flexible and powerful tools for writing high-level multithreading and parallel processing code.

In this particular problem, they do not shine, because this is a typical embarrassingly parallel problem and indeed @Threads.threads macro is enough to solve it. But they are useful in other scenarios, for example, parallel sorting, where simple @threads macro can’t be applied.

4 Likes