TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PyPy v5.8 released

162 pointsby pettoualmost 8 years ago

9 comments

boultonmarkalmost 8 years ago
I have a question and then a general vent<p>1. Does anyone know the latest update on NumPyPy? PyPy for me is just not a usable proposition because I heavily use Numpy (and Scipy et al). So I am forced to use slow Python + fast Numpy or slow Numpy + fast Python. Very saddening. The C-Extension is just so off the pace, NumPyPy was meant to solve that quandry.<p>And I know some smart Alec will trot out the usual &#x27;downshift into C&#x27; line that everyone (including Guido) use as the final goto solution for performance but that is simply a disgrace in 2017. Even JavaScript is fast. Why can I not choose to write Python and it be fast?? And yet Python 3 is getting slower. Don&#x27;t agree? Look at these benchmarks of Python heaps written in Python (not using the C based builtin heapq) <a href="https:&#x2F;&#x2F;github.com&#x2F;MikeMirzayanov&#x2F;binary-heap-benchmark" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;MikeMirzayanov&#x2F;binary-heap-benchmark</a> Python generally is off the pace but Python 3 is about twice as slow as 2 and miles off JavaScript.<p>But PyPy is proof that Python can be fast. It makes quote&#x2F;unquote &quot;Pure Python&quot; within striking distance of Go and and when I run that test suit on PyPy, its similar to the Node.js score. Why does this matter? Because I want to write bloody Python not C.<p>And it is so tantalisingly close - look at a blog post like: <a href="https:&#x2F;&#x2F;dnshane.wordpress.com&#x2F;2017&#x2F;02&#x2F;14&#x2F;benchmarking-python-heaps&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dnshane.wordpress.com&#x2F;2017&#x2F;02&#x2F;14&#x2F;benchmarking-python...</a> The performance of the Fibonacci Heap that someone wrote in quote&#x2F;unquote &quot;Pure Python&quot;, when run in CPython can never compete with HeapQ (the C based builtin lib), but on PyPy it can. Fast code written in Python. So what are the problems holding back PyPy? I think possibly money and number of devs working on stuff. Javascript had Mozilla, Google, Microsoft and Apple in a browser war + loads of open source input.<p>But is the biggest stumbling block not Guido himself and the core Python devs? Do they just philosophically not agree with PyPy or is it just disinterest?<p>Well whatever it is, it is heart-breaking to want to write fast code in my favourite language and leverage all its power including Numpy&#x2F;Scipy etc and not be able to. And yes my use-case is perhaps quite unique, a very CPU intensive service that ideally computes and returns a real-time calculation (that includes 500k function calls) in 10-50ms.<p>But getting fast Numpy in the PyPy mix (i.e all the speed of the JIT + no worse Numpy) would be a HUGE step forward for me in PyPy adoption. What is the latest? How can I help?
评论 #14521207 未加载
评论 #14521164 未加载
评论 #14520838 未加载
评论 #14522131 未加载
评论 #14520863 未加载
评论 #14521021 未加载
评论 #14522760 未加载
评论 #14522617 未加载
评论 #14523189 未加载
评论 #14523659 未加载
评论 #14522812 未加载
评论 #14521083 未加载
评论 #14523294 未加载
评论 #14521123 未加载
评论 #14520807 未加载
评论 #14522171 未加载
评论 #14521404 未加载
评论 #14522814 未加载
pjmlpalmost 8 years ago
Awesome work, congratulations on bringing Python forward.<p>Still wishing one day PyPy might become the canonical implementation.
mattbillensteinalmost 8 years ago
PyPy is great -- while I still use CPython for our more complex webapp and associated tools that have heavy dependencies on C-extensions; I increasingly use PyPy for the more mundane cpu&#x2F;data heavy lifting I do. It&#x27;s typical to get 2X the performance (comparable to some compiled languages) and still use much of our utility code, configs, etc.
评论 #14520664 未加载
robocaptainalmost 8 years ago
Coming from someone who uses python but doesn&#x27;t really follow alternative compilers, PyPy sounds great. What are some of the downsides, if any? Are you sacrificing library compatibility for faster core+standard libs?
评论 #14521004 未加载
评论 #14521343 未加载
评论 #14521823 未加载
评论 #14522207 未加载
评论 #14521016 未加载
评论 #14520845 未加载
评论 #14521824 未加载
make3almost 8 years ago
Awesome news, congrats to the team :) On an unrelated note, I wish Google gave them money to make it work with Tensorflow.
dr_zoidbergalmost 8 years ago
Why are they still comparing to Python 2.7.2? I couldn&#x27;t find benchmarks against Python 3.5 for their Py3 interpreter.<p>All the times I tried PyPy I came into a hurdle where one of the libraries I needs doesn&#x27;t work (or underperforms) in PyPy, the most important ones being Numpy and OpenCV.<p>So in the end I just gave up with them, and stuck with Python 2&#x2F;3 and Cython, which solved my speed problems without having to do all the work of C-extensions from the ground up.<p>Edit: the one benchmark I found covering PyPy3 is this: <a href="https:&#x2F;&#x2F;pybenchmarks.org&#x2F;u64q&#x2F;benchmark.php?test=all&amp;lang=pypy3&amp;lang2=python3&amp;data=u64q" rel="nofollow">https:&#x2F;&#x2F;pybenchmarks.org&#x2F;u64q&#x2F;benchmark.php?test=all&amp;lang=py...</a><p>It shows PyPy3 5.7.1 being about 8x faster to 100x slower than CPython 3.6.1.<p>For comparison, PyPy2 5.7.1 ranges from 10x faster to a bit over 30x slower to than CPython 2.7.13.
评论 #14522365 未加载
Tobualmost 8 years ago
Any word on the &quot;single codebase&quot; aspect of supporting both major Python versions? I remember suggesting it years ago at a time when the team wanted to do Mercurial backporting instead. What changed their mind?<p>That looks like it could fix the lag on CPython releases, so it&#x27;s a big feature.
oblioalmost 8 years ago
I guess the next release is the one that should support Python 3. At least as a non-beta feature.
评论 #14521333 未加载
ipunchghostsalmost 8 years ago
Here is the dumbest question in the world: our application has a gui which is pyqt, can we use pypy? Aside from pyqt, its completely vanilla python.
评论 #14522576 未加载