Wednesday, January 09, 2013

Shed Skin 0.9.3

I have just released version 0.9.3 of Shed Skin, a restricted-Python (2.4-2.6) to C++ compiler. This is the third maintenance release since 0.9, and as such there were (almost) no major changes.

For the full list of changes since 0.9.2, please see the release notes.

Five interesting new examples were added for this release, bringing the total to 72. Most interesting to me are Pygasus, a 1,500 line NES emulator that is able to play mario bros (Maciek "Mistrall" Żuk), as well as a pure Python implementation of timsort, the famous Python sorting algorithm (ported from java to python by Dan Stromberg).

In the meantime, the C64 emulator (see my earlier posts) has grown to about 6,000 lines of code (sloccount) but is still compiling fine (though it takes about 10 minutes here, still not that bad). I'm tempted to update the scalability graph I posted earlier.

In any case, I would like to thank the authors of the new example programs for sharing their code (maciek, dan, thomas, piotr, keegan) and those who provided improvements (danny milosavljevic) or feedback since 0.9.2.

3 comments:

Repy said...

Amazing. Keep up the good work!
Thank you.

Sébastien Boisvert said...

I am using import xml.parsers.expat
in a Python script.

I want to try Shed Skin.


What I get:

[@ -quota]$ echo $PYTHONPATH
/is1/users/boiseb01/colosse-quota/./shedskin/prefix//lib/python2.7/site-packages/:/is1/users/boiseb01/colosse-quota/./shedskin/prefix//lib:/usr/lib64/python2.7/site-packages/openmpi:/Bigbackup/commonPrograms/MACS-1.4.1/lib/python2.7/site-packages/:/Bigbackup/commonPrograms/biopython/
[@ -quota]$ ./shedskin/prefix/bin/shedskin YieldInsight.py
*** SHED SKIN Python-to-C++ Compiler 0.9.4 ***
Copyright 2005-2011 Mark Dufour; License GNU GPL version 3 (See LICENSE)

*ERROR* YieldInsight.py:8: cannot locate module: xml

srepmub said...

I'm afraid only about 25 standard library modules are supported. please see the online documentation for an overview of several other limitations of using shedskin, and some ways they may be overcome.