Hacker News new | ask | show | jobs
by stuntprogrammer 5515 days ago
In haskell you could write something like this: parMap rseq (\x->/some long computation/) [1..4]

using the standard Control.Parallel.Strategies library (use rwhnf instead of rseq unless you are using v3).