~/talk

Pumping up Python modules using Rust

Talkat PyCon 2018 · on Sunday, 2018-05-13· [rust, python]

Claim: Rust lets Python gain memory-safe, ahead-of-time speed by compiling extensions into dynamic libraries and calling them over a C ABI. Examples: a string-duplicate benchmark shows ~25× and ~10× speedups; companies like Sentry and Wire move hot paths to Rust and cut processing time. Tools actually used: cargo, rayon for data parallelism, the rust cpython crate and platform FFI rules; built a .so extension, bench tested it, and it works — but cross-language calls have measurable overhead so keep them coarse-grained.

AI-written summary · about

  1. 0:00Start
  2. 3:06Need for native extension
  3. 4:28Native extension aren't new to Python devs
  4. 13:45Flow control
  5. 14:08Looping
  6. 15:03Garbage Collection
  7. 15:36Referencing
  8. 16:31Same implementation in Rust
  9. 17:01Borrowing
  10. 17:34High-level iterators
  11. 18:39Struct can have methods
  12. 19:15How does this work?
  13. 20:23Rust FFI capabilities
  14. 21:14Interfacing & building the python module
  15. 22:29Rust-Cpython: Integration
  16. 24:59When should you use Rust?
  17. 25:46What does Rust have to offer?
~/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.