Live data from Hacker News

The first stable release of PyPy3

morepypy.blogspot.com

81–90 of 92 posts

Re: The first stable release of PyPy3

#81
post #67

Earlier quoted context omitted.

Convincing distros to package it as the default "python" should be the priority. Until that happens, Python 3 will see limited adoption. The path of least resistance will always have the most traffic.

It's a chicken and egg problem. So long as most Python libraries run on Python 2 but not Python 3, distros are going to package Python 2.

Actually, the majority of PyPI packages are python-3 compatible. For a status overview, see http://python3wos.appspot.com/

Re: The first stable release of PyPy3

#82
After searching far and wide for a solution to improve Python performance, I stumbled upon the post "The sweet trap of dynamic languages and development time"ꝉ.

I think the case for Python begins to deteriorate as the project grows in complexity, and performance begins to matter greatly. PyPy is competing in this regard with Julia and Nimrod.

"Languages like C++ are not the solution, and dynamic languages end up disappointing when you grow past single programmer code. Isn't there a middle ground? There is: instead of patching an old decrepit corpse, start from zero using what you have learned. Start using the Nimrod programming language, which would look like this for the previous examples:"

    import uri, strutils

    proc shortestURL(urls: seq[TUrl]): TUrl =
      if urls.len 
Nimrod compiles this code to pure ANSI C. It isn't dependent on a virtual machine, and produces small executables without dependencies, reminiscent of Go.

https://gradha.github.io/articles/2014/03/the-sweet-trap-of-...

Re: The first stable release of PyPy3

#83
post #81
post #67

Earlier quoted context omitted.

It's a chicken and egg problem. So long as most Python libraries run on Python 2 but not Python 3, distros are going to package Python 2.

Actually, the majority of PyPI packages are python-3 compatible. For a status overview, see http://python3wos.appspot.com/

That's not what that site is saying.

For my PyCon Russia talk, I pulled down the data for all 44,402 packages (as of May 31). 13.5% of all packages on PyPI support some version of Python 3. 75.5% of the top 200 packages by download count claim to support some Python 3 version (according to their setup.py classifiers). Additionally, 64% of the top 500 support some Python 3 version.

Another interesting thing I saw was that of those 44K packages, 44% of them have seen a release within the last 12 months (representing 82% of the last month's download share), and 22% of those packages released in the last year support some version of Python 3.

Re: The first stable release of PyPy3

#84
post #80
post #71

Earlier quoted context omitted.

Looks like they're over 80% of the way to hitting the funding goal for that one too: http://pypy.org/numpydonate.html

The problem is: even if numpy gets ported we still don't have scipy and a million other packages which require C bindings.

True. Though this will likely make PyPy more mainstream, and thus it'll hopefully attain more community support.

Re: The first stable release of PyPy3

#87
post #28

I created a simple Terminal instance that compares Python and PyPy in a performance test: https://terminal.com/tiny/shkhWWkcEV (this lets you compare the performance on a real Linux system, without installing anything)

The PyPy people themselves have a benchmark portal at http://speed.pypy.org/ with graphs and everything.

Re: The first stable release of PyPy3

#89

Earlier quoted context omitted.

On a silly piece of code that nobody would ever have any use for. I have tried PyPy for "real" data and numerical tasks from time to time, and never have I noticed any sort of speedup. Usually it's slower than CPython. Perhaps this latest version will be different, who knows.

I'm using it in production, and speedups tend to be on the order of 4-5x for my app (the compute-intensive part involves hierarchical agglomerative clustering of documents by text similarity, so it's data/numbers-heavy). Obviously it'll depend on your individual application (and non-CPU-bound tasks won't benefit much), but we switched to PyPy because it showed major improvements in profiling of our app on production…

I've just finished writing "High Performance Python" for O'Reilly (due August), we have a chapter on Lessons from the Field and one chap talks about his successful many-machine roll out of a complex production system using PyPy for a 2* overall speed gain. We also cover Numba, Cython, profiling, numpy etc - all the topics you'd expect.

Re: The first stable release of PyPy3

#90
post #67

Earlier quoted context omitted.

Convincing distros to package it as the default "python" should be the priority. Until that happens, Python 3 will see limited adoption. The path of least resistance will always have the most traffic.

It's a chicken and egg problem. So long as most Python libraries run on Python 2 but not Python 3, distros are going to package Python 2.

Someone has to take the first step and break the cycle to get the chicken-egg problem undone. Arch has had Python 3 as the default Python interpreter for a couple of years now and it's been working pretty much fine. Many libraries now support Python 3, and I've done full sites in Py 3. Almost all Python scripts I write these days are Python 3. I don't think I've had to downgrade a script that started in 3 down to 2 for a couple of years now. It's as ready as it's going to get.

The groundwork is done, and I think everyone who is going to support Py 3 without any extra prodding has already done so. Now we need the distros to come through and give that extra nudge to the maintainers that are still slacking, or encourage people to replace those libraries that refuse to update.

Post reply on HN