Shed Skin Python-to-C ++编译器0.0.21,需要帮助 [英] Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

查看:67
本文介绍了Shed Skin Python-to-C ++编译器0.0.21,需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我最近发布了版本0.0.20和0.0.21的Shed Skin,一个

优化的Python-to-C ++编译器。 Shed Skin允许将纯粹(未修改),隐式静态类型的Python程序转换为优化的C ++,以及高度优化的机器语言。除了
许多错误修复和优化之外,这些版本还添加了以下

更改:


-支持''bisect'' ,'collections.deque''和''string.maketrans''

-improved''copy''支持

-支持''try,else''施工

- 改进了动态类型的错误检查

-flointing现在更接近CPython


有关详细信息Shed Skin和27个程序的集合,总共大约7,000行,它可以编译(导致
平均加速比CPython大约39倍)超过Psyco的11倍

在我的电脑上),请访问主页:

http://mark.dufour.googlepages.com

我真的可以使用更多帮助它进一步推动Shed Skin。简单的方法

帮忙,但这可以节省我很多时间,是找到Shed Skin目前打破的小的b $ b代码片段,并帮助

改进/优化(C ++)内置库和核心库。我也是

希望其他人想要处理与CPython的集成

(因此Shed Skin可以生成扩展模块,并且它变得更容易

使用''任意''外部CPython模块,如''re''和''pygame''。)

最后,可能会有一些有趣的硕士论文题目

改进Shed Skin,例如将堆分配转换为堆栈 -

和静态预分配,如果可能的话,甚至可以带来性能

更接近手动C ++。如果您对

帮忙,和/或加入Shed Skin邮件列表感兴趣,请告诉我。

谢谢!

Mark Dufour 。

-

我最富有成效的日子之一就是丢掉1000行代码

- Ken Thompson

Hi all,

I have recently released version 0.0.20 and 0.0.21 of Shed Skin, an
optimizing Python-to-C++ compiler. Shed Skin allows for translation of
pure (unmodified), implicitly statically typed Python programs into
optimized C++, and hence, highly optimized machine language. Besides
many bug fixes and optimizations, these releases add the following
changes:

-support for ''bisect'', ''collections.deque'' and ''string.maketrans''
-improved ''copy'' support
-support for ''try, else'' construction
-improved error checking for dynamic types
-printing of floats is now much closer to CPython

For more details about Shed Skin and a collection of 27 programs, at a
total of about 7,000 lines, that it can compile (resulting in an
average speedup of about 39 times over CPython and 11 times over Psyco
on my computer), please visit the homepage at:

http://mark.dufour.googlepages.com

I could really use more help it pushing Shed Skin further. Simple ways
to help out, but that can save me lots of time, are to find smallish
code fragments that Shed Skin currently breaks on, and to help
improve/optimize the (C++) builtins and core libraries. I''m also
hoping someone else would like to deal with integration with CPython
(so Shed Skin can generate extension modules, and it becomes easier to
use ''arbitrary'' external CPython modules such as ''re'' and ''pygame''.)
Finally, there may be some interesting Master''s thesis subjects in
improving Shed Skin, such as transforming heap allocation into stack-
and static preallocation, where possible, to bring performance even
closer to manual C++. Please let me know if you are interested in
helping out, and/or join the Shed Skin mailing list.
Thanks!
Mark Dufour.
--
"One of my most productive days was throwing away 1000 lines of code"
- Ken Thompson

推荐答案

Mark Dufour写道:
Mark Dufour wrote:

Shed Skin允许翻译纯(未修改),隐式

将静态类型的Python程序转换为优化的C ++,因此,
Shed Skin allows for translation of pure (unmodified), implicitly
statically typed Python programs into optimized C++, and hence,



^^^^^

^^^^^


高度优化的机器语言。
highly optimized machine language.



^^^^^^^^^^^^^^^^


哇,我打赌所有的C ++编译器制造商希望你工作

他们。


问候,

Bj?rn

-

BOFH借口#23:


键盘不正确

^^^^^^^^^^^^^^^^

Wow, I bet all C++ compiler manufacturers would want you to work for
them.

Regards,
Bj?rn

--
BOFH excuse #23:

improperly oriented keyboard



Bj?rnMark Dufour写道:

Bj?rnMark Dufour wrote:

> Shed Skin允许翻译纯(未修改),隐式地将静态类型的Python程序转换为优化的C ++,因此,高度优化的机器语言。
>Shed Skin allows for translation of pure (unmodified), implicitly
statically typed Python programs into optimized C++, and hence,
highly optimized machine language.



Bjoern ^^^^^^^^^^^^^^^^


BjoernWow ,我敢打赌,所有的C ++编译器制造商都希望你能够为他们付出代价。


你为什么要对马克进行抨击?他可能会做点什么,而且他要求帮助。如果他可以隐式地生成有效的C ++代码,那么他可以利用

编译器的优化工具。

编译器的优化工具。


Skip

Bjoern ^^^^^^^^^^^^^^^^

BjoernWow, I bet all C++ compiler manufacturers would want you towork
Bjoernfor them.

Why are you taking potshots at Mark? He''s maybe onto something and he''s
asking for help. If he can generate efficient C++ code from implicitly
statically type Python it stands to reason that he can take advantage of the
compiler''s optimization facilities.

Skip


sk ** @ pobox.com 写道:
sk**@pobox.com wrote:

你为什么要在马克拍摄电影?
Why are you taking potshots at Mark?



这表明我正在采取大肆宣传在马克?

What suggests that I''m "taking potshots" at Mark?


他可能正在做些什么而他正在寻求帮助。如果他能够通过隐式静态类型Python生成高效的C ++代码,那么可以理解他可以利用编译器的优势来支付
优化设施。
He''s maybe onto something and he''s asking for help. If he can
generate efficient C++ code from implicitly statically type Python
it stands to reason that he can take advantage of the compiler''s
optimization facilities.



是的,编译器输出优化的机器代码。但通常

调用该代码高度优化恕我直言,夸张。


问候,

Bj?


-

BOFH借口#426:


互联网需要赶上etherbunny

Yes, compilers do output optimized machine code. But generally
calling that code "highly optimized" is, IMHO, exaggeration.

Regards,
Bj?rn

--
BOFH excuse #426:

internet is needed to catch the etherbunny


这篇关于Shed Skin Python-to-C ++编译器0.0.21,需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆