python on Ben

Daniel Clark dclark at pobox.com
Sat Jan 30 20:54:34 EST 2010


On Sat, Jan 30, 2010 at 5:12 PM, Ron K. Jeffries <rjeffries at gmail.com> wrote:
> I assume Python can not operate with Ben Nanonote due to 32 MB RAM.

Might be possible to get http://code.google.com/p/python-on-a-chip/ working.

The Python-on-a-Chip program consists of the PyMite virtual machine,
ports to specific platforms, libraries, tests, tools and documentation.
PyMite is a flyweight Python bytecode interpreter written from scratch
to execute in low memory on microcontrollers without an operating system.
PyMite supports a subset of Python 2.5 and can also be compiled, tested
and executed on a desktop computer.

Features of the PyMite VM:

* Requires roughly 40 KB program memory and initializes in under 3 KB of RAM
* Supports integers, floats, tuples, lists, dicts, functions, modules,
classes, generators, decorators and closures
* Supports 25 of 29 keywords and 89 of 112 bytecodes from Python 2.5
* Can run multiple green threads (round-robin)
* Has a mark-sweep garbage collector
* Has a hosted interactive prompt for live coding
* Licensed under the GNU GPL ver. 2

-- 
Daniel JB Clark | http://pobox.com/~dclark




More information about the discussion mailing list


interactive