Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kingkilr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
361.
▲
by
kingkilr
15y ago
hg is slower, but still totally manageable
362.
▲
by
kingkilr
15y ago
> If you stop being their customer, they will have just to live with that. That's precisely the theory behind free governments the world over, to wit: "Governments are instituted among Men, deriving their just Powers from the Consent of
363.
▲
by
kingkilr
15y ago
I see it as unlikely there'll be real consolidation, ironically for a language with a "one obvious way to do it" philosophy there many different opinions about how a framework would work. That said there is progress on consolidating some o
364.
▲
by
kingkilr
15y ago
Python is not doing what you expect here, it sees that as: y = x + (+(+(+(+x))))
365.
▲
by
kingkilr
15y ago
Eh, you work on one for long enough and you start to take it for granted.
366.
▲
by
kingkilr
15y ago
Ah, this morning someone told me that if I wanted to get serious about my constant folding I should be aware the GCC impl was XXXX LOC (in the same neighborhood as what you posted) so I assumed :)
367.
▲
by
kingkilr
15y ago
I'm assuming those are from GCC?
368.
▲
by
kingkilr
15y ago
> Ruby core (“MRI”) itself has sunk an enormous amount of time into performance improvements in Ruby 1.9, going so far as to completely rewrite the core VM from scratch. This isn't particularly accurate, my understanding is that what be
369.
▲
by
kingkilr
15y ago
I wish someone would tell him that it sucks on every other platform as well.
370.
▲
by
kingkilr
15y ago
Am I supposed to be impressed? Just about all of these are oneliners in most high level programming languages. The test of a languages expressiveness is much bigger programs.
371.
▲
by
kingkilr
15y ago
It depends, it works very well on C-like static languages, however it's basically useless for a dynamic language.
372.
▲
by
kingkilr
15y ago
Don't worry, PyPy beasts this as well, at ``n_queens(12)`` on my machine: alex@alex-gaynor-laptop:/tmp$ time python queens.py real 0m16.837s user 0m16.820s sys 0m0.000s alex@alex-gaynor-laptop:/tmp$ time pypy q
373.
▲
by
kingkilr
15y ago
Interesting, a friend of mine used to own a chain of restaurants in Chicago, recently he went out to dinner at a nice restaurant with family, he said that his sister-in-law's boyfriend had some habits that indicated a similar to the persona
374.
▲
by
kingkilr
15y ago
Software engineering, which is a largely unrelated discipline.
375.
▲
by
kingkilr
15y ago
No, I haven't timed it myself, I just know how it's implemented and what code we're generating internally. Edit: To be clear I would not advocate not using super() on account of this, as I said it'll eventually be fixed.
376.
▲
by
kingkilr
15y ago
Unfortunately on PyPy super is less efficient than refering directly to the parent classes method, however it's fixable (and will be fixed).
377.
▲
by
kingkilr
15y ago
I'm pretty sure most of the cards agreements actually forbid you from passing on their charges to the consumer.
378.
▲
by
kingkilr
15y ago
Amazon taped all of our talks, but I don't think they're for external distribution because Amazon engineers were asking questions involving internal information.
379.
▲
by
kingkilr
15y ago
Apparently PyPy still has work to do, we must insert ourselves into this list!
380.
▲
by
kingkilr
15y ago
Rubinius is using it successfully though (I think anyways, does the Ruby community have benchmarking infrastructure?)
381.
▲
by
kingkilr
15y ago
Comment I left on reddit, with my benchmark numbers for the tornado server under PyPy: http://www.reddit.com/r/programming/comments/h7cs9/cowboy_mi...
382.
▲
by
kingkilr
15y ago
Nope, multiprocessing was added to the Python standard library in 2.6, our previous releases implemented python 2.5, 1.5 implements 2.7, so it now includes multiprocessing.
383.
▲
by
kingkilr
15y ago
With the JIT totally disabled I think we're between .8-2x slower, depending on what you're doing.
384.
▲
by
kingkilr
15y ago
Last I checked we startup faster than CPython. As for early-run-performance. Startup really depends on the total amount of code you have, if you've got a few hundred lines of code the JIT's often warmed up and fast in under half a second.
385.
▲
by
kingkilr
15y ago
psycopg2 is implemented in a fork of mine: http://bitbucket.org/alex_gaynor/pypy-postgresql/ it requires compiling yourself, but works nicely (I was told by someone that this brought their script's time from 2 minutes to 8 seconds). As o
386.
▲
by
kingkilr
15y ago
Which databases? At the moment we have SQLite, Oracle (haven't tested it myself), and Postgresql. Plus whatever you can find a pure python driver for. Also, what do you mean by messaging?
387.
▲
by
kingkilr
15y ago
Yep that was the original benchmark, and I ran a PyPy vs. CPython comparison on the same code from which we can extrapolate: http://www.reddit.com/r/Python/comments/fr4w9/benchmarking_g...
388.
▲
by
kingkilr
15y ago
Faster than CPython maybe, last time someone did a benchmark of Go vs. Python webservers PyPy came out on top.
389.
▲
by
kingkilr
15y ago
Python doesn't provide an API to aio_* because they're basically useless (on Linux at least).
390.
▲
by
kingkilr
15y ago
If this interests you take a look at django-wsgi which enables you to do the same things.
More ›