[Haskell-beginners] Parallel mutation

Erik de Castro Lopo mle+hs at mega-nerd.com
Wed Dec 9 19:55:01 EST 2009


Jon Harrop wrote:

> On Tuesday 08 December 2009 21:37:41 Daniel Fischer wrote:
> > Am Dienstag 08 Dezember 2009 21:56:45 schrieb Jon Harrop:
> > > Can you mutate different parts of the same array from different threads
> > > in parallel using GHC? Someone once told me this was possible but I
> > > cannot see how...
> >
> > You can (take a look at Control.Concurrent), but very probably ***You
> > really shouldn't***, so I won't elaborate.
> >
> > What would you want to do that for?
> 
> Efficiency, e.g. parallel quicksort.

So why not look at Data Parallel Haskell:

    http://www.haskell.org/haskellwiki/GHC/Data_Parallel_Haskell

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Beginners mailing list