Re: maven compilation of a clojure project hangs due to still running thread pools

2010-08-08 Thread Stuart Sierra
Short answer: never execute code at the top-level of your source files. Only define functions. If you have a shared constant that only needs to be evaluated once, consider using delay/force. -S On Aug 7, 4:46 am, Christian Schuhegger christian.schuheg...@gmail.com wrote: Hi all, I just had

maven compilation of a clojure project hangs due to still running thread pools

2010-08-07 Thread Christian Schuhegger
Hi all, I just had a lengthy debugging session behind me to find out why maven hangs when trying to execute the clojure:compile target of the clojure-maven-plugin. I found out that the problem does not lie in maven but in clojure (or in my code if you want to see it that way). My code executes

Re: maven compilation of a clojure project hangs due to still running thread pools

2010-08-07 Thread Armando Blancas
It seems to me that agents and functions like pmap should require additional coding. Given the problem you've encounter, maybe a cached thread pool isn't the best choice, especially if one proposal to deal with this situation is to lower the keep alive value to the point that this thing isn't much

Re: maven compilation of a clojure project hangs due to still running thread pools

2010-08-07 Thread Armando Blancas
It seems to me that agents and functions like pmap should require additional coding. Wait, don't commit! I meant should NOT require that... -- 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