micropython-unicorn icon indicating copy to clipboard operation
micropython-unicorn copied to clipboard

Replacement for PyPy.js?

Open jedie opened this issue 6 years ago • 1 comments

I came across https://www.micropython.org/unicorn/ by accident today. I'm very impressed.

Can't micropython-unicorn be what PyPy.js actually wanted to be?

PyPy.js had the problem that it is simply too big: The loading times are simply too long for practical use. See: https://github.com/pypyjs/pypyjs/issues/196

Currently PyPy.js is not alive, see: https://github.com/pypyjs/pypyjs/issues/213

What would be missing? Think if it possible to manipulate the DOM tree, than it ready, isn't it?!?

jedie avatar Sep 18 '18 13:09 jedie

The unicorn "platform" is less about running Python in the browser and more about simulating a bare-metal microcontroller in the browser.

It's probably better to look at the javascript port of MicroPython. See eg extensions at this PR: https://github.com/micropython/micropython/pull/4603

dpgeorge avatar May 24 '19 10:05 dpgeorge

There's now the webassembly port of MicroPython which can run in the browser. See also the pyscript project by Anaconda.

dpgeorge avatar Oct 31 '22 02:10 dpgeorge