Re: Clojure deployment questions w.r.t. jars, clojure source files, compiled class files

2014-01-08 Thread Dave Tenny
Excellent answers and I usually find a use for extra wrenches. I'm still confused about when anybody actually calls the (compile) function, any more tips here? Or is it being done for me by leiningen? On Wed, Jan 8, 2014 at 1:54 AM, Softaddicts lprefonta...@softaddicts.cawrote: To complement

Re: Clojure deployment questions w.r.t. jars, clojure source files, compiled class files

2014-01-08 Thread Softaddicts
Look at the compile fn at the bottom: https://github.com/technomancy/leiningen/blob/master/src/leiningen/compile.clj you will find your answer :) Luc P. Excellent answers and I usually find a use for extra wrenches. I'm still confused about when anybody actually calls the (compile)

Clojure deployment questions w.r.t. jars, clojure source files, compiled class files

2014-01-07 Thread Dave Tenny
So if I sample some clojure jars in my local maven .m2 directory, most of the jar files have only clojure code, and a project.clj. If I look at the org.clojure project there, it has many java class files, what appear to be corresponding clojure source files, and *no* project.clj. With only a

Re: Clojure deployment questions w.r.t. jars, clojure source files, compiled class files

2014-01-07 Thread Gary Trakhman
AOT in my experience is a little dicey and complicated. On Tue, Jan 7, 2014 at 7:26 PM, Dave Tenny dave.te...@gmail.com wrote: So if I sample some clojure jars in my local maven .m2 directory, most of the jar files have only clojure code, and a project.clj. If I look at the org.clojure

Re: Clojure deployment questions w.r.t. jars, clojure source files, compiled class files

2014-01-07 Thread Sean Corfield
On Tue, Jan 7, 2014 at 4:26 PM, Dave Tenny dave.te...@gmail.com wrote: 1) When and under what circumstances projects are compiled in source versus .class form? Most Clojure projects ship in source form (and are therefore compiled to bytecode on demand as they are loaded). 2) Why there is no

Re: Clojure deployment questions w.r.t. jars, clojure source files, compiled class files

2014-01-07 Thread Softaddicts
Just to throw a wrench in this thread :))) a) We AOT our stuff to avoid shipping our sourde code to customer sites (:aot [regex...]), this requirement is the basis for what follows. b) We filter classes using lein to remove from our artifacts classes from other libs so only our AOT code

Re: Clojure deployment questions w.r.t. jars, clojure source files, compiled class files

2014-01-07 Thread Softaddicts
To complement my previous post and in relation to this one, we use (if-not *compile-file* ...) to wrap expressions that cannot be AOT compiied (like loading configuration or connecting to external resources which you do not want to do at compile time but at run time only:) This confused a lot of