Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3
E**Y
Must have guide for Python developers
A great one-stop shop for people looking to transfer their understanding and knowledge of Python to Rust. It is not only an introduction to Rust with an explanation of how to structure the code but also a ready solution for structuring a Python Flask App for Rust. My favourite chapter is the last one which delves into the best practices of the integration of those two technologies.This book is a must-have as a Python developer, to start using Rust in your Python projects without having to manage a separate Rust server or application. Rust with its low memory footprint will help you overcome memory management issues that lead to poor performance and security in your applications.
J**S
Makes learning so much faster
This book is absolutely amazing. It teaches Rust based off of Python, which makes learning Rust sooo much faster. It also teaches Rust and Python packaging which is great.One thing to note for PyPy users though, unfortunately converting a lot of my python code to Rust with Rust bindings didn't speed up my code, it slowed it down by 3x. Rust is faster than Python, but for many applications, not faster than PyPy. If you look up PyO3 there's an issue on it where the maintainer openly admits it's not as fast, and claims that for Python optimizations pypy is the gold standard. If you can cordon off a part of your application to be entirely in Rust, this might still be faster, but I needed to go back and forth between Rust and PyPy objects and this resulted in a huge slowdown.The book compares against Python but i didn't see a similar comparison to PyPy. I tried to do the comparison myself using the book examples, but I must have made a mistake since it wouldn't compile the Rust part of it for chapters 5 or 6.Still, that's no fault of the book, that's just a limitation of PyO3. The book is amazing, and with this book I was successfully able to properly convert my packages to using Rust bindings, something even chat gpt could not do.
R**R
Straight to the point.
The book goes at fast pace, which I feel OK with. Understanding the fundamentals of Python and Rust, comparing them and configuring a setup that combines both (while applying best software engineering practices) would be a great a way of describing my experience while reading it.
Trustpilot
4 days ago
3 weeks ago