~/talk

Overcoming GIL with subinterpreters and immutability

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

A new framework called memhive implements a subinterpreter worker pool, an efficient RPC layer and an async/await API and claims to unlock true parallelism without serializing large datasets. It uses immutable collections built with an HT/Hashed Array Mapped Trie style structure and structured sharing so mutating a million‑entry mapping copies only a few nodes, not the whole object. Benchmarks show submillisecond transfers versus pickle and large speedups when few entries change; implementation requires remote refcount tricks, lazy memcpy of scalars, and is a prototype on GitHub (Apache‑2).

AI-written summary · about

  1. 0:00Welcome to subinterpreters
  2. 3:31Python GIL limits
  3. 7:03Immutability for shared state
  4. 10:15Efficient immutability with HAMT
  5. 14:27Sharing immutable data
  6. 18:04Benchmarking sharing vs pickling
  7. 21:53Mamihe state and future
  8. 22:56Q&A on use cases
~/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.