News for hackers. Stuff that matters.
Re:MicroPython v1.25.0 by est on Thursday May 15, 2025 @12:01AM (#43991732)
offtopic I am curious anyone tried using micropython to replace CPython o x86 servers?
Re:MicroPython v1.25.0 by analog31 on Thursday May 15, 2025 @12:27AM (#43991845)
I've not used MicroPython, but its fork, CircuitPython. My impression is that it's essentially a Python that doesn't interact with an operating system. Thus if there's a reason for a server to have an OS and interact with it, the regular Python would be preferable.

I also don't know how much of the more advanced optimizations of Python are built into MicroPython. There's always a dilemma between making it performant, and making it micro.

Re:MicroPython v1.25.0 by matt_trentini on Thursday May 15, 2025 @01:49AM (#43992212)
Yes, although MicroPython is focused on running on microcontrollers it can be useful if you want to reduce memory consumption, flash space and even startup time on servers.

The challenge is that MicroPython has many fewer standard libraries:

https://github.com/micropython/micropython/wiki/Standard-Lib...

And so many Python libraries targeting CPython won't work out-of-the box and you'll need to modify them or use alternatives that do work on the MicroPython subset.

Re:MicroPython v1.25.0 by jononor on Monday May 19, 2025 @02:51AM (#44027094)
Only really feasible if your program does not have any CPython C module dependencies. As there is no API compatibility with those.