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 - add a throttle for the "available-procs" value, and a real time "Frames Per Second" display. It would be interesting to figure out on various hardware what is the right setting for available- procs, which currently in this version is really more related to the size and number of the chunks of work as opposed to how many threads actually get deployed behind the scenes by pmap. Note that based on my profiling, if I have 8 CPU's available, and I throw out there 8 chunks of work, pmap is using a pool of 8 or so threads behind the scenes to process the work. Would be good to understand how pmap sizes that executor pool. -Scott On Mar 16, 11:51 am, Larry Sherrill <lps...@gmail.com> wrote: > 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, "Kyle R. Burton" <kyle.bur...@gmail.com> wrote: > > > 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 changes indeed make it run significantly faster for me. Thanks! > > > I added a 'reset' button and changed some of the java method calls to > > be a bit more (I think) idomatic clojure. > > > The full file is > > here:http://asymmetrical-view.com/personal/code/clojure/life.clj > > > And a patch is attached (you also left off the import statements in you > > email). > > > FYI: Scott Fraser is giving a talk on clojure at the Philly Emerging > > Technologies for the Enterprise conference next week: > > > http://phillyemergingtech.com/abstractsTab.php?sessID=39 > > http://phillyemergingtech.com/speakers.php > > > Regards, > > > Kyle Burton > > > -- > > --------------------------------------------------------------------------- > > --- > > kyle.bur...@gmail.com > > http://asymmetrical-view.com/ > > --------------------------------------------------------------------------- > > --- > > > life.patch > > 3KViewDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---