"Python ‹3 Rust"
summary
Rust code implements a tiny validator that checks whether a character appears at least N times with optional reset on newline or space, compiled and exposed to Python via PyO3 and installed with maturin develop/build. The Rust version runs about 10× faster than a naïve Python char loop even in debug builds, handles untrusted input safely, and provides a Pythonic constructor and has_count method. Prototyping cost is higher (compile+install) but the integrated wheel works and simplifies shipping.
AI-written summary · about
chapters (8)
- 0:00Welcome
- 1:08What is Rust
- 6:30Rust’s low-level parsing
- 13:30High-performance Rust
- 18:30Rust with PyO3
- 21:42Rust vs Python performance
- 24:31Python prototyping to Rust
- 27:00Summary
related talks
15mPyO3: Rust 💚 Python
46mPython + Rust = ?
44mHow Python Harnesses Rust through PyO3
44mDo Pythons Rust? How we used PyO3 to build a Python Stream Processor w/ a Rust Heart
34mRust for the Python dev
36mPolishing Python: Preventing Performance Corrosion with Rust
01h 07m🐍 Python meets the crab 🦀 - Friendship at first sight?
27mWhy you, as a Python developer, should learn Rust
