Python + Rust = ?
summary
Presents how to embed Rust into Python using PyO3 and packaging with maturin, with a concrete to_camel example and bench results: Rust wins for large strings (up to x17) but shows little or no gain for small inputs and pays a compile-time cost on first runs. Explains FFI choices, which Rust and Python types copy versus borrow, when parallel threads help, and practical downsides: tricky borrowing and lifetimes, debugging overhead, and uneven third‑party Rust library performance so benchmarks are essential.
AI-written summary · about
chapters (11)
- 0:00Welcome
- 3:33Why Rust and Python
- 5:00When to use Rust
- 10:43Rust and Python integration
- 14:14Maturin tool
- 15:59Task example and solution
- 22:39Implementing to_camel function
- 23:02Performance comparison
- 26:35Rust drawbacks
- 29:02Summary and recommendations
- 32:12Q&A
related talks
44mDo Pythons Rust? How we used PyO3 to build a Python Stream Processor w/ a Rust Heart
44mHow Python Harnesses Rust through PyO3
36mPumping up Python modules using Rust
34mRust for the Python dev
36mPolishing Python: Preventing Performance Corrosion with Rust
31mPumping up Python modules using Rust
31mCan Rust make Python shine?
01h 07m🐍 Python meets the crab 🦀 - Friendship at first sight?
