Hello Gaetan, I'm one of the core developers of clojuredev, an open source project whose goal is to provide clojure support for the Eclipse IDE. What you say below is interesting, please see what I have noted inline -->
2009/1/23 gaetan <gaetan.mor...@gmail.com> > > Hi everybody, > > I am working in a software company specialized in Eclipse based > product development (and member of the Eclipse Fundation). We are very > interesting in clojure features and we plan to use it in some of our > products. I am currently working on clojure integration in OSGi > Bundles in order to embed code in Eclipse plugins. As mentioned in > some posts the biggest problems is class loading. Indeed in OSGi each > bundle has its own class loader and class loading is not based on the > application classpath or on the current thread class loader. > Consequently, it is very difficult to make clojure work with java code > and to use OSGi visibility and dependencies system inside clojure. For mere mortals like me, could you explain the problem via an example ? (I understand there is a problem, I don't exactly understand what it really is) Concerning clojuredev, we provide clojure as a separate plugin, which exposes everything to plugins that depend on it. Currently, clojuredev plugin is successful in calling clojure core functions defined in clojure plugin, as well as loading new functions and namespaces from clojuredev plugin. > I > think the best solution is to use bundles class loader inside clojure > class loading system. I developed a proof of concept that uses a new > class loader that extends clojure.lang.DynamicClassLoader with bundle > class loading capability. To know which bundle use to load classes or > script file the class loader uses the current namespace which has to > reflect the bundle name (this is the java convention for bundles). In > order to use this new class loader I had to modified > clojure.lang.RT#baseLoader and makeClassLoader and > clojure.lang.core#import. Moreover to test this I made a experimental > Eclipse Builder that enable AOT compilation of mixed clojure and java > plugin. So far it seems to work well: clojure and java interact > seamlessly and it is very fun to interact dynamically with an Eclipse > instance! > > I had some questions to the clojure community: > * Whether it is possible to overload clojure class loading without > introducing dependencies in clojure's core? > * If their are some people interested in this application of clojure? > (I can made my sources available) We currently don't have made the AOT version of the eclipse builder, so if you could publish what you've done so far that would be great, because we could work on it, or it could give us some hints to make our own. Is it possible for you to publish it, maybe via the EPL, which seems to be the 'defacto' Open source license to use when creating code around clojure ? Regards, -- Laurent > Moreover I will made a post on Eclipse E4 project mailing list (work > on the future of Eclipse) as they are very interested in dynamic > languages. > > BR, > > Gaetan > > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---