gpt4 book ai didi

python - 为什么人们说 RPython 是一种令人不快的编程语言

转载 作者:行者123 更新时间:2023-12-04 04:53:05 27 4
gpt4 key购买 nike

关闭。这个问题是opinion-based .它目前不接受答案。












想改善这个问题吗?更新问题,以便可以通过 editing this post 用事实和引文回答问题.

7年前关闭。



Improve this question




人们经常说 RPython 是一种令人不快的编程语言,例如,here , here , herehere .

但是,例如 here在关于 RPython 的原始论文中,它说的恰恰相反:

The result is a language that is more expressive than C# and Java, but which does not compromise runtime efficiency. RPython was initially designed for the specific purpose of implementing PyPy [25] (a Python interpreter written in Python), but it has grown into a full-fledged language in its own right.

Currently, RPython can be used in many contexts: to develop stand-alone programs, such as the Standard Interpreter itself; to write highly efficient extension modules for CPython, which could only be written in C in the past; to develop dynamic web applications without the need to write JavaScript code; to produce efficient libraries of classes and functions to be used by other .NET and Java programs. In particular, RPython can be the ideal companion for all those CPython, IronPython and Jython developers that so far have been forced to write the parts of their programs that need high performance in C, C# or Java.



使用 RPython 作为通用语言的相关问题也是 here .我也想知道使用 RPython 作为 Cython 的替代品。一个相关的问题是 here .还有 RPythonic project .

为什么人们不推荐使用 RPython?

最佳答案

从这里:https://mail.python.org/pipermail/pypy-dev/2013-June/011503.html



当人们看 RPython 时,一个明显的特点是它是
在语法上与 Python 相同。 “RPython 必须是一种简单的语言,
鉴于它已经掌握了 Python 的语法,这很容易”。这是一个
常见的误解。事实上,取悦自动类型推断
过程可能很困难。它需要程序员保持他的
领导他整个程序的全局类型,并仔细编写代码
根据这些隐式类型。这个过程要困难得多
新手,没有任何写下来的例子来学习如何
操纵类型 --- 正是因为它们是隐式的。

关于python - 为什么人们说 RPython 是一种令人不快的编程语言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17134479/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com