Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2022 (3)
20082026
  1. …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…
  2. …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…
  3. ▲ 20
    Show HN: Different ways to implement virtual machines, benchmarked
    story by shadowofneptune · 2022-01-15 · 4 comments