Shed Skin is an experimental compiler, that can translate pure, but implicitly statically typed Python programs into optimized C++. Shed Skin can generate stand-alone programs or (simple, for now) extension modules, that can be imported and used from larger Python programs.
Besides the typing restriction, programs cannot freely use the Python standard library (although about 17 common modules, such as random and re, are currently supported). Also, not all Python features, such as nested functions and variable numbers of arguments, are supported.
For a set of 27 non-trivial test programs (at about 7,000 lines in total), measurements show a typical speedup of 2-40 times over Psyco, and 2-220 times over CPython.
Because Shed Skin is still in an early stage of development, however, a lot of other programs will not be able to compile out-of-the-box.
What`s New in This Release: [ read full changelog ]
· new quantum monte carlo simulation example (mark dewing, 1,200 sloc)
· new `rsync` example
· updated `c64 emulator` example, better and faster
· Makefile cleanups (fahrzin hemmati)
· experimental PyPy extmod generation (victor garcia)
· optimized `pow` (thomas spura)
· several important extmod fixes (found by running all the tests using -e)
· add extmod leakage test script, and fix some refcounting issues
· explicitly warn about tuples of length > 2 and different types of elements
· optimized zip, min, max, map, filter, reduce
· fixes for some list method corner cases
· cleanups for the internal abstract sequence class
· removed remains of deprecated FOR_IN macro
· several minor fixes