~/talk

Pumping up Python modules using Rust

Talkat PyCon APAC 2018 · 2018-05-31..06-02· [python, rust]
slides:none on file

Shows how replacing hot Python paths with Rust extensions yields concrete gains: a string word‑count example gives about 10x speedup when rewritten in Rust and exposed via PyO3 (or rust-cpython) using the C ABI; parallelizing that loop with rayon converts an iterator into safe data-parallel work. Covers tooling (cargo, rustup, rustfmt), FFI via C ABI, ownership and borrowing for zero‑cost memory safety, and real cases (Wire, Sentry, Firefox) that saw clear production improvements.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:26Identifying Python bottlenecks
  3. 2:30Why use native extensions
  4. 5:41Challenges with C++
  5. 8:55Why Rust for Python
  6. 10:19Real-world Rust success stories
  7. 13:48Rust in Firefox browser
  8. 14:30Rust syntax basics
  9. 18:27Memory safety in Rust
  10. 22:39Custom data types in Rust
  11. 24:04Generics and iterators
  12. 25:47Parallelism with Rayon
  13. 26:30Foreign Function Interface
  14. 29:58Building Rust-Python modules
  15. 31:21Benchmarking Rust vs Python
  16. 32:51Rust tooling overview
  17. 33:36When to use Rust in Python
  18. 34:40Rust as modern C++ alternative
  19. 35:22Q&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.