[Haskell-cafe] Parallel graphics

2009-09-15 Thread Andrew Coppin
I have a number of compute-bound graphics programs written in Haskell. (Fractal generators, ray tracers, that kind of thing.) GHC offers several concurrency and parallelism abstractions, but what's the best way to use these to get images rendered as fast as possible, using the available compute

Re: [Haskell-cafe] Parallel graphics

2009-09-15 Thread minh thu
Hi Andrew, 2009/9/15 Andrew Coppin : > ... > I'm presuming that sparking every individual point is going to create > billions of absolutely tiny sparks, which probably won't give great > performance. We could spark every line rather than every point? > ... You should just try: no one can say if p

Re: [Haskell-cafe] Parallel graphics

2009-09-15 Thread Edward Kmett
Block, line or 'beam' decomposition tends to work well for raytracing tasks, because they tend to give you a good cache locality and don't create a ridiculous explosion of parallel jobs. You'll need to do some tuning to figure out the right granularity for the decomposition. But typically a few hu

Re: [Haskell-cafe] Parallel graphics

2009-09-15 Thread namekuseijin
On Tue, Sep 15, 2009 at 8:48 AM, Andrew Coppin wrote: > Using explicit threads has the nice side-effect... side-effects are bad! ;-) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Parallel graphics

2009-09-23 Thread Claude Heiland-Allen
Andrew Coppin wrote: (OK, well the *best* way is to use the GPU. But AFAIK that's still a theoretical research project, so we'll leave that for now.) Works for me :-) http://claudiusmaximus.goto10.org/cm/2009-09-24_fl4m6e_in_haskell.html There doesn't need to be a sound theoretical foundation

Re: [Haskell-cafe] Parallel graphics

2009-09-23 Thread Peter Verswyvelen
This is seriously cool stuff!!! Maybe it's time to start a "Haskell Demo Scene" :-) (what's a "demo scene"? See http://en.wikipedia.org/wiki/Demoscene ) PS: Note that Conal Elliott also was generating GPU code using Haskell with Vertigo back in 2004: http://conal.net/papers/Vertigo/ On Thu,

Re: [Haskell-cafe] Parallel graphics

2009-09-24 Thread Olex P
Awesome! On Thu, Sep 24, 2009 at 7:47 AM, Peter Verswyvelen wrote: > This is seriously cool stuff!!! > > Maybe it's time to start a "Haskell Demo Scene" :-) > > (what's a "demo scene"? See http://en.wikipedia.org/wiki/Demoscene ) > > PS: Note that Conal Elliott also was generating GPU code using

Re: [Haskell-cafe] Parallel graphics

2009-09-24 Thread Alp Mestan
This is just awesome indeed. You should create a haskell wiki page about that, so that "beginners" could see Haskell can do that (TM) (yeah, some beginners doubt of it). On Thu, Sep 24, 2009 at 1:02 PM, Olex P wrote: > Awesome! > > > On Thu, Sep 24, 2009 at 7:47 AM, Peter Verswyvelen wrote: > >

Re: [Haskell-cafe] Parallel graphics

2009-09-24 Thread Henning Thielemann
On Thu, 24 Sep 2009, Alp Mestan wrote: This is just awesome indeed. I'm impressed, too! You should create a haskell wiki page about that, so that "beginners" could see Haskell can do that (TM) (yeah, some beginners doubt of it). Don't miss to add it to http://www.haskell.org/haskellwiki