Re: [Haskell-cafe] Multi agent system

2011-04-02 Thread Felipe Almeida Lessa
On Sat, Apr 2, 2011 at 11:16 AM, Yves Parès wrote: > Given that haskell threads are lightweight, is it reasonable to lauch a > thread per agent and then implement fetch and send through Chans? > It will be simple to implement and to use, but if I have, say, two hundreds > of really dumb (sorry, re

[Haskell-cafe] Multi agent system

2011-04-02 Thread Yves Parès
Hello, For the purpose of a simple game, I'm looking for a simple way to get agents communicating with each other, with agents possibly running on different threads: Basically, an agent is Agent :: * -> *, since it is parameterized with the type of messages it can receive, and can make two basic