MicroPython's maturity and future

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
stijn
Posts: 454
Joined: Thu Apr 24, 2014 9:13 am

Re: MicroPython's maturity and future

Post by stijn » Fri Aug 04, 2017 7:56 am

It's been a couple of years since I ran the evaluation of what to choose for our application so I don't remember all reasons, but the main reason was definitely that MicroPython was the only Python 3 implementation which even came close to building for the 'INTime for Windows' platform (an RTOS which can run side-by-side with Windows). For example CPython insists on accessing the registry on startup when built with an MS compiler. That and other nonsense would make the patch to get it working on INTime huge and a complete maintainance nightmare. Other reasons which are all exactly the opposite of what CPython is: not that much source code, understandable enough, bugs gets fixed quickly, not too hard to add another platform. Furthermore we don't have a preference towards raw speed and if there really is a problem with that (didn't occur yet) it can be offloaded to native code. As such the claim that CPython is faster which is like the only real benefit left (and which could be true for certain usecases, but probably not for all of them) becomes irrelevant.

User avatar
Roberthh
Posts: 1958
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython's maturity and future

Post by Roberthh » Fri Aug 04, 2017 9:04 am

@stijn These are understandable and good reasons, indeed.

fpp
Posts: 64
Joined: Wed Jul 20, 2016 12:08 pm

Re: MicroPython's maturity and future

Post by fpp » Fri Aug 04, 2017 1:06 pm

@Dave & Peter : thank you both for the confirmation(s)!
I suspected as much, actually, but I wanted to make sure I wasn't missing an easier way to drive an USB-HID client device under Python :-)
Last winter I spent quite some time trying implementing various such HOWTOs on a raspberry Pi W, and failed abysmally (at the system level).
Guess I'll just have to try again...

User avatar
pythoncoder
Posts: 4147
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: MicroPython's maturity and future

Post by pythoncoder » Sat Aug 05, 2017 8:14 am

To be fair to CPython there are advanced use cases where MicroPython is too, er, Micro. See https://github.com/micropython/micropyt ... ifferences. In particular metaclasses and the introspection features of CPython will be missed by programmers with huge brains. Lacking such an organ there are few features of CPython which I miss, but mileage evidently varies.

As an example of the different optimisations compare the pickle module. MicroPython's is seriously minimal. CPython's is written in C so runs very fast. It produces a compact binary file.

They are different tools for different jobs, which both do very well.
Peter Hinch

Post Reply