pmp-p / micropython-ports-wasm

*experimental* wasm micropython port *not a fork* for Pythons Everywhere
http://pmp-p.github.io/layout.html
37 stars 1 forks source link

What is the difference between this repo and the official javascript port? #4

Open rafi16jan opened 5 years ago

rafi16jan commented 5 years ago

What is the difference between this repo and the official javascript port?

https://github.com/micropython/micropython/tree/master/ports/javascript

pmp-p commented 5 years ago

Hi though i did not check in depth the official port, probably those differences :

Things that could run better.

WIP not pushed yet:

Future:

rafi16jan commented 5 years ago

Ok, that is very nice. Just curious, why are you using requestAnimationFrame for async instead of setTimeout or setInterval?

And maybe in the meantime I will make a benchmarks between RapydScript, MicroPython official javascript port, and your port. Currently I'm developing an ephemeral Python in a browser/node framework using RapydScript but I'm open to new possibilities.

pmp-p commented 5 years ago

i updated the list a bit and referenced that informative issue in the readme. @rafi16jan , web is all about visual interaction with user and requestAnimationFrame as called there is expected to be called and sync with specific refresh rate ( mobile / 50-60Hz desktop classic, (free/g)-sync etc ) the user is facing. Trying to emulate that behavior would be huge task if not impossible. also it's a emscripten provided facility for running async programs.