Re: how to get concurrent - model design question

2009-02-26 Thread Timothy Pratley
Ah I see, yes that makes sense. Relationships truly are a contract in this case! --~--~-~--~~~---~--~~ 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 unsubs

Re: how to get concurrent - model design question

2009-02-26 Thread bOR_
Thanks for the reply Timothy! I'll look into the future things :). The main reason for using refs was because I am constructing a contact network between different refs (a graph, consisting of nodes and edges.), which changes over time (all the short-term and long-term relations between hosts bei

Re: how to get concurrent - model design question

2009-02-26 Thread Timothy Pratley
Hi Boris, >  (doseq [e [retire-host slowdown-host infect-hosts naturalrecovery- > host pair-host breakup-host] i world] >            (send-off (agent nil) (fn [_] (e i)) > > There doesn't seem to be any concurrency happening, and the whole > thing just slows down to not doing much at all. Th

how to get concurrent - model design question

2009-02-26 Thread bOR_
Hi all. First. For those who remember, I posted an individual-based model in this group some time ago (eden.clj), and got some very helpful replies on where I misunderstood clojure and did things the hard way. I wanted to report that that model by now is written purely as nonblocking agents, and