PDA

View Full Version : Shed Skin Project - Python to CPP



Inprise
دوشنبه 04 مهر 1384, 02:09 صبح
سلام؛

Shed Skin قراره بتونه کدهای Python رو بصورت خودکار به متن کد CPP همراه با بهینه سازی تبدیل کنه ؛ به نظر میاد با توجه به عمرش ، چیز قابل قبولی باشه و قطعا" در آینده کاملتر خواهد شد .



After nine months of hard work, I am proud to introduce my baby to the world: 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. It uses rather advanced static type inference techniques to deduce type information by itself. In addition, it determines whether deduced types may be parameterized, and if so, it generates corresponding C++ generics. Based on deduced type information, it also attempts to convert heap allocation into stack and static preallocation (falling back to libgc in case this
fails.)

The compiler was motivated by the belief that in many cases it should be possible to automatically deduce C++ versions of Python programs, enabling users to enjoy both the productivity of Python and the efficiency of C++. It works best for Python programs written in a relatively static C++-style, in essence enabling users to specify C++ programs at a higher level.


http://shed-skin.blogspot.com

ماکوآنلاین
یک شنبه 10 مهر 1384, 12:40 عصر
میشه بیشتر توضیح بدین؟



__________________
www.makouonline.com