CPYTHON FACTORYINTERPRETER WORLD / 03Ready

Start with a program.

3.16 · WASM

Real CPython, observable execution. The first building block for the factory.

Instrumented opcode tracing. Stack values are observed before each instruction. Specialization is affected; this is not a performance trace.

Scope and limits

Functions, loops, branches, basic lists/dictionaries, arithmetic, and selected builtins. Async functions, await, and asyncio imports support run, sleep, gather, create_task, wait_for, current_task, get_running_loop, Task, Future, and CancelledError. Public attributes are supported; other imports and private attributes are rejected. Browser asyncio supports cooperative tasks and timers, not socket or thread I/O. Capture: 2,000 events, 4 KiB output, 4,096 retained object identities, 256 activations, 5 seconds of execution, and 256 MiB maximum WASM memory. Host/browser overhead is additional.

The program factory

CPYTHON · NO JIT

Enclosures are code objects. Trays group basic blocks. Each small box is one opcode; arrows inside a tray show instruction order. Gold: taken branch · green: continuation/jump · dashed violet: observed Python call.

Run a program to build its map.
Drag to orbit · scroll or right-drag to pan · pinch to zoom. Parser/compiler are explanatory landmarks; the reveal stages completed bytecode.