s
April 2, 2024, 4:09 p.m. |

Simon Willison's Weblog simonwillison.net

Bringing Python to Workers using Pyodide and WebAssembly


Cloudflare Workers is Cloudflare's serverless hosting tool for deploying server-side functions to edge locations in their CDN.


They just released Python support, accompanied by an extremely thorough technical explanation of how they got that to work. The details are fascinating.


Workers runs on V8 isolates, and the new Python support was implemented using Pyodide (CPython compiled to WebAssembly) running inside V8.


Getting this to work performantly and ergonomically took a huge amount …

cdn cloudflare edge functions hosting locations pyodide python server serverless support technical tool webassembly work workers

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Data Science Analyst

@ Mayo Clinic | AZ, United States

Sr. Data Scientist (Network Engineering)

@ SpaceX | Redmond, WA