Can Rust make Python shine?
summary
Claims that Rust is fast and safe, then demonstrates it by building a statistical profiler for Python that measures frames periodically. Uses mio for a timer thread, protects shared sampler with Mutex+Arc, and calls Python internals via unsafe FFI and lifetime-checked bindings. Sieve benchmark shows Python ~25 times slower than Rust; C version triggers a dangling pointer bug that Rust’s borrow checker prevents, and the Rust profiler runs and reports hotspots.
AI-written summary · about
chapters (11)
- 0:00Start
- 1:29What Is Known about Rust
- 2:44What Is the Rust
- 4:45Python Implementation of Offenseive
- 14:08Compilation Error
- 17:45Python Profiler
- 19:07How To Run Tasks Periodically
- 21:50Ownership and Rust
- 24:38How To Convert Python String to a Rust Ring
- 25:20Trusty Python
- 30:00Is It Possible To Distribute Rust Code as a Python Package Style Which Can Be Installed
related talks
31mPumping up Python modules using Rust
34mRust for the Python dev
46mPython + Rust = ?
36mPolishing Python: Preventing Performance Corrosion with Rust
27mWhy you, as a Python developer, should learn Rust
44mDo Pythons Rust? How we used PyO3 to build a Python Stream Processor w/ a Rust Heart
36mPumping up Python modules using Rust
22mUsing Rust in Free-Threaded vs Regular Python 3.13
