The Long Hello World
summary
Starts at a Python REPL and follows print("hello world") down the stack: tokenizer → PEG parser → CPython compiler → ~100 opcodes → pyeval eval_frame_default executing a load_name and call that resolves to the built-in print, which invokes write(1, buffer, 12) via Gibb C into the Linux syscall (syscall id 1), dispatches to VFS → TTY → PTY, memcpy uses five movq instructions in assembly and the bytes appear on-screen; print("hello world") syscall id 1 12 bytes PTY
AI-written summary · about
