Get the latest tech news

A possible future of Python in the browser


My Python code was too slow, so I made it faster with Python. For some definition of “Python”.

This is a good benchmark of how useful those runtimes are since effective animation needs to run at the refresh rate of your display, which in my case is 60Hz for the external monitor and 120Hz for my Macbook and iPhone. For the first end-user project in SPy, I decided to convert an existing Genuary entry I made with PyScript that draws an endless abstract topographic map. This computation was too much for pure Python in either Pyodide or MicroPython to happen inside the animation loop, so in the original project I pre-computed the map area in a Web worker.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of browser

browser

Photo of python

python

Photo of peek

peek

Related news:

News photo

Opera integrates Bluesky, Slack, and Discord into its browser

News photo

Embedding Python in Elixir, it's fine

News photo

Python's official documentation contains textbook example of insecure code (XSS)