As far as I'm aware pycopy has a better async implementation. Micropython probably has a bit wider adoption. A lot of libraries are compatible with both, but ymmv
Another notable fork of Micropython is Circuitpython which is maintained by Adafruit.
As far as I'm aware pycopy has a better async implementation. Micropython probably has a bit wider adoption. A lot of libraries are compatible with both, but ymmv
Another notable fork of Micropython is Circuitpython which is maintained by Adafruit.
https://github.com/micropython/micropython/pull/5332
(Though there have been some additional performance improvements since that was merged.)
The improvements to the old implementation are significant.
I am no longer interested in following pycopy's progress but I'd be shocked if the asyncio implementation was better. Happy to see measurements to suggest otherwise...
Well, I was the author of "uasyncio" module, as was used with MicroPython. When I switched to Pycopy, I took that module with me.
> The improvements to the old implementation are significant.
Well, how to put it. Before I wrote uasyncio, I wrote asyncio_slow. And before I wrote that, I watched dozens of people writing their own async frameworks for Python. And I watch dozens of people doing the same as we speak. The reason I embarked to write my piece is because I wasn't satisfied with how other people do it. I may imagine you feel the same. So, good luck. (If you do it right, I'll use your stuff.)
> but I'd be shocked if the asyncio implementation was better
It's better, where "better" defined as "more minimalist". If you're not interested in minimalism, then you as well can use CPython's asyncio (and CPython itself).
Just reading from that PR micropython now also runs picoweb, which is an async webframework that runs on an esp32 and I believe even on an esp8266
I wish ada was more available for microcontrollers.