ASM 3.1 is out. It will be used?

33 views
Skip to first unread message

kavenchuk

unread,
Nov 2, 2007, 4:48:04 AM11/2/07
to Clojure
And why ASM is not used as separate library?

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.

Rich Hickey

unread,
Nov 2, 2007, 8:14:58 AM11/2/07
to Clojure
I'll look at ASM 3.1, but right now nothing about 3 seems inadequate
for Clojure.

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.

Yaroslav Kavenchuk

unread,
Nov 2, 2007, 8:32:50 AM11/2/07
to clo...@googlegroups.com
Rich Hickey wrote:
>> 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.

Reply all
Reply to author
Forward
0 new messages