The Abstraction Stack
Click a layerTop = human intent, bottom = physics. Each block only talks to its immediate neighbours, through a fixed interface.
▲ Human / intent
▼ Physics / silicon
Warm colours = software you can change
Cool colours = hardware you cannot
- - - privilege boundary
- - - the ISA line
The journey of print("hello")
One line of Python, all the way down the stack and back up again. Watch the tower on the left: the glowing block is the layer currently doing the work.
Descend
app → libc
Kernel
the gate & the driver
Return
sysret & switch
Render
glyphs & GPU
Silicon
pixels → photons
CPU privilege mode
USER
Ring 3 · no hardware access
Layer crossings
0
boundaries traversed
Privilege crossings
0
user ↔ kernel
Elapsed
0 ns
waiting to start
· idle
Trace · 14 steps
⚡ Every layer crossing costs time
Function call
~1 ns
Syscall
~200 ns
Context switch
~2 µs
GPU round trip
µs–ms
A function call ~1 ns · a syscall ~200 ns · a context switch ~2 µs · a GPU round trip ~µs–ms. Most software gladly pays for the convenience. Part 9 shows an industry that profiles every one of these.
Step 0 / 14