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