PyPy 2.5.0 Released
Wednesday, 04 February 2015

There is more than one way to run a Python - program that is. The latest release of PyPy provides another alternative that is fast and interesting.

The main implementation of Python, the one most of use, is CPython and this is generally considered the language standard. PyPy is another implemenation but one written in Python itself.

To make it possible to optimise, a restricted version of Python called RPython is used and this is almost as important as PyPy itself. It is used to implement and experiment with other dynamic languages, for example HippyVM for PHP is a fast PHP implemenation in RPython. In this release the RPython documentation has been separated out from that of PyPy. 

PyPy is faster than CPython, factors of six and more are often quoted, and really its only drawback is that it only supports Python 2 code. There is a project, Py3k, to extend support to Python 2 and there is a 3.2.5 compatible version, but with some extra funding the target is to support 3.3. 

The latest version of PyPy will run on x86 and ARM hardware and Windows, Linux, Max and OpenBSB. It is claimed to run 10% faster than the previous version due to improvements in the JIT. Mixing C code in with Python is faster because C data structures can be passed as raw pointers to pinned memory allocations. 

There have also been improvments to the builtin numpy library, which are to be explained in detail in a later blog post. As numpy is the standard and important library for scientific number crunching, using it under PyPy for the extra speed is very attractive and in the new release almost everything works, as it does under CPython. 

The original PyPy project was initially funded by the EU, then Google and even the Raspberry Pi foundation chipped in with help to get an ARM version up and running. However, the project is currently unfunded.

As the announcement of the new version says:

"We’ve shown quite a bit of progress, but we’re slowly running out of funds. Please consider donating more, or even better convince your employer to donate, so we can finish those projects! "

So if you use Python for anything, consider helping out. 

 pypy

Banner


Holiday Gifts For Programmers
19/11/2023

As Black Friday looms, the well-organized among us are hitting the shops to be ready with our festive gifts, though I doubt many of us are as ready as the friend who told me they've already finished w [ ... ]



Helidon Microservices Framework Version 4 Reaches General Availability
16/11/2023

Helidon, the open source microservices framework by Oracle, has been updated to version 4, just a month after the release of Java 21. With this release Helidon becomes the world’s first virtual [ ... ]


More News

 

esp32book

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Thursday, 05 February 2015 )