Live data from Hacker News

Embedded Python: MicroPython Is Amazing

hackaday.com

1–10 of 16 posts

Re: Embedded Python: MicroPython Is Amazing

#2
Is memory fragmentation still a thing? I'm sure it is as there are no free lunches as it were. But I agree Micro Python is amazing just have to think about memory usage a little more maybe on smaller devices that run a long time.

Re: Embedded Python: MicroPython Is Amazing

#4
post #2

Is memory fragmentation still a thing? I'm sure it is as there are no free lunches as it were. But I agree Micro Python is amazing just have to think about memory usage a little more maybe on smaller devices that run a long time.

I mean does it matter these days? I expect an IOT device to reboot at least once a day and take 2 seconds to boot up at max.

Re: Embedded Python: MicroPython Is Amazing

#6
post #4
post #2

Is memory fragmentation still a thing? I'm sure it is as there are no free lunches as it were. But I agree Micro Python is amazing just have to think about memory usage a little more maybe on smaller devices that run a long time.

I mean does it matter these days? I expect an IOT device to reboot at least once a day and take 2 seconds to boot up at max.

There is absolutely a low double digit percentage of systems that do not power cycle the hardware. We can't assume anything

Re: Embedded Python: MicroPython Is Amazing

#8

I just want a simple SMALL embeddable python library for my C programs... but I have yet to find a good one.

You may want to consider Asp. It is python like language thats interpreter is designed for embedded usage. https://www.asplang.org/

Also fully fuzzy tested to not ever crash regardless of the bytecode given to it.

Re: Embedded Python: MicroPython Is Amazing

#9
I've tried to use micropython a few times, and it just didn't gel for me.

All the examples I've found seem to center around doing things interactively in the CLI. Do people write code like that? I write a lot of python and I maybe interact directly with a REPL for 5 minutes in a month.

There was no good tooling for managing a set of script files on the embedded device, and as soon as I had something mildly complex (on a ESP32, consuming from MQTT and writing to a serial device), I started hitting OOM errors. I rewrote a bunch of stuff to not use classes, which helped a bit, and then wound up giving up.

Post reply on HN