YoVDO

PyO3 and Rust in Action: Migrating Pascal to Rust for Python Integration

Offered By: Rust via YouTube

Tags

Rust Courses Scientific Computing Courses Benchmarking Courses Memory Safety Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a presentation from the Rust Zürisee meetup in Switzerland, focusing on Gerhard Bräunlich's experience migrating Pascal code to a Rust module for use in Python. Learn how Rust improved Python and C code in an LCA software by Sustainable System Solutions, preventing segfaults while maintaining C-like performance. Discover the process of integrating Rust with Python using PyO3, including code examples, benchmarking, and optimization techniques. Gain insights into custom Python types, the advantages of Rust in scientific computing, and the speaker's impressions of PyO3. Delve into topics such as just-in-time compilers and the future of Python in scientific applications.

Syllabus

Introduction
Who am I
Downhaul heat exchanger
Earthworm
Code
Pascal code
Python core
C code
Memory errors
Rust Core
Output
Benchmarking
Innermost for loop optimization
Running time comparison
Python and Rust interface
Rust macro
Simple example
Compile
Python
Custom Python types
Fronttype object trade
PyO3 release
My impression of PyO3
Improvements
Links
Questions
Would I still use Python
Justintime compilers
Wrapup


Taught by

Rust

Related Courses

Scientific Computing
University of Washington via Coursera
Biology Meets Programming: Bioinformatics for Beginners
University of California, San Diego via Coursera
High Performance Scientific Computing
University of Washington via Coursera
Practical Numerical Methods with Python
George Washington University via Independent
Julia Scientific Programming
University of Cape Town via Coursera