Rust-Python interoperability [hands-on course]
The course teaches Rust-Python interoperability, focusing on creating Python extensions with Rust through hands-on exercises. It requires Rust and rye installation, with resources available on GitHub, authored by Luca Palmieri.
Read original articleThis course on Rust-Python interoperability aims to teach participants how to create Python extensions using Rust and how to invoke Rust code from Python. It is designed for individuals who have a basic understanding of both programming languages but lack prior experience with interoperability. The course follows a "learn by doing" methodology, encouraging hands-on practice through exercises that are available in a companion GitHub repository. Participants are advised to install Rust and the Python package manager, rye, before starting. The course structure includes various sections, each accompanied by exercises to reinforce learning. A tool called the workshop runner (wr) is provided to help verify solutions to exercises. The course is authored by Luca Palmieri, a Principal Engineering Consultant at Mainmatter, who has extensive experience with Rust and has authored several resources on the language. Participants are encouraged to work collaboratively and track their progress using Git.
- The course focuses on writing Python extensions in Rust and calling Rust code from Python.
- It is structured around hands-on exercises and interactive learning.
- Prerequisites include installing Rust and the rye package manager.
- A GitHub repository contains exercises and solutions for participants.
- The course is authored by Luca Palmieri, an experienced Rust consultant and author.
Related
Rye: A Hassle-Free Python Experience
Rye is a Python project and package management tool for developers. It simplifies Python installations, project management, dependencies, and virtual environments. Installation instructions are available for Linux, macOS, and Windows systems. Users need Rust and Cargo for Rye.
Rust for Filesystems
At the 2024 Linux Summit, Wedson Almeida Filho and Kent Overstreet explored Rust for Linux filesystems. Rust's safety features offer benefits for kernel development, despite concerns about compatibility and adoption challenges.
Beyond Hypermodern: Python is easy now
Python development in 2024 focuses on simplicity with tools like Rye aligning with packaging standards. It streamlines setup, dependency management, and project structuring, emphasizing typing with Pyright for efficient code maintenance and pytest for testing.
Rust for Rustaceans
"Rust for Rustaceans" by Jon Gjengset is a book for developers with basic Rust knowledge, focusing on advanced topics, codebases, and programming challenges, praised for clarity but noted for its density.
RustPython: A Python Interpreter Written in Rust
RustPython is a Python implementation in Rust, using a modified CPython 3.7 standard library. The project currently focuses on the `unittest` module for testing with the CPython test suite.
Related
Rye: A Hassle-Free Python Experience
Rye is a Python project and package management tool for developers. It simplifies Python installations, project management, dependencies, and virtual environments. Installation instructions are available for Linux, macOS, and Windows systems. Users need Rust and Cargo for Rye.
Rust for Filesystems
At the 2024 Linux Summit, Wedson Almeida Filho and Kent Overstreet explored Rust for Linux filesystems. Rust's safety features offer benefits for kernel development, despite concerns about compatibility and adoption challenges.
Beyond Hypermodern: Python is easy now
Python development in 2024 focuses on simplicity with tools like Rye aligning with packaging standards. It streamlines setup, dependency management, and project structuring, emphasizing typing with Pyright for efficient code maintenance and pytest for testing.
Rust for Rustaceans
"Rust for Rustaceans" by Jon Gjengset is a book for developers with basic Rust knowledge, focusing on advanced topics, codebases, and programming challenges, praised for clarity but noted for its density.
RustPython: A Python Interpreter Written in Rust
RustPython is a Python implementation in Rust, using a modified CPython 3.7 standard library. The project currently focuses on the `unittest` module for testing with the CPython test suite.