News for hackers. Stuff that matters.
Re:Squeezing a Little More Performance Out of Bytecode Inter... by ghusbands on Monday June 19, 2023 @12:59AM (#36387461)
It's odd that this is your area of interest and yet you don't know of the commonly-used direct/indirect threading techniques. Many interpreters, including a famously fast one [1], use them, and benchmarks have repeatedly shown it to be a significant gain [2].

[1] http://lua-users.org/lists/lua-l/2011-02/msg00742.html

[2] https://eli.thegreenplace.net/2012/07/12/computed-goto-for-e...

Re:Squeezing a Little More Performance Out of Bytecode Inter... by _a_a_a_ on Monday June 19, 2023 @04:59PM (#36396383)
My interest is in compilers much more than interpreters, I haven't come across this threaded style before, my interest in languages and compilers is something I've barely used at work, and everything after university that I've learnt has been self-taught. There are inevitably going to be holes.

Anyway, great pair of links, much appreciated!