Re: Multiple Clojure contexts in the same JVM

2013-08-21 Thread David Pollak
Sweet. Thanks! On Tue, Aug 20, 2013 at 3:51 PM, Toby Crawley wrote: > > David Pollak writes: > > > I have an application where I need multiple independent Clojure contexts > > running in the same JVM. > > You can use ShimDandy[1] to load multiple Clojure runtimes in the same > JVM, and call int

Re: Multiple Clojure contexts in the same JVM

2013-08-20 Thread Toby Crawley
David Pollak writes: > I have an application where I need multiple independent Clojure contexts > running in the same JVM. You can use ShimDandy[1] to load multiple Clojure runtimes in the same JVM, and call into those runtimes from Java. That's what Immutant[2] and the Clojure language module f

Re: Multiple Clojure contexts in the same JVM

2013-08-20 Thread Hugo Duncan
David Pollak writes: > I have an application where I need multiple independent Clojure contexts > running in the same JVM. Classlojure [1] can do this for you, taking care of correct initialisation, and evaluation. [1] https://github.com/flatland/classlojure pgpjGCdyjK4nh.pgp Description: PGP

Re: Multiple Clojure contexts in the same JVM

2013-08-20 Thread David Pollak
Sean, Thanks for the response. The issues that I've come across using code similar to yours is that if there are two people sharing the same namespace, they will over-write each others' stuff. I guess I'll wait for 1.6 unless others have ideas. Thanks, David On Tue, Aug 20, 2013 at 1:55 PM

Re: Multiple Clojure contexts in the same JVM

2013-08-20 Thread Sean Corfield
Just FYI (and you probably already know this David), most of the clojure.lang.RT class is considered an implementation detail and is subject to change without notice. I believe 1.6 will bring a new API that is intended to provide a supported way to embed Clojure into JVM-based applications. Based