~/lightning

Writing A Python Interpreter for Fun & Profit

Lightningat CppCon 2014 · on Sunday, 2014-09-07· [rust]
linkedin:shooshx
slides:none on file

A tiny Python VM compiles CPython bytecode and executes it with a simple C++ interpreter that actually works: a single recursive run_code loop with a big switch over opcodes, an object model implemented by C++ classes with intrusive ref counts, and C++↔Python bindings for calling back and forth. Implementation uses modern C++ and finishes in about five days as roughly 2000 lines of code, demonstrating multi-instance interpreters and straightforward extensibility.

AI-written summary · about

  1. 0:00Start
  2. 2:03use the python compiler to compile it into bytecode
  3. 3:16add an wrapper
  4. 4:02unwrapping the arguments
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.