Interpreters and Bytecode VMs Purpose Guide agents through implementing efficient bytecode interpreters and simple JITs in C/C++: dispatch strategies, VM architecture choices, and performance patterns. Triggers - "How do I implement a fast bytecode dispatch loop?" - "What is the difference between switch dispatch and computed goto?" - "How do I implement a register-based vs stack-based VM?" - "How do I add basic JIT compilation to my interpreter?" - "Why is my interpreter slow?" Workflow 1. VM architecture choice | Style | Description | Examples | |-------|-------------|---------| | Stack-bas…