六年不见,Shed Skin!

文章回顾了ShedSkin作为Python到C++编译器的发展历程,展示了其在生成扩展模块、性能提升和与PyPy的比较方面的最新进展。通过实际样例程序展示ShedSkin在C64仿真器上的应用,以及与动态解释器PyPy的性能对比。
自从 上次提及 Shed Skin, 已经时隔六年之久。Shed Skin是一个受限的Python to C++ 编译器(Python 2.4-2.6)。此时此刻,其开发工作仍处于急速进展当中。Shed Skin 已经在GSOC 和GHOP 项目中派上用场。它现在已经能够生成拓展模块;后者可被用在更大的Python程序中。Shed Skin 样例程序之一,一个半成品的C64 仿真器,现在可以在较快的PC上在一分钟之内编译完成。目前为止总共已经有64个不小的样例程序。正如对静态编译器所要求的那样,许多情况下, Shed Skin 性能都比PyPy要好。不过我们当然得承认,PyPy限制更少些,而且同样也在急速地成长。

logo.png

转载请注明:Linux人社区> 英文资讯翻译专版.编译

英文原文:
Shed Skin 6 Years Later
posted by mark dufour on Mon 16th Jan 2012 13:32 UTC
It has been 6 years since we last mentioned Shed Skin, a restricted-Python to C++ compiler (Python 2.4-2.6). In the meantime, development has continued at a rapid pace. Shed Skin has taken part in the GSOC and GHOP projects. It is now able to generate extension modules, which can be used in larger Python programs. Its type inference engine has become orders of magnitude faster. One of the Shed Skin example programs, a work-in-progress C64 emulator is now compiled in under a minute on a fast PC. In total there are 64 non-trivial example programs. As may be expected from a static compiler, performance is better than when using PyPy in many cases. Though of course we have to mention that PyPy is much less restricted, and also improving at a rapid pace.   

转载于:https://my.oschina.net/xyxzfj/blog/39250

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值