[OpenWrt-Devel] [ANN] MicroPython - well-known scripting language, unbloated

Paul Sokolovsky pmiscml at gmail.com
Mon Jul 14 15:10:18 EDT 2014


On Mon, 14 Jul 2014 16:29:42 +0400
Nick Shvelidze <captain at pirrate.me> wrote:

> Interesting, MicroPython is great. By the way, Luci2 doesn't use Lua
> at all.

Yes, I heard from other replies, that's good news, hope it will be
ready for prime time soon.

Still, it would be nice to have good unbloated language for rapid app
development in constrained environments, like most routers on which
OpenWRT runs. I made initial proof of concept web microframework for
MicroPython (https://github.com/pfalcon/picoweb), and a trivial
webapp can run within 64K heap.

I did initial build for OpenWRT/MIPS, and it starts up, but I didn't
run test suite yet. I hope to contribute recipe when it's properly

> On Mon, Jul 14, 2014 at 4:20 PM, Paul Sokolovsky <pmiscml at gmail.com>
> wrote:
> > Hello,
> >
> > I wondered if it makes sense to post about MicroPython, but recent
> > post about Squirrel language prompted me to. So, there's a project
> > to implement, from scratch, very lean interpreter for Python3
> > scripting language.
> >
> > The project is well under way and currently implements good deal of
> > Python3 semantics. It can't yet run arbitrary existing Python code,
> > but the whole idea of MicroPython is to provide efficient subset of
> > Python to develop apps from scratch (or to port existing code).
> >
> > Source code:
> > https://github.com/micropython/micropython
> >
> > User-facing site:
> > http://micropython.org/
> >
> > My motive for working on MicroPython is dissatisfaction with Lua -
> > based both on my personal tastes and experience, and analyzing other
> > projects' experience. For example, LuCI web UI, as used in OpenWRT,
> > is known to be slow, and known not to be able to reasonably work on
> > system with less than 32MB of RAM at all. I don't think these are
> > results of Lua's technical traits - rather, its semantic and
> > "programming psychology" issues. The way I see it, in many places
> > where Lua is used currently, it is used only because of the lack of
> > alternatives. So, people have to use it thru not wanting to use it.
> > Then, they're not interested to learn details of the language to
> > use it efficiently, they're not interested in writing efficient
> > programs, not interested in optimizing code, etc. - they interested
> > just to do something ASAP, and get their hands off of it.
> >
> > So, if you consciously or subconsciously dissatisfied with Lua,
> > please consider giving MicroPython a look and try! ;-)
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel at lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >

Best regards,
 Paul                          mailto:pmiscml at gmail.com
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list