

#487: Building Rust Extensions for Python
31 snips Dec 1, 2024
David Seddon, a Django expert at Octopus Energy, and Samuel Colvin, the creator of Pydantic, dive into the integration of Rust into Python for enhanced performance. They discuss the massive shifts in the Python ecosystem and the benefits of using Rust, particularly through the Pydantic library. Topics include managing a large-scale Django monolith, the stricter parsing behavior of Pydantic, and the introduction of Logfire for observability. The conversation also highlights tools like Jitter and the architectural strategies for building Python packages.
AI Snips
Chapters
Books
Transcript
Episode notes
Pydantic's Growth
- Samuel Colvin started Pydantic in 2017 as a side project.
- It gained popularity in 2021, leading to a Rust rewrite in 2022 and company formation.
Massive Monolith
- David Seddon works on Kraken, a large Django monolith powering Octopus Energy.
- It's surprisingly effective, handling over 400 pull request authors weekly.
API Changes and Banks
- Pydantic's API changes, like strictness in type coercion, caused issues for users, especially banks.
- Samuel jokingly mentions not minding breaking things for banks since they don't sponsor Pydantic.