2026-04-05 19:25 UTC
@whitequark@social.treehouse.systems I got nerd-sniped on bluesky to look at the actual wasm
The tailcall implementation does use return_branch_indirect as expected:
https://gist.github.com/mkeeter/66df08eaf580f293c5f950baa43703b5
The traditional bytecode VM, on the user hand, uses `br_table`, at the end of a 250-deep stack of blocks (!):
https://gist.github.com/mkeeter/66df08eaf580f293c5f950baa43703b5
It's kinda incredible: each opcode is its own block, and they each end with a `break N` instruction to break back out to the top level.
Replies (0)
No replies.