TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pythran: A Python subset to C++ compiler that takes advantage of SIMD

51 点作者 maxmouchet超过 9 年前

3 条评论

gamesbrainiac超过 9 年前
There are quite a few attempts to make faster python implementation these days from pypy (A JIT built on top of rpython), pyston (yet another JIT that which uses llvm as a backend), pyparallel, nukita and I&#x27;m pretty sure there are a lot more.<p>Either the python community is being very prolific, or has no clue what will actually solve the problem, hence its trying everything.
评论 #10569179 未加载
评论 #10569177 未加载
评论 #10569394 未加载
评论 #10569284 未加载
nickcw超过 9 年前
I just wondered if anyone had any insight in how this differs from shedskin - <a href="https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;shedskin&#x2F;" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;shedskin&#x2F;</a><p>From the shedskin website: Shed Skin is an experimental compiler, that can translate pure, but implicitly statically typed Python (2.4-2.6) programs into optimized C++. It can generate stand-alone programs or extension modules that can be imported and used in larger Python programs.
评论 #10569786 未加载
toolslive超过 9 年前
But does it retain the python semantics? for example:<p><pre><code> def fac(n): if n == 0 : return 1 else: return n * fac(n-1) print fac(100) </code></pre> will yield a big string, while any naive C++ translation will print the string &quot;0&quot; due to overflow.
评论 #10570305 未加载