~/talk

Pointers in Python

Talkat PyCon US 2024 · 2024-05-15..05-23· [python]
slides:none on file

Walks through compiling CPython from source (Docker recommended), then literally adds & and syntax and creates pointer builtin object in the interpreter, triggering a segmentation fault, fixing it by plugging parser, upcode, and VM dispatch, and then adding GC/trash‑can support so cycles free memory. Implements methods to read and write raw bytes* and to subscribe into object memory, demonstrates swapping list internals and mutating a string in place, and shows the whole pipeline ultimately works after successive patches.

AI-written summary · about

  1. 0:00Introduction
  2. 25:05CPython compilation pipeline
  3. 46:10Modifying Python syntax for pointers
  4. 1:00:02Implementing pointer objects
  5. 1:25:21Memory management and garbage collection
  6. 2:02:29Unsafe memory manipulation
  7. 2:12:41Pointer usage demonstration
  8. 2:25:00Q&A
~/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.