Re:Direct Clojure to C Compiler - Based on ClojureScript
by pjmlp on Monday July 09, 2012 @11:29AM
(#4218626)
You mean VM Kit then, with AOT compilation for Java, just like Clang but for Java.
Re:Direct Clojure to C Compiler - Based on ClojureScript
by exDM69 on Monday July 09, 2012 @12:38PM
(#4218973)
Except that I don't want the Java part of it. I'd much rather just use Clang and C.
VMkit is a nice effort, though. I hope it will some day power fancy new languages that have dynamic features which are not well suited for AOT compilation.
I guess there's someone who wants to pay for that.
But I don't think it's money well spent. The Java bytecode is not designed for or suited to fast execution and it's a bad intermediate representation for computer programs to be compiled into native code. The Java byte code was designed to be easy to interpret and was designed at a time when a memory access was faster to execute than an ALU instruction (on cheap h/w where Java was originally intended to be run on). Those days have passed and we should move on to better intermediate representations for computer programs. Like LLVM IR.