~/talk

Using Rust in Free-Threaded vs Regular Python 3.13

Talkat PyCon US 2025 · 2025-05-16..05-18· [rust, python]
links:none on file
slides:none on file

Python 3.13’s free-threaded build enables true parallel Python but exposes data races in native extensions; the talk shows concrete Rust changes and PyO3 edits that make existing extensions safe, including swapping a reference counter for an atomic integers strategy, adding mutex-wrapped internal mutability, and an opt-out reference-tracking mode. Examples include a two-thread counter that reliably reaches 2 million with atomics, a reader/writer tracking scheme that previously raised exceptions, and patterns for locking vs lock-free design.

AI-written summary · about

  1. 0:00Rust in Python 3.13
  2. 1:08Free-Threaded Python
  3. 3:16Data races in Free-Threaded Python
  4. 5:41Rust’s aliasing and mutability rules
  5. 7:27Atomic integers: Rust vs Python
  6. 8:31Locking shared data
  7. 9:56PIO3 enforcing Rust rules
  8. 13:45Rust rules for multi-threaded Python
  9. 18:00Thread-safe iteration tips
  10. 19:05Future of Free-Threaded Python
  11. 20:28Q&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.