On Fri, 17 Jun 2011 03:09:46 -0700 (PDT) flebber <flebber.c...@gmail.com> wrote:
> I apologise for the stupidity of this question in advance. > > Just want to clarify. The jvm is great for other languages to be > hosted on clojure, jruby, scala, jython...etc. But what would be > really cool is if we could use the jvm to create interoperability > between the languages so that clojure could call a jruby module etc. > It's right that currently this can't be done isn't it? If it can is it > hard & how? > For languages with AOT compiler you could use normal Java interop, but you will need to figure out how classes and methods generated by the compiler correspond to the source code. For dynamic loading and invocation of scripts there is the Java scripting API (JSR 223): http://download.oracle.com/javase/6/docs/api/javax/script/package-frame.html Clojure code can as well be invoked from other languages through the scripting API, see http://code.google.com/p/clojure-jsr223/. -- Mikhail -- 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