Re: Agent action queuing is asynchronous.

2011-04-15 Thread André Caron
Hi Ivan, Thanks for the tip. I'll get the polling solution working until Java 7 is supported by Clojure. I really want to see how well I can model different network protocols using Clojure's agents as asynchronous state machines, as this is why I started looking at Clojure in the first place. I

Re: Agent action queuing is asynchronous.

2011-04-15 Thread Ivan Koblik
Hello André, Just wanted to mention that Java 7 is feature complete. You can see the list of approved features here: http://openjdk.java.net/projects/jdk7/features/ It seems that JSR203 was selected for the release, although I remember reading that Clojure won't support Java 7 for awhile. Cheers

Re: Agent action queuing is asynchronous.

2011-04-14 Thread André Caron
After further analysis, I don't think this is globally a good strategy. I looked into a solution with a "(ref (clojure.lang.PersistentQueue/ EMPTY))" in the selector agent. The plan was to have be able to queue "updates" to the schedule synchronously. Half-way through the implementation, I reali