PyCon DE & PyData 2025

🦀 Rüstzeit: Asynchronous Concurrency in Python & Rust
2025-04-23 , Helium3

Many Python developers are enhancing their Rust knowledge and want to take the next step in translating their understanding of advanced concepts like asynchronous programming.

In this talk, I'll help you take that step by juxtaposing Python's asyncio with Rust's async ecosystems, tokio and async-std. Through real-world examples and insights from conversations with graingert, co-author of Python's Anyio, we'll explore how each language approaches asynchronous execution, highlighting similarities and differences in syntax, performance, and ecosystem support.

This talk aims to persuade you that by leveraging Rust's powerful type system and compiler guarantees, we can build fast, reliable async code that's less prone to race conditions and concurrency bugs. Whether you're a Pythonista venturing into Rust or a Rustacean curious about Python's concurrency model, this session will provide practical insights to help you navigate async programming across both languages.

Welcome to Rüstzeit: Prepare to navigate async programming across both ecosystems.


Talk Timings (30 minutes):

Introduction and Hybrid Programming in Python and Rust [5 mins]
Asynchronous Programming in Python [5 mins]
Asynchronous Programming in Rust [5 mins]
Performance Comparison: Python vs. Rust [1 min]
Leveraging Rust's Type System and Compiler Guarantees [5 mins]
Case Study: "A Million Large Language Monkeys at a Million Typewriters" – Building Scalable Microservices with Tokio [7 mins]
(Optional) Tom's Library: AnyIO and Unified Async in Python [3 mins]
Conclusion and Takeaways [3 mins]


Many Python developers are enhancing their Rust knowledge and want to take the next step in translating their understanding of advanced concepts like asynchronous programming.

In this talk, I'll help you take that step by juxtaposing Python's asyncio with Rust's async ecosystems, tokio and async-std. Through real-world examples and insights from conversations with graingert, co-author of Python's Anyio, we'll explore how each language approaches asynchronous execution, highlighting similarities and differences in syntax, performance, and ecosystem support.

This talk aims to persuade you that by leveraging Rust's powerful type system and compiler guarantees, we can build fast, reliable async code that's less prone to race conditions and concurrency bugs. Whether you're a Pythonista venturing into Rust or a Rustacean curious about Python's concurrency model, this session will provide practical insights to help you navigate async programming across both languages.

Welcome to Rüstzeit: It's time to prepare for async programming in Python and Rust.

Further Resources:

https://rust-lang.github.io/async-book/
https://anyio.readthedocs.io/en/stable/
https://github.com/graingert


Expected audience expertise: Domain:

Intermediate

Expected audience expertise: Python:

Intermediate

Public link to supporting material, e.g. videos, Github, etc.:

github.com/jcoombes/pyconde2025

I am a Machine Learning Engineer with 4 years of Python and PyTorch development experience. I've provided ML expertise to startups and the UK government, and I'm particularly interested in beneficial AI applications. My background is in Physics and Atmospheric Physics, where I interpreted large tropical cyclone datasets at Imperial College London.

My previous talks are:
EuroPython Prague 2022 - 🐍 Large Language Model Zen
PyCon/PyData DE Berlin 2023 - Mojo 🔥 - Is it Python's faster cousin or just hype?

Completing my language trilogy: I recently began exploring Rust 🦀.