EuroPython 2025

WASM and Python: The Future of Serverless Computing
2025-07-16 , Forum Hall

In this talk, we’ll explore how WebAssembly enables running Python in isolated and scalable environments. We’ll look at practical use cases, from serverless function execution to sandboxed environments, and how tools like wasmtime, wasmer, and Pyodide make this possible. Will also try to cover comparisons to show where WASM shines, and where it still falls short for Python developers today.

Traditional serverless platforms rely on containers (like Docker), which have overhead in terms of cold start times, resource usage, and security risks. WASM provides a lightweight alternative that allows faster execution, stronger isolation, and cross-platform portability.

However, Python was not designed for WASM. It relies on system calls and C-based extensions, which makes running it in a WASM runtime tricky. This talk will address how to bridge that gap and bringing around Python in the WASM ecosystem.

Outline:

  1. WASM vs. Containers – Why WASM is faster, more secure, and better suited for serverless workloads.
  2. Python’s Challenges in WASM – System call dependencies, native extensions, and performance trade-offs.
  3. Making Python Work in WASM – Running Python using Pyodide, wasmtime, and wasmer for lightweight APIs and ML inference.
  4. Deploying a FastAPI function in a WASM runtime and benchmarking it against a traditional serverless container.

Expected audience expertise:

Beginner

Cofounder at XionSpace. Building in web3. Also built DripVerse Protocol, Blockchained India, Acyclic Labs. Worked earlier with IOTA Foundation, Apna, Skillenza, and other organisations.

Chair, PyCon India 2024. Co-chair, PyCon India 2021. Shadow and CFP lead, PyCon India 2020.
Orgnaise BangPypers, Bengaluru's Python User Group since 2016.
Organised DjangoGirls Bengaluru 2016-2019.

Farhaan Bukhsh is an open-source contributor, Pythonista and now a newbie rustacean. With a background in cloud infrastructure and platform engineering, Farhaan has contributed extensively to projects like Fedora and Open edX, where he is a core committer and current release manager. He's passionate about bridging the performance gap between Python and system-level programming, recently exploring the power of Rust to accelerate machine learning workflows. When he's not writing code, Farhaan enjoys mentoring new contributors, organizing tech communities, and brewing the perfect pour-over coffee.