by pansa2 · 5y ago · 0 comments
Based on a quick look at the file “interpreter_run.cc”, Toit’s VM appears to be a stack-based interpreter like MicroPython’s. It would be interesting to know what techniques are being used that enable Toit to be so much faster.
If you're into fast virtual method calls - also for dynamic languages - you might want to take a look at Karel Driesen's excellent PhD dissertation on the subject:
https://cs.ucsb.edu/sites/default/files/documents/1999-24.ps
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.34....