My first try to get JPPF to work from REPL is changing the 
ContextClassLoader to an implementation derived from 
clojure.lang.DynamicClassLoader which caches the class bytes on definition.
That did not work so far. Sometimes (.setContextClassLoader 
(Thread/currentThread) cacheClassLoader) does not even seem to work - since 
(.getContextClassLoader (Thread/currentThread)) still returns a 
DynamicClassLoader afterwards.

In case caching dynamically created classes will not be included in any 
future Clojure version, I want to be able to intercept class definition for 
the caching.
The best scenario would be, if Clojure had a compiler option that creates 
class files for dynamically created classes like *compile-files* in 
Clojure's compiler does when using (compile 'my-ns). *compile-files* seems 
not usable for that case in REPL by simply binding it to true.

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to