Hi Benny,
On Dec 3, 9:21 pm, Benny Tsai wrote:
> Hi Nils,
>
> A while back, I also took a stab* at implementing Erlang-style actors in
> Clojure, along with solutions for a few classic concurrency problems
> (Dining Philosophers, Sleeping Barber). I was blown away by how easy it
> was to impleme
Hi Nils,
A while back, I also took a stab* at implementing Erlang-style actors in
Clojure, along with solutions for a few classic concurrency problems
(Dining Philosophers, Sleeping Barber). I was blown away by how easy it
was to implement actor semantics on top of agents.
Comparing our respe
Hi Stuart,
thanks for the info. I did not really think about some of these
differences. Basically, it was just a fun exercise ... not (yet)
useful for anything serious.
On Dec 2, 10:14 pm, Stuart Sierra wrote:
> > how do Clojure agents relate to Erlang actors?
>
> There are several important dif
> how do Clojure agents relate to Erlang actors?
There are several important differences:
1. Agents are designed for in-process communication only.
2. Observing the state of an Agent does not require sending it a message.
3. Agents accept arbitrary functions instead of a predefined set of
mess
Hi,
how do Clojure agents relate to Erlang actors?
To gain some insights, I tried to implement Erlang style message
passing between agents. The first version is just a very incomplete
sketch (no mailbox, case instead of pattern matching ...), but already
shows that it is quite easily doable:
https