It's Time to Learn Rust — Starting with Making pip install Faster

Lightning
  • Zeyang Lin Independent developer

    Became a Pythonista over a decade ago because of Django, been working as a backend developer in a start-up overseas for several years, then been providing technical consultancy to a local enterprise during their digital transformation after moving back to China.

    Main focus: Python source code and low-level implementation, concurrency, Agile methodology in software engineering, also thinking about the relationship between human (developers) and large language models in the era of AI.

    PyCon China 2023 Volunteer

    PyCon US 2026, PyCon China 2025, PyCon Ireland 2015 Attendee

    lin-ze-yang

Abstract

This lightning talk is based on my real experience of teaching myself Rust as a Python developer. In 10 minutes I will cover three things: why it is worth learning, hands-on practice, and a one-month learning roadmap. No prior Rust knowledge is required.

Details

Rust is something you may already be using every day: it powers uv, ruff, and polars. After pydantic v2 rewrote its validation core in Rust, it became 17 times faster. What’s even more noteworthy is that the official CPython “Rust for CPython” working group has confirmed its target is Python 3.16. They plan to experimentally rewrite the zlib module using “zlib-rs”, with the related PEP expected to be submitted for community discussion this summer. If this lands, every “pip install” decompression you perform will become faster.

Rust is not Python’s rival, but its partner: Python handles orchestration, while Rust delivers speed and safety. This lightning talk is based on my real experience as a Python developer self-teaching Rust. In 10 minutes, I will share three things:

  1. Why it’s worth learning: even if you never write production-grade Rust, the habits of ownership, explicit error handling, and exhaustive matching will transfer back to make your Python code more rigorous (in the free-threading era, this kind of concurrency safety intuition is especially valuable).
  2. Practical implementation: rewriting a real CPU-intensive hot function as a Rust extension using PyO3 + maturin. On the Python side, only one import line needs to change. Tests pass unchanged. I will show before-and-after performance and memory measurements, along with a decision checklist for “which code is worth rewriting and which is not.”
  3. One-month learning roadmap: where the mindset shift from EAFP to LBYL is difficult, how to overcome the borrow checker hurdle, and a four-week study plan based on Microsoft’s open-source course “Rust for Python Programmers” and the official Rust Book.

No Rust background is required from the audience. You will leave with an immediately actionable learning roadmap, a set of step-by-step instructions for migrating hot functions, and a decision framework for judging “whether Rust should be used or not.”