3 ms·
A lot of people are asking: - why python? - isn't is slow? Remember that Python is a language spec, there are several implementations. This project uses a p
by BiteCode_dev 6y ago
A lot of people are asking:
- why python?
- isn't is slow?
Remember that Python is a language spec, there are several implementations.
This project uses a particular implementation called CircuitPython (
https://en.wikipedia.org/wiki/CircuitPython https://en.wikipedia.org/wiki/CircuitPython), a derivative project from MicroPython (
https://fr.wikipedia.org/wiki/MicroPython https://fr.wikipedia.org/wiki/MicroPython), by the people at AdaFruit.
This implementation runs with a very different VM that can fit within 256k of code space and 16k of RAM.
So, while obviously you cannot expect anywhere near C level of perfs, this is way lighter than CPython.
The advantage is that you get the ease of Python to program your board, including the clean terce language, the memory management and the rich data structures. You can even have a live shell on some embeded hardwares! The whole dev process is so simple: code, copy your module, run.
Of course, some features of CPython are not available.
- mzakharo1 6y agomany people dont realize, but micropython has unix port, and it can be much slower than CPython. micropython's main advantage is size, not speed.