Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you reallly want to shrink python, you can have a look at those project : </p> <p><a href="http://code.google.com/p/python-on-a-chip/" rel="noreferrer">http://code.google.com/p/python-on-a-chip/</a></p> <p>as said on the site :</p> <blockquote> <p>Python-on-a-Chip (p14p) is a project to develop a reduced Python virtual machine (codenamed PyMite) that runs a significant subset of the Python language on microcontrollers without an OS. The other parts of p14p are the device drivers, high-level libraries and other tools. Please join the python-on-a-chip google group to discuss this project.</p> </blockquote> <p>This may be a little lower level than expected, but it really is shrinked : </p> <p>Features of the PyMite VM:</p> <ul> <li>Requires roughly 55 KB program memory</li> <li>Initializes in 4KB RAM; print "hello world" needs 5KB; 8KB is the minimum recommended RAM.</li> <li>Supports integers, floats, tuples, lists, dicts, functions, modules, classes, generators, decorators and closures</li> <li>Supports 25 of 29 keywords and 89 of 112 bytecodes from Python 2.6</li> </ul> <p>You could get interesting ideas from this project.</p> <p>Beware that you only get the virtual machine, ie. you can run pyc files, not py. (pyc files are cross platform, though. And much smaller than py files)</p> <p>In fact, if you really target smallest python, you need to disable parts of the library, but maybe also the compiler itself.</p> <p>This site might have interesting pointers also : <a href="http://www.awaretek.com/pymo.html" rel="noreferrer">http://www.awaretek.com/pymo.html</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload