4 ms·
Not sure why they don't simply compile to Java bytecode to start with. It doesn't seem like they're making use of runtime type profiles here a la Self. It stil
by wingo 17y ago
Not sure why they don't simply compile to Java bytecode to start with. It doesn't seem like they're making use of runtime type profiles here a la Self.
It still seems to me that JIT compilation is needless, unless your compiler is as smart as Self's. One should simply compile to the desired target language and avoid warmup costs.
- slava_pestov 17y agoThe JRuby developers have spent a lot of time doing performance measurements, implementing optimizations and trying out different approaches. You're just throwing in your two cents based on second-hand knowledge of an obsolete language implementation...
- wingo 17y agoIndeed, I don't know about JRuby. I know about Scheme. There is no fast Scheme that JIT-compiles, that I know of. All the fast Lisp compilers that I know compile ahead-of-time. If you know why they did this, pray tell :) As a language implementor yourself, you probably have a good feel for the cost accounting.