Re: Long response time after a clojure process was inactive for some time

2012-12-15 Thread Stefan Ring
On Thursday, December 13, 2012 8:21:09 PM UTC+1, Trastabuga wrote: A while ago I created a small web site based on Clojure. I noticed that when there was no requests to the site for some period of time (a few hours) it may take up to 20-30 seconds to process an incoming request. I am

Re: atom and lock

2012-07-26 Thread Stefan Ring
In addition, most systems only support loading memory in cache lines. IIRC, today most cache lines are 16KB. So when you read a single byte, the 16KB around that memory location is loaded as well. The cache line size on x86 is 32 bytes on 32 bit systems, not 16KB. On 64 bit systems, it's 64

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-19 Thread Stefan Ring
I believe this is related to an oddity of the clojure compiler: it syncs every time it writes a class file to disk. This appears to be necessary for reasons that escape me. (One might naively assume that a simple flush() would be enough; but that was not so when I stumbled across this myself

Re: Enlive (HTML templating library) tutorial

2011-07-18 Thread Stefan Ring
On Fri, Jul 15, 2011 at 5:54 PM, Brian Marick mar...@exampler.com wrote: Enlive is Christophe Grand's templating library for Clojure. Instead of the usual substitute-into-delimited-text approach, it works by editing node trees selected by CSS selectors. I’ve written a tutorial for it.