Re:The Rise of Python for Embedded Systems
by afeezaziz on Thursday July 20, 2017 @09:18AM
(#14812176)
I am trying to read more but the website went down. My question: I have been dabbling with mbed for quite some time and I would love to use Python for uC. The main problems(at least the perception) are that: you cannot do programming for low power and for real time functions, python will not work. Are these issues addressed by zerynth?
[ Parent
| on HN ]
Re:The Rise of Python for Embedded Systems
by traverseda on Thursday July 20, 2017 @09:55AM
(#14812436)
Micropython actually has decent support for real-time operation, according to [1]. This is via proper use of timers and interrupts. I imagine it's something like programming for a real-time operating system.
[1]: http://www.edn.com/electronics-blogs/embedded-basics/4440447...
Re:The Rise of Python for Embedded Systems
by monocasa on Thursday July 20, 2017 @11:29AM
(#14813332)
The article doesn't really make it's case for Micropython having real-time capabilities. The author seems to be confusing 'real-time' and 'microcontroller'. At a bare minimum you'd need a proper priority scheme.
Re:The Rise of Python for Embedded Systems
by floyd82 on Thursday July 20, 2017 @11:17AM
(#14813197)
Zerynth has a dedicated power management library, here the doc https://docs.zerynth.com/latest/official/core.zerynth.stdlib...
Re:The Rise of Python for Embedded Systems
by m_mueller on Thursday July 20, 2017 @09:23AM
(#14812210)
Couldn't Cython address real time/low power?
Cython is wasteful with lots of memory allocations, which are expensive in embedded systems. Also GC is not a good fit for real time. Something like micro python is far more suited for embedded systems
Re:The Rise of Python for Embedded Systems
by m_mueller on Thursday July 20, 2017 @09:52AM
(#14812406)
Thanks, I wasn't aware, I thought Cython would do something along the lines of ARC.
Re:The Rise of Python for Embedded Systems
by blattimwind on Thursday July 20, 2017 @10:20AM
(#14812651)
Cython is not an implementation of Python. Cython is a weird and difficult to use mix of C and Python, where most Pythonic constructs are translated to CPython API calls that are essentially the same API calls that the Python VM would do for similar Python byte code.
In any case, CPython has no business on embedded (non-Linux) systems.