shadowofneptune/threaded-code-benchmark
View on GitHub ↗ ★ 34 C
A demonstration of ways to implement 'threaded code,' a technique used in Forth and in virtual machines like the JVM.
3 mentions on Hacker News by 1 person: 1 story, 2 comments · first 2022-01-15 · latest 2022-08-08
20082026
-
…My own benchmarks from last year (note that these toy VMs may not be applicable to larger ones): https://github.com/shadowofneptune/threaded-code-benchmark It does take work to make a faster VM, it feels unreasonable to expect a compiler…
comment by shadowofneptune · 2022-08-08 · in I 10x'd a TI-84 emulator's speed by replacing a switch-case -
…function will always be the slowest due to the work the processor has to do for each instruction. https://github.com/shadowofneptune/threaded-code-benchmark Basically, you're better off with a massive switch statement, even if it's ugly in…
comment by shadowofneptune · 2022-01-16 · in Writing a minimal Lua implementation with a virtual machine from scratch in Rust