Speed Up Your Python with Rust

Speed Up Your Python with Rust
Author :
Publisher : Packt Publishing Ltd
Total Pages : 384
Release :
ISBN-10 : 9781801812320
ISBN-13 : 1801812322
Rating : 4/5 (322 Downloads)

Book Synopsis Speed Up Your Python with Rust by : Maxwell Flitton

Download or read book Speed Up Your Python with Rust written by Maxwell Flitton and published by Packt Publishing Ltd. This book was released on 2022-01-21 with total page 384 pages. Available in PDF, EPUB and Kindle. Book excerpt: Discover how to inject your code with highly performant Rust features to develop fast and memory-safe applications Key FeaturesLearn to implement Rust in a Python system without altering the entire systemWrite safe and efficient Rust code as a Python developer by understanding the essential features of RustBuild Python extensions in Rust by using Python NumPy modules in your Rust codeBook Description Python has made software development easier, but it falls short in several areas including memory management that lead to poor performance and security. Rust, on the other hand, provides memory safety without using a garbage collector, which means that with its low memory footprint, you can build high-performant and secure apps relatively easily. However, rewriting everything in Rust can be expensive and risky as there might not be package support in Rust for the problem being solved. This is where Python bindings and pip come in. This book will help you, as a Python developer, to start using Rust in your Python projects without having to manage a separate Rust server or application. Seeing as you'll already understand concepts like functions and loops, this book covers the quirks of Rust such as memory management to code Rust in a productive and structured manner. You'll explore the PyO3 crate to fuse Rust code with Python, learn how to package your fused Rust code in a pip package, and then deploy a Python Flask application in Docker that uses a private Rust pip module. Finally, you'll get to grips with advanced Rust binding topics such as inspecting Python objects and modules in Rust. By the end of this Rust book, you'll be able to develop safe and high-performant applications with better concurrency support. What you will learnExplore the quirks of the Rust programming language that a Python developer needs to understand to code in RustUnderstand the trade-offs for multiprocessing and thread safety to write concurrent codeBuild and manage a software project with cargo and cratesFuse Rust code with Python so that Python can import and run Rust codeDeploy a Python Flask application in Docker that utilizes a private Rust pip moduleInspect and create your own Python objects in RustWho this book is for This book is for Python developers who want to speed up their Python code with Rust and implement Rust in a Python system without altering the entire system. You'll be able to learn about all topics relating to Rust programming. Basic knowledge of Python is required to get the most out of this book.


Speed Up Your Python with Rust Related Books

Speed Up Your Python with Rust
Language: en
Pages: 384
Authors: Maxwell Flitton
Categories: Computers
Type: BOOK - Published: 2022-01-21 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Discover how to inject your code with highly performant Rust features to develop fast and memory-safe applications Key FeaturesLearn to implement Rust in a Pyth
Rust for Rustaceans
Language: en
Pages: 282
Authors: Jon Gjengset
Categories: Computers
Type: BOOK - Published: 2021-12-21 - Publisher: No Starch Press

DOWNLOAD EBOOK

Master professional-level coding in Rust. For developers who’ve mastered the basics, this book is the next step on your way to professional-level programming
The Rust Programming Language (Covers Rust 2018)
Language: en
Pages: 561
Authors: Steve Klabnik
Categories: Computers
Type: BOOK - Published: 2019-09-03 - Publisher: No Starch Press

DOWNLOAD EBOOK

The official book on the Rust programming language, written by the Rust development team at the Mozilla Foundation, fully updated for Rust 2018. The Rust Progra
Rust in Action
Language: en
Pages: 454
Authors: Tim McNamara
Categories: Computers
Type: BOOK - Published: 2021-09-07 - Publisher: Simon and Schuster

DOWNLOAD EBOOK

"This well-written book will help you make the most of what Rust has to offer." - Ramnivas Laddad, author of AspectJ in Action Rust in Action is a hands-on guid
Crafting Interpreters
Language: en
Pages: 1021
Authors: Robert Nystrom
Categories: Computers
Type: BOOK - Published: 2021-07-27 - Publisher: Genever Benning

DOWNLOAD EBOOK

Despite using them every day, most software engineers know little about how programming languages are designed and implemented. For many, their only experience