Hi Konrad, Have you tried giws (spelt opposite of swig) .. it automatically generates all the necessary jni stuff necessary for any java-class .. It takes an xml file as input and generates any necessary jni-wrappers .. It can only acess the class member-functions not member-values. I have tried it .. it is really nice .. all one would have to do is just generate an xml file for the class under consideration.. but I have only looked at it from the point of view of calling java/clojure code from c/c++ .. not the other way around .. it was infact designed for that purpose.. This is what enable scilab to acess some of the java functionality in scipy. you may want to look at it...
http://www.scilab.org/products/other/giws <http://www.scilab.org/products/other/giws>It is very seamless once you have the xml file .. but it can be easily generated using reflection in java .. so is not much of an issue.. Sunil. On Tue, Dec 21, 2010 at 1:53 AM, Konrad Hinsen <konrad.hin...@fastmail.net>wrote: > On 20 Dec 2010, at 18:19, Ken Wesson wrote: > > Is it really necessary, though? Hotspot's JIT yields up >> native-ballpark speeds when you really need them, if you optimize your >> code appropriately. >> > > For me, a native-code implementation of Clojure would be of interest for > interfacing with libraries written in C, C++, and Fortran. The same goal > could probably be achieved otherwise (compiling Java bytecode to native > code, or simply a JVM with a better native interface than JNI), but at the > moment I see no satisfying solution. > > Konrad. > > > -- > 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<clojure%2bunsubscr...@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 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