3 ms·
Maybe sticking to the one true universal bytecode format is already a fallacy — why not just stick to AST interpreters, when they can be made efficient? This is
by kaba0 3y ago
Maybe sticking to the one true universal bytecode format is already a fallacy — why not just stick to AST interpreters, when they can be made efficient? This is the premise of Graal’s Truffle, and I think they succeed at it quite well.
- luismedel 3y agoYou'll find this[0] interesting then: The abstract syntax tree is then traversed and encoded into a stream of symbols from the evolving vocabulary. The encoder processes whole subtrees of the abstract syntax tree at a time; these roughly correspond to statements on the level of the source language If I'm not wrong, this technique originated in Oberon and was polished by the paper authors (disciples of Wirth) [0] https://dl.acm.org/doi/pdf/10.1145/265563.265576 https://dl.acm.org/doi/pdf/10.1145/265563.265576