问题标签 [pypy]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 让 PyPy 与任何版本的 Python (>2.5) 一起工作?
我想在 Python 2.6 中使用 PyPy。下载二进制文件时,默认版本(PyPy 1.4.1)似乎是 2.5。谷歌似乎没有多大帮助,建议?
python - 安装的pypy-c中的pypy包在哪里
我用 macports 安装了 pypy-c(最新版本:pypy @1.4.1)。我运行 pypy-c 并尝试导入 pypy
如何导入包?
python - Writing code for optimizing JIT compiler
Possible Duplicate:
Guidelines to write fast code for PyPy's JIT
I was watching this talk at PyCon: http://pycon.tv/#/video/75
The speakers (the Pypy devs) mentioned that the Python language wasn't the problem with writing a speedy compiler so much as writing your code in a way that helps the JIT do its work quickly.
What are some techniques you can use to help a JIT compiler run quickly? The only one I can think of is that writing your code so it tends to follow the same path over and over again is an obvious help.
python - 占用最少的 Python?CPython?
我是 Python 新手。经过一番搜索,我发现 PyPy 具有出色的性能,但它是有代价的。它使用太多内存。
我在 Python 中寻找的是最小可能占用空间的性能。
CPython 怎么样?
(CPython benchmark inshootout.alioth.debian.org
已被删除。有人说 CPython 占用空间小,但究竟有多小?)
python - 为什么 CPython 在“slowspitfire”和“waf”这两个测试上比 PyPy 快?
从发布在 PyPy Speed Center 上的基准测试来看,除了两个测试之外,PyPy 似乎都比 CPython 快。
在“slowspitfire”和“waf”这两个测试中,CPython 比 PyPy 快。这是为什么?这两个测试测试什么样的操作?是什么让 CPython 对这些操作更快?PyPy 是否有望在这两个测试中赶上并击败 CPython?
python - 将 Numpy 与 pypy 一起使用
我正在使用一些 numpy 工具(主要是数组),我想用 pypy 运行脚本,但我无法让它工作。
我得到的错误是:ImportError: No module named multiarray.
我检查了 multiarray.so 文件是否在核心文件夹中。
有人可以告诉我是否首先:可以做我想做的事情,其次:我该怎么做?
python - 在 PyPy 下安装 Python Eggs
如何在 PyPy 下安装 Python Egg?
在安装过程中,PyPy 创建了/usr/lib64/pypy-1.5/site-packages/
目录。所以,我尝试使用easy_install,并将前缀设置为此目录,但是它抱怨这不是鸡蛋的有效目录。我只是从 复制鸡蛋/usr/lib/python2.7/site-packages
,还是像使用 easy_install 一样简单(也许在配置上有一些更改)?
我的工作环境是 Fedora 15 Beta,Python 2.7.1 ( /usr/bin/python
),带有 GCC 4.6.0 的 PyPy 1.5.0-alpha0 (in /usr/bin/pypy
,使用 yum 从 RPM 安装),easy_install 版本是:distribute 0.6.14 ( usr/bin/easy_install
)。
python - 是否可以将 PyPy 嵌入到 .NET 应用程序中?
我想将 Python 解释器嵌入到我的 .NET 应用程序中。当然,我知道 IronPython,但我对PyPy特别感兴趣,因为它的无堆栈支持和微线程。
然而,虽然 PyPy 可以针对 CLI 构建,但它看起来只是为您提供了一个独立的 Python 解释器,例如 python.exe。我还没有找到任何文档来构建可以实际嵌入到 .NET 主机应用程序中的东西。
有没有办法使用(无堆栈)PyPy 从 .NET 应用程序运行 Python 脚本,并允许这些脚本与主机应用程序提供的 CLR 对象进行交互?
pypy - 为什么 PyPy 翻译这么慢?
将 pypy 实现转换为 c 文件并在配备 2G 内存和 Intel Core2 2GHz CPU 的现代笔记本上构建 pypy-c 需要花费数小时。
我知道这是一个 CPU 密集型任务,但它必须这么慢吗?有没有机会减少计算,重新排列计算顺序,把时间缩短到几十分钟?
interpreter - 使用 PyPy 翻译工具链制作了哪些解释器?
除了 PyPy 本身,还使用 PyPy Translator Toolchain 制作了哪些解释器?