On Thu, Dec 17, 2009 at 10:52 AM, Matt Fowles <[email protected]> wrote:
> Charlie~
> We use Janino for that exact purpose.  I am currently toying with the idea
> of making it into a mildly optimizing compiler (simply to reduce the size of
> the emitted bytecode and as an interesting exercise).  Would you find any
> value in that?

You bet your bippy I would. I've been wishing for something like "LLVM
for JVM bytecode" for a long time. I've been meaning to look at Janino
to replace our current compiler backend, but have been spending more
time on integration aspects of JRuby lately.

FWIW, we're currently putting together (with a lot of help from Subbu
Sastry) an optimizing compiler for JRuby that can do things like
inline Ruby code, propagate constants and types, eliminate dead
code...all the bits and pieces an optimizing compiler would do, if we
had an optimizing compiler backend we could reuse. The ideal situation
would be that we'd use our optimizing compiler to produce optimized
JRuby IR, and then feed that into the JVM-targeting optimizing
compiler in Janino to produce the best-possible-bytecode for our
best-possible-IR.

- Charlie

--

You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.


Reply via email to