2025-10-13
A Copy-and-Patch Tutorial
If you can ctrl-c and ctrl-v, you can build a JIT.
Building a complete calculator rather than toy example involves solving a few more traditional compiler problems.
More posts will trickle out over time:
Control Flow
Register Allocation
Stencil Library Generation
Stencil Selection
Exceptions
Debug info
Profiling with JITDUMP
Benchmarking with WasmNow
See discussion of this page on Reddit, Hacker News, and Lobsters.