Deep dive into YARV (Yet Another Ruby VM), Ruby's virtual machine that executes compiled bytecode. Explains how YARV uses a dual-stack architecture: one internal stack for tracking intermediate values and instructions, and another for managing Ruby's call stack. Walks through detailed execution flow of simple Ruby code, showing

6m read timeFrom patshaughnessy.net
Post cover image
Table of contents
Chapter 3: How Ruby Executes Your CodeYARV’s Internal Stack and Your Ruby StackStepping Through How Ruby Executes a Simple Script

Sort: