Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sbi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
sbi
14y ago
This is a pretty solution, and it gives you the probability generating function for free: by some power series manipulation, the pgf of the number of draws needed is g(z) = 1 + (z-1)*exp(z). So you can show fairly easily that Var(draws need
32.
▲
by
sbi
14y ago
I love spicy food, but I find Sriracha almost sickly-sweet. Anyone else prefer El Yucateco or Salsa Valentina?
33.
▲
by
sbi
14y ago
I don't want to put words in hazov's mouth here but Gödel is a total nonsequitor here. This thread isn't about formal set theory. The question is not whether mathematics can be axiomatized in a satisfactory way in first-order logic, but wha
34.
▲
by
sbi
14y ago
I respectfully beg to differ that "mathematics isn't about numbers or even proofs." Why are the math books on my shelves full of numbers and proofs? What was it I was wasting my time on in graduate school? This sort of definition (really a
35.
▲
by
sbi
14y ago
Well, lround(exp(lgamma(...))) is just about the worst way to use lgamma. If long ints are signed 64 bit integers, then the largest factorial you can store is 20!. You might as well look it up in an array. But you frequently need
36.
▲
by
sbi
14y ago
This is an old chestnut. Mathematical notation is terse because mathematics doesn't consist entirely of notation! Look at any book or research paper; you'll find a great deal of text surrounding equations. Comparing this to code is nonsensi
37.
▲
by
sbi
14y ago
The Euler characteristic of a compact orientable genus g surface X is nonzero if g is not 1 (the general formula is 2-2g), so the Euler class e(TX) of the tangent bundle TX of X is nonzero. This implies that TX cannot have a continuous nowh
38.
▲
by
sbi
14y ago
This reminds me of songza from several years ago.
39.
▲
by
sbi
14y ago
How relevant are numerical benchmarks when comparing languages? In practice you'll probably use BLAS, LAPACK, etc. for numerical computing and get on with it; you're unlikely to write code that is both faster and numerically stable.
40.
▲
Undefined behavior contest winners
(blog.regehr.org)
4 points
by
sbi
14y ago
|
0 comments
41.
▲
by
sbi
14y ago
On my E520, I was getting about 2 to 2.5 hours under similar conditions (I have the 6 cell battery, however) in Debian; under Windows I get 4-5 hours.
42.
▲
by
sbi
14y ago
What is the battery life going to be like? I grudgingly installed Windows 7 on my (Lenovo) laptop after using Unix exclusively for 15 years simply because the battery lasts twice as long on Windows. For what it's worth, I bought a Dell Insp
43.
▲
by
sbi
15y ago
Thanks for pointing that out. I would have guessed that the original form would desugar to map(lambda i: (lambda: i), xrange(10)) but apparently it doesn't.