Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing PyPy's Rpython as a general programming language [closed]

Is there any interest in developing Rpython (Restricted Python) from the PyPy project as a general purpose programming language? Perhaps it could be a fork from the PyPy project. Does such a project exist? Since the programs are compiled, one could simply contribute modules written in Rpython, and it could compete with other python implementations including CPython and PyPy.

like image 643
highBandWidth Avatar asked Feb 17 '11 20:02

highBandWidth


People also ask

Is PyPy written in Python?

Python and PyPy. The Python language specification is used in a number of implementations such as CPython (written in C), Jython (written in Java), IronPython (written for . NET), and PyPy (written in Python). CPython is the original implementation of Python and is by far the most popular and most maintained.

What is Python programming language used for?

Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to create a variety of different programs and isn't specialized for any specific problems.

Does PyPy support Python 3?

PyPy comes in two versions: one is fully compatible with Python 2.7; the other is fully compatible with one 3. x version.

Is Python a real programming language?

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.


1 Answers

I can't speak for everyone else, but I personally am extremely interested in using RPython as a general-purpose language. To answer some other people's questions:

Why? Because Cython is a pain to figure out how to use. If you don't put in a lot of tricky type declarations just right, you don't get any speedup. With RPython, it will run fast or it won't run at all.

Using PyPy offers a good speedup, but currently not nearly as much as RPython.

RPython might be a good way to get super-fast, somewhat Pythonic code. Here's an example to help you get started. I'm not aware of any large projects to do this, unfortunately.

like image 119
bnsmith Avatar answered Sep 22 '22 11:09

bnsmith