On Mon, Oct 12, 2009 at 1:41 PM, Roman Roelofsen <
roman.roelof...@googlemail.com> wrote:

>
> 2009/10/12 Christophe Grand <christo...@cgrand.net>:
> > 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
> >> complained that e.g. Var and RT have not been loaded by the same
> >> classloader :-/
> >
> > Sadly I know and that's why I said "most interfaces" (eg all interfaces
> > starting with "I" and Associative, Counted, Seqable, Reversible and
> > Sequential are safe) -- at least last time I tried.
>
> Good point. And since most clojure data types are based on java types
> (e.g. Map, Callable) the shared parent classloader is already there.
>
>
Except if you only rely on java interfaces, you won't be able to: conj (or
assoc/dissoc, pop, peek etc.) shared data and to pass arguments to shared
closures.

--~--~---------~--~----~------------~-------~--~----~
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