> > 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 using one agent for each cell. > Because then, you'll still have to coordinate the work of the agents in your > code. > I suspect you suggested to use agents because by using agents, you gain an > abstraction for parallel programming for free, and that you are not using > agent for what I think they are for in the first place: asynchronized > computing. Each cell in a cellular automata (of which game of life is an example) only wants to change itself, based on certain rules and its neighbours.. so there should never be any blocking. You are right that the cellular automata would become asynchronous when using agents, and whether or not you want that depends on what you want to simulate. I'll see if I can write a agent-based version for it when time allows. it will be a good exercise for me as well. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---