Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sesse__
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
931.
▲
by
Sesse__
4y ago
Shannon's estimate was based on very primitive methods; by generating random positions and using fairly advanced methods to see whether they are legal or not (ie., can you construct a proof game for it, or prove that it could never hap
932.
▲
by
Sesse__
4y ago
Win32 has an allocator (HeapAlloc), and it is similarly slow and low-concurrent. Even if you enable the newer stuff like LFH.
933.
▲
by
Sesse__
4y ago
Just wait until you try to use it from multiple threads at the same time!
934.
▲
by
Sesse__
4y ago
Opus feels like it solved the problem of audio compression. Even if someone came out with a codec that gave same quality at half the bitrate, I don't think I would care much; I just want Opus in all my devices, everywhere. :-) It'
935.
▲
by
Sesse__
4y ago
The amazing thing is how well JPEG performs for something that is pretty simple and worked (although very slowly) on 1992 hardware. (I don't mind restart markers, BTW, but stuffing definitely was a mistake.) Look at the state of the ar
936.
▲
by
Sesse__
4y ago
Except the US courts rejected this concept (on appeal); see https://en.wikipedia.org/wiki/Sega_v._Accolade .
937.
▲
by
Sesse__
4y ago
The short answer: It's complicated. But to give answers at face value: 1. Unfortunately, in most cases, nothing. GPL violations are rampant, and usually without serious consequence for the infringer. 2. Like any other copyright violati
938.
▲
by
Sesse__
4y ago
I've seen PHP applications use 30% of their CPU in the “realpath cache”, which at the time was a super-slow (O(n²) in this case) home-grown hash table for caching the result of realpath(), which was called all the time because someone
939.
▲
by
Sesse__
4y ago
Strictly speaking, it's because Discord goes out of their way to block mobile browsers.
940.
▲
by
Sesse__
4y ago
Or you can assume N is less than 2^31, and clear out the top bit in the final answer (because that's the only place the wrong values can come from). Which is admittedly pretty hackish, but… Edit: The simplest solution is probably just
941.
▲
by
Sesse__
4y ago
> I would not have though to use this formula. The sum of the integers grows as the square of n so if n is anything but small you will overflow and get an erroneous answer. As long as you can get wraparound semantics, the overflow is act
942.
▲
by
Sesse__
4y ago
Or, just maybe, I am right. https://gcc.godbolt.org/z/qhPa1xxdq
943.
▲
by
Sesse__
4y ago
-0.0 + x = x, even if x should be -0.0 or +0.0. +0.0 + x, on the other hand, is not always equal to x.
944.
▲
by
Sesse__
4y ago
> The `inline` keyword usually isn't necessary anymore to get the compiler to inline stuff, the compiler has some pretty good heuristics for determining whether to inline a function call or not. Not really. The heuristics are pretty
945.
▲
by
Sesse__
4y ago
It is obvious if you think of what a garbage collector is; it's a simulation of having infinite memory. So objects in a GC world live forever, and thus are never destroyed. (Of course, behind the scenes, the garbage collector will _dea
946.
▲
by
Sesse__
5y ago
The IIR oscillators quickly deterioritate, though. A more accurate way is to do something CORDIC-inspired: Start with a 2D point in [1,0]. Every iteration, you rotate it by (2pi f T) radians (where f is the frequency you want, and T is 1&#x
947.
▲
by
Sesse__
5y ago
Interestingly enough, I believe there's now no official way of playing UHD-BR on modern Intel systems (ie. you'd have to use an AACS/BD+ crack), since all certified players needed SGX. I don't know what this means for 4K
948.
▲
by
Sesse__
5y ago
> Generally there is only a single shared FPU/AVX/SSE unit doing the math over two hyperthreads. Hyperthreading does in general share units (both ALU and others); that's what hyperthreading is. Apart from that, it really d
949.
▲
by
Sesse__
5y ago
Debian's vote system does not use instant runoff voting (which is eliminating the lowest options one by one). Instead, it uses Condorcet voting, which picks the options defeating all the others in pairwise competition. (If no such opti
950.
▲
by
Sesse__
5y ago
But those are paid for by your bank (by charging high interest rates on the percentage of people who don't pay right away), not by MC/VISA.
951.
▲
by
Sesse__
5y ago
Even your 2.9% number is probably too high. Perhaps for AmEx or in super-high-risk situations you need to pay that kind of fees, but for regular MC/VISA in developed countries, even a medium-sized business can get below 1%. Large compa
952.
▲
by
Sesse__
5y ago
Not so strange, as they were never intended to be used for compilers to begin with (you'd write assembler code by hand). The basic idea with having 80-bit internal precision is that you could load your 64-bit values from RAM, compute o
953.
▲
by
Sesse__
5y ago
MMX isn't a successor to x87, though; it only happens to share its registers, because that allowed them to work without changing the OS. It does integer math only. SSE was the first Intel x86 vector instruction set to do single-precisi
954.
▲
by
Sesse__
5y ago
On the other hand: If you have those 100 lines, it's one library less you have to think about and carry around.
955.
▲
by
Sesse__
5y ago
https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples ? In any case, they generally fill different niches. FFmpeg is, generally, a library containing set of A/V codecs and (de)muxers. (Ther
956.
▲
by
Sesse__
5y ago
Well, use TLS and every TCP-using application is already secured.
957.
▲
by
Sesse__
5y ago
You need to have application-level checksums anyway, since pretty much every router or switch these days will recalculate checksums on all layers (they need to if routing the packet, and since pretty much all COTS chipsets can do L3, they d
958.
▲
by
Sesse__
5y ago
The article is clear that it's about TSO: > Modern network interfaces perform segmentation offloading, meaning that much of the work of creating individual packets is done within the interface itself. Making segmentation offloading
959.
▲
by
Sesse__
5y ago
PMTUD on the Internet, sadly, does not work anymore. It was wonky for a few years, then totally died when AWS and the other cloud providers started blocking all ICMP in the default configuration. (It is also notoriously hard to get to work
960.
▲
by
Sesse__
5y ago
There's never one simple explanation, but I'll offer this one: High relative status of winter sports. If you're a top endurance talent in Norway, odds are you'll go into cross-country instead of running.
More ›