> Hopefully future improvements to the Nim memory management model will make > writing multi-threading code much easier. The "newruntime" switch could fix > the ability to use closures across threads, but unfortunately I can't try it > currently as it doesn't work when threading is turned on.
Not sure if it's the only bug but for now this is the one to fix for multithreading on `--newruntime` [#11844](https://github.com/nim-lang/Nim/issues/11844). Also I'm currently exploring alternative multithreading runtimes in Nim as I'm * approaching the limits of OpenMP (nested parallelism especially) * Nim's FlowVars have [contention issues](https://forum.nim-lang.org/t/4732#29658) and no load balancing * raw Threads is a too low-level abstraction So if you have state of the art implementations I'd love to check how a multithreaded runtime fares against manually tuned threading.
