AOT compilation for library targeting multiple Clojure versions

2011-12-07 Thread Sam Ritchie
Hey all, I'm almost finished integration Kryo serialization into Cascalog using Alex Miller's Carbonite library, and I'm running into a bit of a hitch with AOT-compilation. I'm exposing the Clojure serializers to Kryo using a namespace compiled with :gen-class:

Re: AOT compilation for library targeting multiple Clojure versions

2011-12-07 Thread Meikel Brandmeyer (kotarak)
Hi, I found the easiest approach to be a small wrapper written in Java. Something like this should work. Not tested, though. package carbonite; import clojure.lang.RT; import clojure.lang.Var; import com.esotericsoftware.kryo.Kryo; public class JavaBridge { static Var require =

Re: AOT compilation for library targeting multiple Clojure versions

2011-12-07 Thread Sam Ritchie
Meikel, thanks so much for this. I followed your advicehttps://github.com/sritchie/carbonite/blob/master/src/jvm/carbonite/JavaBridge.javaand Cascalog and Carbonite are now working Clojures 1.2, 1.3 and 1.4 :) Cheers, Sam On Wed, Dec 7, 2011 at 8:17 AM, Meikel Brandmeyer (kotarak)

Re: AOT compilation for library targeting multiple Clojure versions

2011-12-07 Thread Stuart Sierra
This is a well-known issue. Some workarounds and potential fixes here: http://dev.clojure.org/display/design/Transitive+AOT+Compilation -S -- 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