Linked by Thom Holwerda on Sun 25th Sep 2005 12:05 UTC, submitted by Luis Gonzalez
General Development Shed Skin is an experimental Python-to-C++ compiler. It can convert many Python programs into optimized C++ code, without any user intervention such as adding type declarations. Its main purpose is to optimize algorithmic-like Python code, by applying advanced global type inference techniques.
Thread beginning with comment 36193
To read all comments associated with this story, please click here.
shed skin converts to c++ and compiles to .exe
by on Mon 26th Sep 2005 01:54 UTC

Member since:

I've been trying Shed skin since the first day and and so far, I'm very impressed and satisfied.

It's important to note that at its current stage, shed skin should be used to convert and compile python programs written in a relatively "static" style. That means that you should avoid dynamic features such as exec or eval. Also, you shouldn't change the type of a variable like this:

a='is now a string'

Also, it worth mentioning that it is not possible to import modules or using the standard library at this moment, since any module should be written in the above mentioned static style in order to compile.
In few words, try to design your program the same way you should when using a static language, but taking advantage of the beatufull and productive python syntax (no type declarations, readable code, etc).

I'd also like to say that Mark has been very kind and responsive to my questions and he is very fast at fixing bugs and implementing missing features.
He would also appreciate any help from interested developers to continue developinh Shed Skin.
It seems that all the hard work and the basic functionality has already been done and implemented, but now a lot of work remains to be done for getting into details.
As far as I could see, it would be very easy for experienced c++ and/or python programmers to contribute to the project.

Reply Score: 0