Re: Transient HashMaps with not more than 8 elements?

2010-05-30 Thread Daniel Borchmann
On Sat, May 29, 2010 at 08:52:59PM -0700, ataggart wrote: Yup, you need to use the transient functions, e.g., assoc!, just as you would the persistent functions. This is nice since you can write your code in the persistent style, then if you need to make some performance tweaks, simply add

Transient HashMaps with not more than 8 elements?

2010-05-29 Thread Daniel Borchmann
Hi, recently I discovered the following behaviour of transient hash-maps which seems a bit odd to me: user (def thm (transient {})) #'user/thm user (dotimes [i 10] (assoc! thm i i)) nil user (count thm) 8 user (persistent! thm) {0 0, 1 1, 2 2, 3 3, 4 4, 5 5, 6 6, 7 7} The same

Re: ClassNotFoundException with def

2009-06-29 Thread Daniel Borchmann
On Sun, Jun 28, 2009 at 01:25:15PM -0700, hoeck wrote: [...] Tried it, and had the same results. Somehow defining a class object as a root value triggers some mechanism to load it with the root classloader instead of the clojure one. However, putting /home/me on the classpath using -cp works.