4 ms·
MicroPython's authors call it a "subset of python3", and that is a fairly large subset - all the familiar data structures, co-routines, module import, filesyste
by nousermane 4y ago
MicroPython's authors call it a "subset of python3", and that is a fairly large subset - all the familiar data structures, co-routines, module import, filesystem I/O, FFI, ...; Interpreter is much smaller than CPython and can run on a microcontroller with 256KB code/flash + 16KB RAM.
Another step down is snek, where complete interpreter code can fit in 64KB. Although, this is a much more constrained subset of python (for example - yes dictionaries, no list comprehensions): https://sneklang.org/ https://sneklang.org/
PikaScript appear to be even more compact at 32KB code (and is even smaller subset of the language)
- jonjacky 4y agoThere was also PyMite, for 8 bit microcontrollers with 64 KiB of program memory (flash) and 4 KiB of RAM. It supported a subset of the Python 2.5 syntax and could execute a subset of the Python 2.5 bytecodes. https://wiki.python.org/moin/PyMite https://wiki.python.org/moin/PyMite