ASM allows to save the created classes.
It is possible to add in Clojure the compilation in a .jar file?
And simple question: how using Clojure in batch mode?
Thanks!
--
WBR, Yaroslav Kavenchuk.
On Nov 2, 4:48 am, kavenchuk <kavenc...@gmail.com> wrote:
> And why ASM is not used as separate library?
>
Lots of projects use ASM and want to avoid version clashes, thus many
of them, including Clojure, put ASM in a nested namespace..
> ASM allows to save the created classes.
> It is possible to add in Clojure the compilation in a .jar file?
Not yet. Right now the compiler is pretty fast, and the overall time
for loading a script might be dominated by class loading and
verifying, which wouldn't improve when compiling to a .jar. There are
also issues relating to the serializeability and identity of object
literals, the notion of load-time vs compile-time, eval-when etc.
>
> And simple question: how using Clojure in batch mode?
java -cp clojure.jar clojure.lang.Script src/boot.clj yourcode.clj
Will run any supplied scripts and exit.
Thanks again!
--
WBR, Yaroslav Kavenchuk.