Programming 'brainfuck' and virtual machines
summary
Claims a working Brainfuck interpreter is implemented in Python in 15 minutes, with unit tests and a CLI that reads stdin and writes stdout. Builds a simple VM: an instruction pointer, cursor over a 40,000-cell tape (wraparound bytes), plus/minus, left/right, dot/comma, and a bracket-matching stack that precomputes jump pairs. Demonstrates tests pass, runs Hello World, and shows a cover‑letter-as‑Brainfuck example, so the demo actually works end-to-end.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:57Alan Turing
- 3:37Simple example
- 5:55Universal Turing Machine
- 6:13literate programming
- 6:57comment
- 7:16zoom in
- 7:42cover letter
- 8:15output
- 9:04Virtual machines
- 10:00Coding
- 13:10Writing code
- 16:08Running the code
- 28:46Code
- 32:36Magic Python
related talks
41mHow to write a JIT compiler in 30 minutes
44mImplementing Software Machines in Go and C
44mBuild Your Own VM with JIT Compilation for Dummies
50mExploring CPython's bytecode
23mVirtual Machine Design for Parallel Dynamic Programming Languages
01h 13mHow to write a programming language
34mCPython internals and the VM
26mEsoteric Languages, from O to brainfuck
