Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wging
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
64 ms
·
691.
▲
by
wging
15y ago
This doesn't work. I think it's an attempt at a closure, which you can do in the latest Python 3.x by `nonlocal i` as the first statement in the function definition... def make_counter(): i = 0 def count(): """ Increments
692.
▲
by
wging
15y ago
The link in the post to which you replied covers that; it's the section of the man page which deals specifically with differences between xargs and parallel. Having used neither of these tools before, I think two relevant lines from that li
693.
▲
by
wging
15y ago
At the risk of redundancy (I wrote my post while you posted): you're double counting (since gcd(a,b) = gcd(b,a), you needn't compute both; either tells you whether a,b have a common factor. (a,b) and (b,a) having a common factor both accoun
694.
▲
by
wging
15y ago
Not so. Given a set of N elements from which you choose k (with order not mattering, since you only care whether a given two are the same) the number of pairs is N!/(k!(N-k)!). So it's (6000000!)/(2!(6000000-2)!). We can take advantage of t
695.
▲
by
wging
15y ago
I'd love to know if the author of that generator knew that that's what (s)he was doing. That is, I like the idea of someone trying to be a bit too clever and accidentally borking their code due to their unfamiliarity with math rather more t
696.
▲
by
wging
15y ago
As a user of Sage ( http://sagemath.org/ ) I can appreciate that. Nice to have what you need at your fingertips.
697.
▲
by
wging
15y ago
>Range class: [i for i in range(10)] How does this differ from list(range(10)) (besides being highly suggestive of the power of list comprehensions)? >IMHO the latter one is way more readable and generators cover almost all the use
698.
▲
by
wging
15y ago
I should probably point out that the bit I put in single quotes is not a verbatim quote.
699.
▲
by
wging
15y ago
As a commenter on the article wrote: what about Ruby? I say this as a happy Python user. Ruby seems very similar but I'm reminded of a pg essay on language power: looking up the power curve, you see '$Language plus a bit of weird stuff th
700.
▲
by
wging
15y ago
>Both our life spans and our five senses are inadequate to the task of comprehension: The most powerful mechanism of organic change lies well beyond our everyday experience. This is mostly true, but there are some cool things ( http://e
701.
▲
by
wging
15y ago
Wasn't there something in Methods of Rationality about this? A discussion between Quirrel and Harry, if I recall correctly. The relevant thing here is not whether pg's stated motive is consistent with his actions, let alone whether reddit
702.
▲
by
wging
15y ago
Ah, thanks. I suppose I'm a bit of a fool for not just looking up Twitter's valuation. 3.75% doesn't sound so bad, even if you assume bad intent. 300M had me thinking it had to be a really significant minority share, like 40%... not keeping
703.
▲
by
wging
15y ago
How much of Twitter does that get him?
704.
▲
by
wging
15y ago
"Well-known" in a particular field doesn't necessarily mean "household name"... do you know who Tim Gowers is, for example? http://en.wikipedia.org/wiki/Scott_Aaronson A lot of people might know him from http://www.scottaaronson.com/writ
705.
▲
by
wging
15y ago
The pumping lemma is cool, but the Myhill-Nerode theorem is more powerful (as someone mentioned). I think, too, that what was meant by 'contrived' was that the pumping lemma is not really an equation. But you don't get hits if you talk abou
706.
▲
by
wging
15y ago
Stross seems to make it work. In what world is he mainstream? I'm presuming you know that Stross was the one who wrote the blog post above.
707.
▲
by
wging
15y ago
As smart as the Hacker News set may be, most people are not experts in the field and could do with a little context. Also, Aaronson's a well-known computer scientist, so this helps establish that the result's both credible and important in
708.
▲
by
wging
15y ago
Another mistake you might want to fix: >(like, matrix multplication isn't commutative, that means: A∗B≠B∗A when B and A are matrices) You want to say something like "A∗B isn't necessarily equal to B∗A when B and A are matrices." Neither
709.
▲
by
wging
15y ago
Sounds a lot like Grothendieck's metaphor of the rising sea. pdf warning: http://www.math.jussieu.fr/~leila/grothendieckcircle/mclarty...
710.
▲
by
wging
15y ago
And if he can't be told how big the surety bond has to be, then how can he put up the money?
711.
▲
by
wging
15y ago
As with all hardware predictions, I'll take this one with a grain of salt.
712.
▲
by
wging
15y ago
>loisheyf Still a work in progress, I guess.
713.
▲
by
wging
15y ago
I think the point might be that if you don't pay attention to, and think hard about why your language may/may not fail certain of those checks, then you're doing it wrong.
714.
▲
by
wging
15y ago
And that same classic, not behind a paywall -- http://www.loebner.net/Prizef/TuringArticle.html
715.
▲
by
wging
15y ago
I'm imagining some China-centric Googler seeing "Baidu Bing" and chuckling.
716.
▲
by
wging
15y ago
To some people, that big TV with pictures in it is called a computer. To you, it's probably a monitor. Are they just as right as you are?
717.
▲
by
wging
15y ago
Maybe this is too off-topic for HN, but... that's a surprisingly readable translation!
718.
▲
by
wging
15y ago
Did you mean to write '100 lines/month' up there, or is that an exaggeration for comic effect? I have little experience with bad programmers--but you seem to know enough (or think you do) to throw percentages out there.
719.
▲
by
wging
15y ago
But isn't 'moving faster on the growth curve' exactly what it means to be a natural genius? Mozart didn't pick up the violin and instantly compose symphonies, but his talent helped him pick it up at an early age. And aren't you assuming tha
720.
▲
by
wging
15y ago
This glass is twice as big as it needs to be.
More ›