Live data from Hacker News

PyPy 2.0 Released

morepypy.blogspot.com

71–77 of 77 posts

Re: PyPy 2.0 Released

#71
post #51

Earlier quoted context omitted.

Do you mean the people who haven't upgraded from Python 2.7 to Python 3?

The people who haven't upgraded to Python 3 in their projects are probably mostly people with dependencies on py2.7 libraries. Happened to me in my last project. I started using pypy until some bug in pypy prevented me from using an important package. Switched to python 3 until some other dependency wasn't available. So it's a pity, but i was more or less forced to use py2.7 (without putting major effort into 3rd par…

And you did put at least the same amount of effort as to write this comment to report the bug to pypy devs and/or library devs right?

Re: PyPy 2.0 Released

#72
post #63

Earlier quoted context omitted.

I've had exactly the same problem. I have had tree-manipluation AI problems which run for > 30 minutes (seems like an ideal thing for pypy, before I rewrite them in C++). pypy is almost always slower, and never more than about 15% faster, whereas a simple line-by-line C++ rewrite can be 20x faster.

Python is a vast language. It's very hard to know upfront what sort of patterns people use - if you don't talk to us, don't post stuff on the bug tracker, don't do anything - it's your own fault. PyPy is known to speed up real world code to various degrees - sometimes 10x sometimes not at all, but it all really depends. We would be happy to help you with your problem, but if the only thing you do is to complain on ha…

I am sympathetic because PyPy is very good and is improving fast. but...

That doesn't change how the PyPy project tends to represent itself, which almost always comes across as something like "6x speedup for everything (excluding JIT warmup)". If you want everyone to adopt PyPy instead of CPython then it is part of your job to find the cases where PyPy is not actually faster rather than saying it is the user's fault. And it is not your job to select only benchmarks which tell the story you want.

If the difference between interpreters is nuanced then that nuance should be expressed so that people can make intelligent decisions rather than dismissing one or another interpreter as "slow".

Re: PyPy 2.0 Released

#73
post #71
post #51

Earlier quoted context omitted.

The people who haven't upgraded to Python 3 in their projects are probably mostly people with dependencies on py2.7 libraries. Happened to me in my last project. I started using pypy until some bug in pypy prevented me from using an important package. Switched to python 3 until some other dependency wasn't available. So it's a pity, but i was more or less forced to use py2.7 (without putting major effort into 3rd par…

And you did put at least the same amount of effort as to write this comment to report the bug to pypy devs and/or library devs right?

How often do people do that for CPython?

Re: PyPy 2.0 Released

#74
post #14
post #4

Congratulations! Looking forward to the day PyPy becomes the reference implementation.

God yes. I wish the CPython people would just capitulate and throw themselves behind it.

Why does this have to be so political? Why does it matter to you if CPython continues to exist, just use PyPy if you want to?

Re: PyPy 2.0 Released

#75
post #72
post #63

Earlier quoted context omitted.

Python is a vast language. It's very hard to know upfront what sort of patterns people use - if you don't talk to us, don't post stuff on the bug tracker, don't do anything - it's your own fault. PyPy is known to speed up real world code to various degrees - sometimes 10x sometimes not at all, but it all really depends. We would be happy to help you with your problem, but if the only thing you do is to complain on ha…

I am sympathetic because PyPy is very good and is improving fast. but... That doesn't change how the PyPy project tends to represent itself, which almost always comes across as something like "6x speedup for everything (excluding JIT warmup)". If you want everyone to adopt PyPy instead of CPython then it is part of your job to find the cases where PyPy is not actually faster rather than saying it is the user's fault.…

FWIW, it's trivial to get benchmarks into their comparisons, provided they aren't microbenchmarks, at least in my experience. Saying they pick benchmarks that are favourable is untrue: the majority were added because of PyPy performing badly on them, and they've improved as a result of being included thus making them mostly benchmarks PyPy does well at.

Re: PyPy 2.0 Released

#76
post #73
post #71

Earlier quoted context omitted.

And you did put at least the same amount of effort as to write this comment to report the bug to pypy devs and/or library devs right?

How often do people do that for CPython?

Less often because CPython characteristics are well known and there is no baseline to compare to.

Re: PyPy 2.0 Released

#77
post #64
post #48

Earlier quoted context omitted.

\v is your friend. http://vimdoc.sourceforge.net/htmldoc/pattern.html#/magic

I sort of prefer \V, but same difference I dunno, I haven't used it in the past, because... 1) "It is recommended to always keep the 'magic' option at the default setting, which is 'magic'. This avoids portability problems." 2) Nor do I want to type two extra characters in every damn regex! So, it only occurs to me right now, the right thing to do for me is this: the first instant I'm confused about whether \( means…

Yeah, that's basically what I do too. No \v on trivial regexes, \v on ones where there's more than one or two groups.
Post reply on HN