[erlang-questions] write the ant simulation in Erlang?
Thu Oct 9 00:29:07 CEST 2008
The informal condensed description of the problem starts at ~76:00 of the video.
You can see the simulation in action at 131:00 - 132:00.
On Wed, Oct 8, 2008 at 2:56 PM, Brian Zhou <> wrote:
> Recently I watched clojure concurrency video, very impressive talk.
> In the talk, lot of time was spent on walking thru the ant simulation code.
> Like many of you here, I was not convinced by the STM approach.
> Especially seeing the "Santa Claus" solution in Haskell and Erlang
> But I'm having some difficulty thinking about how to use Erlang for
> this ant simulation problem.
> It was suggested to me in IRC to have a manager process for the world
> state, with interface like world:is_food(loc). But how to make sure
> certain calls are in a a transaction? e.g. world:is_food(loc) and
> world:take_food(loc)? Maybe move what needs to be in a transaction
> into world:single_function() ?
> Thanks in advance for any idea,
More information about the erlang-questions