[Haskell-cafe] Go parallel
Don Stewart
dons at galois.com
Mon Nov 5 19:15:49 EST 2007
timd:
> Is it possible to use the forkIO primitive to cause pure computations
> to be evaluated in parallel threads?
>
> It seems to me that laziness would always prevent any evaluation until
> the result was used in a consuming thread (and hence would occur
> serially, in that thread).
Try `par` and friends in Control.Parallel. You can also build
referentially transparent worker gangs on top of forkIO.
-- Don
More information about the Haskell-Cafe
mailing list