all AI news
Bringing Python to Workers using Pyodide and WebAssembly
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