Re: Statics in clojure.lang.RT

2009-10-12 Thread Manuel Woelker
On Mon, Oct 12, 2009 at 11:41 AM, Christophe Grand wrote: > > You can: simply load them using different class loaders -- this way you'll > have several RT. Yeah, that might work. I had hoped to get around dealing with multiple classloaders and calling the RT methods via Reflection, but I guess t

Re: Statics in clojure.lang.RT

2009-10-12 Thread Christophe Grand
On Mon, Oct 12, 2009 at 1:41 PM, Roman Roelofsen < roman.roelof...@googlemail.com> wrote: > > 2009/10/12 Christophe Grand : > > On Mon, Oct 12, 2009 at 12:00 PM, Roman Roelofsen > > wrote: > >> > >> > Plus, if you use a shared loader for most interfaces, clojure > instances > >> > will > >> > be

Re: Statics in clojure.lang.RT

2009-10-12 Thread Roman Roelofsen
2009/10/12 Christophe Grand : > On Mon, Oct 12, 2009 at 12:00 PM, Roman Roelofsen > wrote: >> >> > Plus, if you use a shared loader for most interfaces, clojure instances >> > will >> > be able to share persistent data and closures. >> >> Nope, I tried this and it didn't work. The classloader exp

Re: Statics in clojure.lang.RT

2009-10-12 Thread Christophe Grand
On Mon, Oct 12, 2009 at 12:00 PM, Roman Roelofsen < roman.roelof...@googlemail.com> wrote: > > > Plus, if you use a shared loader for most interfaces, clojure instances > will > > be able to share persistent data and closures. > > Nope, I tried this and it didn't work. The classloader explicitly >

Re: Statics in clojure.lang.RT

2009-10-12 Thread Roman Roelofsen
> Plus, if you use a shared loader for most interfaces, clojure instances will > be able to share persistent data and closures. Nope, I tried this and it didn't work. The classloader explicitly complained that e.g. Var and RT have not been loaded by the same classloader :-/ --~--~-~--~--

Re: Statics in clojure.lang.RT

2009-10-12 Thread Christophe Grand
On Sun, Oct 11, 2009 at 8:25 PM, Manuel Woelker wrote: > > Hi, > > While hacking on counterclockwise I noticed that the clojure.lang code > uses a lot of static variables and methods. As far as I can tell this > makes it almost impossible to have two or more separate instances of > the clojure run