Blazing Fast Data Processing in Your Browser with Python & WebAssembly
summary
Demonstrates running Python via Pyodide in the browser to process a large CSV with Pandas/NumPy, converting JS arrays to Python, calling a Python analysis function and returning dictionaries for JS to render on a map. Demo ingests 50,000 points, computes smoothed routes, anomaly points and centroids; JavaScript run takes ~400 ms while the Python/WebAssembly analysis takes ~2 s but yields statistically cleaner results. Notes bundle size, offline install, shared memory bridge and practical limits.
AI-written summary · about
chapters (16)
- 0:00Introduction to talk
- 1:35Why process data in browser
- 5:16Technical approach overview
- 6:21WebAssembly basics
- 7:50Python in browser with Pyodide
- 8:33JavaScript vs Python strengths
- 11:03Live demo setup
- 13:11Demo results JavaScript
- 13:55Demo results Python WebAssembly
- 16:05Behind the scenes communication
- 17:12Code walkthrough
- 18:59Python code deep dive
- 20:25Advantages summary
- 21:50Limitations and challenges
- 23:16Best practices and takeaways
- 24:24Closing remarks and Q&A
