Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-10-26 Thread Georgi Danov
Just for the record, there is one more relevant thread https://groups.google.com/d/topic/clojure/0AgUIiY8BQ8/discussion On Tuesday, September 29, 2015 at 12:08:16 AM UTC+2, Georgi Danov wrote: > > Hi, > I am integrating clojure into java micro container. It has hierarchical > classloaders and c

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-10-02 Thread Toby Crawley
Thanks, I've updated the README with more notes about threads in general, and core.async specifically. - Toby On Fri, Oct 2, 2015 at 3:32 AM, Georgi Danov wrote: > Toby, you might want to add one more thread leak — > clojure.core.async.impl.timers/timeout-daemon, even though this is not > offici

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-10-02 Thread Georgi Danov
Toby, you might want to add one more thread leak — clojure.core.async.impl.timers/timeout-daemon, even though this is not official core lib On Tuesday, September 29, 2015 at 4:14:48 AM UTC+2, Toby Crawley wrote: > > Note that that post is out of date - the runtime isolation pieces of > Immutan

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-09-28 Thread Georgi Danov
Thanks, that's exactly what was needed. On Tue, Sep 29, 2015, 4:14 AM Toby Crawley wrote: > Note that that post is out of date - the runtime isolation pieces of > Immutant 1.x have been extracted into > https://github.com/projectodd/shimdandy (which Stephen mentioned). > Note that with shimdandy

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-09-28 Thread Toby Crawley
Note that that post is out of date - the runtime isolation pieces of Immutant 1.x have been extracted into https://github.com/projectodd/shimdandy (which Stephen mentioned). Note that with shimdandy, shims *can't* share Clojure classes - each shim will have its own copy. This is required if you wan

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-09-28 Thread Gary Trakhman
Here is another interesting read about how they solved it in immutant: http://immutant.org/news/2012/05/18/runtime-isolation/ On Mon, Sep 28, 2015 at 6:54 PM Stephen Gilardi wrote: > I haven’t seen discussion of isolating some of the RT data structures > while sharing others and the executable p

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-09-28 Thread Stephen Gilardi
I haven’t seen discussion of isolating some of the RT data structures while sharing others and the executable parts. In case you haven’t seen these, here are some references about isolated Clojure runtimes that may be helpful: https://github.com/boot-clj/boot

safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-09-28 Thread Georgi Danov
Hi, I am integrating clojure into java micro container. It has hierarchical classloaders and can restart modules on the fly. It's almost REPL for Java :). I have clojure running inside it, but even after reading some of the RT and Compiler classes source code I don't understand well enough ho