~/talk

The Art of Extending Python with other languages

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

Shows how a CPython extension compiles from C/C++ and from Rust, with working examples that build and import into Python, not vague theory. Demonstrates pyproject.toml builds, binding generators like PyBind11 and nanobind, and Rust’s PyO3, plus Shiboken for Qt. Benchmarks run a real glob rewrite over 1,000 directories with 1,000,000 files each and reports C++ faster than the Rust binding, with concrete compile and API details.

AI-written summary · about

  1. 0:00Extending Python overview
  2. 2:11Why Python extensions matter
  3. 7:28CPython C basics
  4. 9:52Extending with C++
  5. 13:04Rust for Python
  6. 15:11Zig as a safer alternative to C
  7. 17:37Other languages
  8. 18:39Manual C++ extensions
  9. 19:42Binding generators
  10. 24:18Language exposure challenges
  11. 25:20Performance benchmarks
  12. 26:22When to use extensions
  13. 27:04Python ecosystem future
  14. 28:51Q&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.