6 ms·
I wonder how it compares with MicroPython?
by peterbmarks 4y ago
I wonder how it compares with MicroPython?
- sitkack 4y agoMicroPython is 286kloc of C.
- unwind 4y agoThat is great information, but perhaps it would be even more interesting with a comparison focusing on supported features, standard library support, and so on. MicroPython [1] is designed for "real" embedding, i.e. in the "embedded development" sense, on microcontrollers and so on and seems quite successful in that niche. Those are often a smaller target than a game running on either a phone/tablet or PC, which would seem to kind of invert things. [1]: https://micropython.org/ https://micropython.org/
- askvictor 4y agoThe other comparison would be memory and disk/ROM usage. Also, micropython, in its hundreds of thousands of lines of code, supports quite a number of microcontrollers and boards; I suspect the core language is smaller, or counting lines used for a single build target would drop it considerably.
- tredre3 4y agoYou are correct, the micropython vm/interpreter + the unix target (one of the simplest) combined are ~50k lines of C. Note that to run correctly micropython also needs its python stdlib which is about 15k lines of Python.
- qbasic_forever 4y agoMicropython is made to run on dozens of boards, each with a nontrivial board support package (the platform-specific glue code to talk to hardware). A better comparison would be looking exclusively at micropython's unix/x86 platform specifically.