Building with Multiple Languages: A Python-First Approach
summary
Claim: keep Python as the orchestrator and offload hot paths to other languages. Shows concrete patterns and tools: Python as orchestrator, outback monitoring (FastAPI, numpy, websockets), and native bindings for Rust/C++/Zig. Gives performance numbers: 1,000,000 calc: Python 2.1s, Node 0.88s, Rust 0.12s, C++ 0.08s, Zig 0.07s. Builds live demos (real‑time JS charts work), attempts a bushfire simulation (Python version is ~2.25s for 100×100×50 steps; Rust path is in repo), and includes CI/packaging guidance.
AI-written summary · about
chapters (9)
- 0:00Python-first polyglot intro
- 2:07Combining languages with Python
- 7:4790-10 performance rule
- 8:49Multi-language integration patterns
- 13:05Polyglot Python project structure
- 22:12Language performance comparison
- 26:05JS and Python integration example
- 29:15Python and Rust bushfire sim
- 32:28Closing thoughts
related talks
46mHot paths: using Rust libraries in Python
29mThe Art of Extending Python with other languages
31mPumping up Python modules using Rust
34mRust for the Python dev
51mTread Lightly When Building and Testing Your Python Project
44mDo Pythons Rust? How we used PyO3 to build a Python Stream Processor w/ a Rust Heart
01h 21mAccelerating Python With C++
31mCan Rust make Python shine?
