~/talk

Techniques learned from five years finding the way for Rust in Python

Talkat Rust Nation UK 2025 · 2025-02-19..02-20· [python]
links:none on file
slides:none on file

Five years of work on PyO3 yields concrete tactics: an API migration from borrowed references to smart pointers that improves performance and ownership soundness; procedural macro techniques that preserve source spans for precise diagnostics and deprecations; hacks for specialization like auto/d-specialization and a form of compile-time specialization using const generics; handling Python’s experimental free‑threaded GIL model and async bridging; ongoing limits from no stable Rust ABI, GC cycle handling, inventory linking and a scoped thread‑local soundness hole.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28Rust in Python ecosystem
  3. 7:06Rust’s developer experience
  4. 10:18Compiler diagnostics
  5. 15:56Procedural macros in P3
  6. 23:59Advanced macro techniques
  7. 33:59Thread safety in Python 3.13
  8. 36:46Rust-Python limitations
  9. 44:16Key takeaways
  10. 44:43Q&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.