3 ms·
Is this architecture generic enough that one could, say, build a Ruby compiler on top of it? I imagine even writing a Ruby -> JS transpiler that used the WebKi
by lobster_johnson 13y ago
Is this architecture generic enough that one could, say, build a Ruby compiler on top of it?
I imagine even writing a Ruby -> JS transpiler that used the WebKit VM would provide a speedup, similar to how JRuby works on the JVM, but native compilation would be even better.
- sanxiyn 13y agoYes. Moreover, Dropbox is trying roughly similar architecture for their Python implementation. https://github.com/dropbox/pyston https://github.com/dropbox/pyston
- steveklabnik 13y agoYou might be able to try that with http://opalrb.org/ http://opalrb.org/ Rubinius already does Ruby -> LLVM.
- ksec 13y agoBut as much as i hate to admit Rubinius is still slow.
- om2 13y agoPart of this project was building support into LLVM that you would need to build a really great dynamic language JIT. Another key aspect was having lower compilation tiers that don't use LLVM. Using LLVM as a fourth tier works much better than using it as a first or even second tier (we have tried in the past).