Re: [ANN] Nginx-Clojure v0.4.0 Release!

2015-07-07 Thread Vikram Vis
This is awesome. I was really looking forward for the jersey container. The jersey container along with nginx performance should make this is a standard server to deploy http rest resources. Congrats on the 0.4.0 release. -- You received this message because you are subscribed to the Google

Re: Design Question: Agents vs. Refs

2013-07-19 Thread vis
game in Clojure. There's a > series of these starting with this: > http://clojurefun.wordpress.com/2013/03/12/alchemy-day-1-a-room-with-a-view/ > > On Friday, 19 July 2013 16:55:20 UTC+1, vis wrote: >> >> Hey guys, >> >> I am playing around with a gameserve

Design Question: Agents vs. Refs

2013-07-19 Thread vis
t holds agents of monsters *so I can just use send-off for each monster? - use a *ref of a hashmap that holds refs of monsters* that each have a agent property that I can send things to? - or simply use a java.thread for each one? - or am I completely missing something? Thanks in advance, vis --

Re: Design Question: Agents vs. Refs

2013-07-19 Thread vis
Note: what concerns me about using a* ref of a hashmap that holds agents of monsters* is that I would loose the transaction benefits of the ref (hence I can't safely move items from a player to a monster). -- -- You received this message because you are subscribed to the Google Groups "Clojure

Re: Things get slow if hashmap has 1000 Elements

2013-07-17 Thread vis
Awesome, thanks a lot! On Wednesday, July 17, 2013 11:19:06 AM UTC+2, puzzler wrote: > > This might help: > http://clojuredocs.org/clojure_core/clojure.core/*print-length* > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, s

Things get slow if hashmap has 1000 Elements

2013-07-17 Thread vis
Hello everyone, I have a ref, which is a hashmap of monsters (they key is a unique id, the value is the monster) like this: *(defrecord mob [name level hp-cur hp-max]) (def mobs (ref {})) (defn addmob [] (dosync (alter mobs assoc (gen-id) (->mob "test" 1 2 3)))* Now if I add 1000 monsters, li