Python编译器? [英] Python compilers?

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

问题描述

是否有人在使用python-to-native编译器?

我有兴趣看看。


来想一想它,是否有人正在开发一个启用sexpr的版本的

Python,或类似的东西?每当我尝试使用它时,我真的很想念我的宏。

Is anyone working on a python-to-native compiler?
I''d be interested in taking a look.

Come to think of it, is anyone working on a sexpr-enabled version of
Python, or anything similar? I really miss my macros whenever I try to
use it...

推荐答案

Svein Ove Aas写道:
Svein Ove Aas wrote:
是否有人在使用python-to-native编译器?
我有兴趣看看。

来吧想一想,有没有人在开发一个启用了sexpr的版本的Python,或类似的东西?每当我尝试使用它时,我都会非常想念我的宏...
Is anyone working on a python-to-native compiler?
I''d be interested in taking a look.

Come to think of it, is anyone working on a sexpr-enabled version of
Python, or anything similar? I really miss my macros whenever I try to
use it...




很多过去的线程,包括这一个:
< a rel =nofollowhref =http://groups.google.com/groups?&th=8f7b4867334c3d07target =_ blank> http://groups.google.com/groups?&th=8f7b4867334c3d07


(简答:不,也许,看看Psyco,PyPy和其他人......)


-Peter



Lots of past threads on this, including this one:
http://groups.google.com/groups?&th=8f7b4867334c3d07

(Short answers: no, maybe, look at Psyco, PyPy, and others...)

-Peter


Svein Ove Aas写道:
Svein Ove Aas wrote:

是否有人在使用python-to-native编译器?
我'有兴趣看看。

来想一想,有没有人在使用启用了sexpr的版本的Python,或类似的东西?每当我尝试使用它时,我都非常想念我的宏...

Is anyone working on a python-to-native compiler?
I''d be interested in taking a look.

Come to think of it, is anyone working on a sexpr-enabled version of
Python, or anything similar? I really miss my macros whenever I try to
use it...




我真的希望有一个python到本机的编译器,一个很好的编译器那个

会产生相当快的执行力。


Mitchell Timin


-

许多人在追求他们选择的道路方面很顽固,很少有人追求目标。 - Friedrich Nietzsche

http://annevolve.sourceforge.net 这就是我现在所做的事情。

人类可以在这个地址给我写信:zenguy at shaw dot ca



I really wish there was a python-to-native compiler, a good one that
would produce fairly fast execution.

Mitchell Timin

--
"Many are stubborn in pursuit of the path they have chosen, few in
pursuit of the goal." - Friedrich Nietzsche

http://annevolve.sourceforge.net is what I''m into nowadays.
Humans may write to me at this address: zenguy at shaw dot ca


Svein Ove Aas写道:
Svein Ove Aas wrote:
是否有人在使用python-to-native编译器?
我有兴趣看看。
Is anyone working on a python-to-native compiler?
I''d be interested in taking a look.




你想要实现什么?


如果它的代码执行速度更快,那么使用非常好的
高级语言(如Python)的主要减速是由高级数据结构造成的b $ b(内省,一切都是对象等),而不是代码本身。

本机编译器仍然需要使用高级别数据结构

适用于所有Python代码,因此速度增加不会太多。


如果它很容易你正在寻找的分销,我认为distutils可以在Windows上制作独立程序,大多数Linux发行版都默认安装了Python




如果你只是认为编译器会很酷(或者想看看它是如何完成的),查看Psyco,Pyrex以及其他一些
项目。除了Python高级类型之外,Pyrex甚至可以通过允许使用原生C类型来解决速度问题。



What are you trying to achieve?

If it''s faster code execution, the primary slowdown with a very
high-level language like Python is caused by high-level data structures
(introspection, everything being an object, etc.), not the code itself.
A native compiler would still have to use high-level data structures to
work with all Python code, so the speed increase wouldn''t be very much.

If it''s ease of distribution you''re looking for, I think distutils can
make standalone programs on Windows, and most Linux distros have Python
installed by default.

If you just think a compiler would be cool (or would like to see how it
would be done), check out Psyco, Pyrex, and probably some other
projects. Pyrex even combats the speed issue by allowing native C types
to be used in addition to Python high-level types.


这篇关于Python编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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