Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
orlp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
661.
▲
by
orlp
5y ago
I think a good analogy is the parable of the cobra problem. A city suffers from too many cobras so the government puts a bounty on each dead cobra you hand in. The result? People massively breed cobras to hand them in. The government realiz
662.
▲
by
orlp
5y ago
That's wrong in multiple ways. You want lst = list(range(0, 20, 2))
663.
▲
by
orlp
5y ago
> pouring high order of millions All I can think of is dr. Evil saying "one MILLION dollars".
664.
▲
by
orlp
5y ago
> Even puny single-precision floating point operations are accurate to something like 7 decimal digits and have a dynamic range of hundreds of dB. According to the spec sheet, the appliance only uses 6-bit inputs and 8-bit outputs, so t
665.
▲
by
orlp
5y ago
> What I find most exciting about it is that a NeRF represents images as neural nets, one neural net for each image (in the OP paper generalised to image + deformations). By evaluating the net at various pixel coordinates it gives the co
666.
▲
by
orlp
5y ago
Tell me, where does magenta lie on this proposed light frequency spectrum? What about black, or white? Brown? Is the dress black and blue or white and gold? There's much more to colour perception than just light frequency + psycho-cult
667.
▲
by
orlp
5y ago
Taking in a generic T: Read is the recommended way to accept streaming inputs. It is up to the user whether they want to buffer or not. You can pass in a BufReader into a T: Read no problem, and it will buffer any reads. That the reads in
668.
▲
by
orlp
5y ago
Integer overflow is not UB in C, only signed integer overflow. Unsigned integer overflow is defined to be modulo 2^w. And there are plans in C2x or C23 IIRC to make signed integer overflow well-defined in terms of two's complement too.
669.
▲
by
orlp
5y ago
Mill aluminium under inert gas into a powder and then release the pure unoxidized powder into the air. My money is on some fireworks occurring.
670.
▲
by
orlp
5y ago
> and gotten an oxide layer Aluminium has an oxide layer the second it comes into contact with air.
671.
▲
by
orlp
5y ago
When I download that PNG file it is 10785 KB. If I re-encode it using FLIF 0.4 (to my knowledge still the best off-the-shelf lossless image compression) it is 7368 KB. That's 57% of the size of qoi, quite a lot smaller. You pay for it
672.
▲
by
orlp
5y ago
Looking through some of these URLs through Google cache, a lot of these contain verbatim copies of the problem text. Fair enough, legally speaking, if you are the copyright holder. However, in the DMCA itself HackerRank asks for the removal
673.
▲
by
orlp
5y ago
This reddit post is such a shame, and I wish people would stop referring to it. The benchmarking code is not apples to apples at all in many places. E.g. to benchmark removals they used `container.remove(index)` for data structures that sup
674.
▲
by
orlp
5y ago
Hi, author of slotmap here if anyone has any questions. Slotmap is essentially the Vec + indices solution, while allowing memory to be reused. It is still completely safe, as it automatically versions each slot, and checks the version conta
675.
▲
by
orlp
5y ago
Regarding (b), a non-constructive proof of P=NP does not exist. Because such a proof is immediately constructive. You can create an enumeration over all Turing machines, and run each of them on the problem, 'diagonally', so we per