~/talk

Do Pythons Rust? How we used PyO3 to build a Python Stream Processor w/ a Rust Heart

Talkat PyData NYC 2024 · 2024-11-06..11-08· [rust, python]
links:none on file
slides:none on file

Shows concrete wins and tradeoffs: using PyO3/PyOxide plus Maturin compiles Rust into a Python module and a recursive Fibonacci (n=35) example moves from ~1.13s in Python to ~80–130ms in Rust (roughly 9–14× faster) with far less memory. Builds a real system — Bytewax — that layers a Rust engine on a Python API using timely data flow, and explains practical costs: GIL interactions, pickle serialization, platform packaging, and developer ergonomics.

AI-written summary · about

  1. 0:00Python and Rust integration
  2. 1:04Why Python developers seek Rust performance
  3. 3:30Why devs love Rust
  4. 5:16Rust’s developer quality of life advantages
  5. 6:17Python vs Rust performance
  6. 8:44PyO3 for Rust-Python
  7. 13:42BX stream processor
  8. 16:26Timely Data Flow in BX
  9. 18:29BX early PyO3 dev
  10. 21:16Rebuilding BX for usability
  11. 23:00PyO3 integration challenges
  12. 26:50BX open-source project
  13. 28:14Live BX data flow demo
  14. 35:24Q&A: BX origins
  15. 37:14Q&A: Rust in BX ML
  16. 38:16Q&A: Rust in BX engine
  17. 39:01Q&A: BX starting point
  18. 40:04Q&A: Python failures in Rust
  19. 41:29Q&A: PyO3 flexibility
~/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.