Re: Parallel Game of Life

2009-03-20 Thread Scott Fraser
I have not had a chance to merge the parallel updates in to life- conway.clj in the files section yet, but for now I thought I would note I did make one fun enhancement, which is to have each thread color code the cells. So all cells with the same color were processed by one pmap thread. On my

Re: Parallel Game of Life

2009-03-16 Thread bOR_
Nice! A few more days of work and I've time to play with these kind of things again. Here are some comments, based on your description. As game of life is a cellular automata, you do not need any blocking at all, so you could use agents, rather than refs. It does become an asynchronous CA then,

Re: Parallel Game of Life

2009-03-16 Thread Larry Sherrill
It would be interesting to throw gridgain (http://www.gridgain.com/) into the mix and let people register their machines as part of a CA grid. Not sure the remote overhead would pay for itself but it would be interesting. On Mar 16, 3:03 am, bOR_ boris.sch...@gmail.com wrote: Nice! A few more

Re: Parallel Game of Life

2009-03-16 Thread Laurent PETIT
Hello, 2009/3/16 bOR_ boris.sch...@gmail.com Nice! A few more days of work and I've time to play with these kind of things again. Here are some comments, based on your description. As game of life is a cellular automata, you do not need any blocking at all, so you could use agents, rather

Re: Parallel Game of Life

2009-03-16 Thread Kyle R. Burton
On Mon, Mar 16, 2009 at 12:31 AM, Scott Fraser scott.e.fra...@gmail.com wrote: I have taken Larry's Game of Life example that he originally posted here: http://groups.google.com/group/clojure/msg/fdfc88f1ba95bdee ...and updated it to use all the CPU's your JVM has access to... Scott, Your

Re: Parallel Game of Life

2009-03-16 Thread Larry Sherrill
Hi Kyle, I added life-conway.clj to the files section last week. It has rand, clear, and bounded buttons, and the ability to use your mouse to draw the pattern rather than rely on rand. It's a good way to experiment with different automata such as gliders. Larry Sherrill On Mar 16, 9:33 am,

Re: Parallel Game of Life

2009-03-16 Thread bOR_
I'm not very used to concurrent programming, so I have a few questions you may find naïve, but well, let's just pretend they're interesting  ... : Learning here as well :). It seems to me that the game of life works in increments of its world. So I don't see at first what can be gained by

Re: Parallel Game of Life

2009-03-16 Thread Scott Fraser
Larry, that you added mouse-drawing is awesome, I wanted to do that too. Kyle - my bad on the imports, thanks for the patch. I will take all these and refold in when I get some time. I also have some ideas on further speed ups. My gut tells me we could make this run faster. One other idea -

Parallel Game of Life

2009-03-15 Thread Scott Fraser
I have taken Larry's Game of Life example that he originally posted here: http://groups.google.com/group/clojure/msg/fdfc88f1ba95bdee ...and updated it to use all the CPU's your JVM has access to. My first attempts ran into the classic map - pmap slowdown. My next attempt had too much dosync,