3 ms·
Since they compiled the python interpreter to webassembly, yes you can now totally do a <python></python> webcomponent if you like. Of course it requires the ex
by dominicrose 1y ago
Since they compiled the python interpreter to webassembly, yes you can now totally do a <python></python> webcomponent if you like.
Of course it requires the extra work of importing this interpreter.
Web browsers aren't going to come with multiple interpreters built-in, it would be too heavy.
I would be interested to see how short the time to run "Hello World" can be with python in a webpage, counting the time to load the whole page without cache.
- simonw 1y agoTry benchmarking https://static.simonwillison.net/static/2025/pyscript-micropython-demo.html https://static.simonwillison.net/static/2025/pyscript-microp... and see. It's pretty minimal.