Reputation: 12508
From what I have seen and read on blogs, PyPy is a very ambitious project. What are some advantages it will bring to the table over its siblings (CPython, Jython, and IronPython)? Is it speed, cross-platform compatibility (including mobile platforms), the ability to use c-extensions without the GIL, or is this more of a technical exercise on what can be done?
Upvotes: 28
Views: 3530
Reputation: 134711
The most important feature is of course the JIT compiler. In CPython files are compiled to bytecode (.pyc
) or optimized bytecode (.pyo
) and then interpreted. With PyPy they will be compiled to native code. PyPy also includes Stackless Python patches, including it's impressive features (tasklet serialization, light threads etc.)
Upvotes: 4
Reputation: 8381
PyPy is really two projects:
These two projects allow for many things.
So there are really a lot of reasons for PyPy to be exciting, and it is finally starting to live up to all its promises.
Upvotes: 38
Reputation: 126175
In case that Python gets a real JIT I think it's going to be as fast as any other implementation.
The advantage is that it's much easier to implement new features. One can see this today by observing the library. Often modules are written in Python first and then translated into C.
Upvotes: 0