Re: core.async thread behaviour

2014-10-14 Thread Nico Swart
hine it turns out to be 58. On Monday, October 13, 2014 8:59:33 AM UTC-4, Nico Swart wrote: > > Hi Laurens, > > I am pretty sure (thread ...) only executes once. To check this I > evaluated > > (dotimes [i 100] (log "foo")) > > in the REPL and

Re: core.async thread behaviour

2014-10-13 Thread Nico Swart
t; > > cheers > lvh > > > > On 13 Oct 2014, at 14:21, Nico Swart > > wrote: > > > I am experimenting with core.async and I am using some code from a Tim > Baldridge presentation: > > > > ; Logging Handler ; > > > > (def l

core.async thread behaviour

2014-10-13 Thread Nico Swart
I am experimenting with core.async and I am using some code from a Tim Baldridge presentation: ; Logging Handler ; (def log-chan (chan)) (thread (loop [] (when-let [v (!! log-chan msg)) (log "foo") If one executes (log "foo") a number of times the thread count of the process inc

Apparent interaction of libraries with lein

2013-03-14 Thread Nico Swart
The Leiningen project file I use include these dependancies: (defproject fb20try "1.0.0-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.4.0"] [org.clojure/clojure-contrib "1.2.0"] [dds/ndds "1.0"] [quil

Clojure performance degraded

2009-07-29 Thread Nico Swart
I recently got clojure source and rebuilt clojure.jar. I noticed that the performance is significantly worse with the new clojure.jar compared to a older clojure.jar. Everything else is the same, I just change the clojure.jar file and the performance is 4x slower. Below the output - Note the runti