News for hackers. Stuff that matters.
Re:A hand-wired USB and Bluetooth keyboard powered by Python by BiteCode_dev on Tuesday May 19, 2020 @10:39AM (#23235336)
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), a derivative project from 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.

Re:A hand-wired USB and Bluetooth keyboard powered by Python by mzakharo1 on Tuesday May 19, 2020 @09:18PM (#23242331)
many people dont realize, but micropython has unix port, and it can be much slower than CPython. micropython's main advantage is size, not speed.