3 ms·
Nice! If you're looking for another fun challenge, make your language compile into bytecode and execute that instead of an AST. :)
by sdegutis 10y ago
Nice! If you're looking for another fun challenge, make your language compile into bytecode and execute that instead of an AST. :)
- chrisseaton 10y agoASTs are fighting back these days! I work with a system at Oracle for going straight from AST to JIT, with no bytecode, and it's proving to be very fast and very easy.
- mungoman2 10y agoThat is super cool! Are there any public resources available about this?
- chrisseaton 10y agoThe key paper: http://lafo.ssw.uni-linz.ac.at/papers/2013_Onward_OneVMToRuleThemAll.pdf http://lafo.ssw.uni-linz.ac.at/papers/2013_Onward_OneVMToRul... There's implementations of Ruby, JS, R, Python, etc, using it. I have a blog about the Ruby effort http://chrisseaton.com/rubytruffle/ http://chrisseaton.com/rubytruffle/