~/talk

Rust for CPython: Making Python Safer and More Robust for Everyone

Talkat PyCon US 2026 · 2026-05-13..05-19· [rust, python]
links:none on file
slides:none on file

CPython contains over a million lines of C and recent work changes ~500,000 lines, causing a 4× rise in incoming security reports. The proposal adds Rust in CPython 3.16 with a new private API, implements the zlib module via zlib-rs faster than zlib-ng, keeps a C fallback required for build compatibility, and relies on fuzzers sanitizers and LLM-assisted triage. Android reports show a 1,000x reduction in memory vulnerabilities for Rust code.

AI-written summary · about

  1. 0:00Welcome
  2. 1:35Data race in Python
  3. 2:36C in CPython risks
  4. 3:41Undefined behavior in C
  5. 6:12Undefined behavior challenges
  6. 8:18Current mitigations limits
  7. 11:31Rust for CPython
  8. 13:40Rust improves reliability
  9. 15:49Unsafe Rust boundaries
  10. 16:52Vulnerabilities and productivity
  11. 17:37Python 3.16 Rust proposal
  12. 21:35Rust zlib implementation
  13. 22:39Future Rust plans
  14. 24:47Q&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.