The Long Hello World
summary
Follows print("hello world") all the way from the REPL through the tokenizer, PEG parser, bytecode compiler, and CPython VM into G nu C's write, the Linux syscall, VFS/PTY and the kernel memcpy that executes the final 12 bytes to the terminal; demos use the tokenize ast and dis command‑line tools, notes about ~100 opcodes and a JIT that fires on hot loops after repeated backward jumps, shows the final move Q assembly and confirms the string appears as expected.
AI-written summary · about
chapters (25)
- 0:00Welcome
- 1:18Hello World to Python stack
- 2:22Lexing and tokenizing
- 3:24Abstract syntax tree
- 5:08Parsing grammar in Python
- 6:10Python as compiled
- 6:31CPython VM and op codes
- 7:57Bytecode creation
- 8:58Executing bytecode
- 10:20Scoping and built-ins
- 11:04Tracing print execution
- 11:24Streams and file descriptors
- 12:47Introduction to libc
- 13:50User vs kernel space
- 15:14Syscall dispatch in Linux
- 16:16Virtual file system
- 17:18TTY and pseudo-terminals
- 18:43Kernel memory copy
- 20:06Returning to user space
- 20:49Rendering Hello World
- 21:10Why internals matter
- 22:00Q&A
- 22:43Discussion on Python performance and unicorns
- 24:05JIT compilation deep dive
- 25:54Closing
related talks
27mPython: From Source to Execution
27mPython is Weird
30mDemystifying Python’s Internals: Diving into CPython by implementing...
50mExploring CPython's bytecode
02h 26mPointers in Python
34mCPython internals and the VM
31mUnderstanding Python from the inside: C concepts to dive into CPython fearless
01h 13mHow to write a programming language
