Re:Why Lua Beats MicroPython for Serious Embedded Devs
by matt_trentini on Sunday July 13, 2025 @10:38AM
(#44550765)
Yes, we use MicroPython for medical device development up to class B.
[ Parent
| on HN ]
Re:Why Lua Beats MicroPython for Serious Embedded Devs
by 5d41402abc4b on Monday July 14, 2025 @04:15AM
(#44557595)
How do you handle memory fragmentation?
Re:Why Lua Beats MicroPython for Serious Embedded Devs
by matt_trentini on Monday July 14, 2025 @05:42AM
(#44558108)
Carefully, at least for devices with higher classifications. Using pre/early allocation helps but, more importantly, we monitor memory use over time in realistic scenarios. We've built tooling, like a memory-profiler [1] that allows us to observe memory consumption and quantify performance over time.
However, it turns out that MicroPython has a simple and efficient GC - and once you eliminate code that gratuitously fragments memory it behaves quite predictably. We've tested devices running realistic scenarios for months without failure.
Re:Why Lua Beats MicroPython for Serious Embedded Devs
by xchip on Sunday July 27, 2025 @09:32AM
(#44701208)
Could you give a link to such devices?
Re:Why Lua Beats MicroPython for Serious Embedded Devs
by matt_trentini on Monday July 28, 2025 @08:24PM
(#44717527)
I can't reveal specific implementation details but I work for Planet Innovation:
Some of our products use MicroPython though we also use a whole host of other technologies. Some of our devices are proof-of-concept (often designed to progress a theory) but we also deliver up to Class B solutions.