Counterclockwise is an eclipse plugin, and thus an Osgi bundle. There has been some effort to try to fill the gap between Osgi and clojure ( search github for the work of aav on clojure-osgi).
I have tried hard to follow these steps of purity by separating things in different eclipse plugins. But overall is was a niche of bugs with no real advantages. So now CCW just use one eclipse plugin, embeds all its dependencies inside the plugin, and let eclipse manage its classpath. Still, this is not an easy solution, because Osgi bundles are started from the Osgi framework and when trying to load new clojure code, one needs to take care that the right classloaders are set in the thread context classloader, some clojure RT dyn vars, etc. Le jeudi 2 avril 2015, Colin Yates <colin.ya...@gmail.com> a écrit : > Do you have any references to OSGi and Clojure? > > On 2 April 2015 at 15:11, Alex Miller <a...@puredanger.com <javascript:;>> > wrote: > > It's possible we could make use of Java's module system if it ever > actually > > gets released in Java 9. While I followed it pretty extensively when they > > first started discussing it (7 or 8 years ago!) I have not been keeping > up > > on it lately. Some people have used OSGi with Clojure but I don't gather > > that it's a picnic. Designing a good module system, especially one that > > takes into account Java's classloader architecture, is a challenging > task. > > > > Personally, I think it's probably useful to think about your namespace > > layout, so I'm not really looking to get rid of the thinking part. :) > > > > > > On Thursday, April 2, 2015 at 6:05:25 AM UTC-5, Lars Andersen wrote: > >> > >> I'd love a module system solving the following problems: > >> > >> 1. Dependency isolation > >> 2. Being able to export vars without having to think about namespace > >> layout in the project > >> > >> 1. Is a serious problem where transitive dependencies on the classpath > put > >> consumers in "jar hell" and force library and tooling authors to either > >> inline code, re-invent the wheel, attempt to run their code in isolated > >> classloaders or turn to source rewriting. > >> > >> 2. Is a nice to have which is solved today by in potemkin's import-vars, > >> but I think this makes sense to include if modules are added to the > >> language. > >> > >> We might get some of this for free whenever project jigsaw gets > released, > >> but considering it was due in 2007, originally, I'm hoping this can be > >> solved without the help of Oracle. > >> > > -- > > 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 > <javascript:;> > > 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 <javascript:;> > > For more options, visit this group at > > http://groups.google.com/group/clojure?hl=en > > --- > > You received this message because you are subscribed to the Google Groups > > "Clojure" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to clojure+unsubscr...@googlegroups.com <javascript:;>. > > For more options, visit https://groups.google.com/d/optout. > > -- > 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 > <javascript:;> > 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 <javascript:;> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com <javascript:;>. > For more options, visit https://groups.google.com/d/optout. > -- Laurent Petit -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.