Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sesse__
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
811.
▲
by
Sesse__
3y ago
He pretty clearly isn't, although he probably believes himself that he is. E.g. he claims about giflib: “This is the library that renders GIFs in your browser […] Without it the modern Internet would be unrecognizable.” Except that no
812.
▲
by
Sesse__
3y ago
STP detects loops between switches, not MAC addresses moving between them (or between APs).
813.
▲
by
Sesse__
3y ago
The page tables change in a kernel context switch, whereas they don't in a user context switch. Depending on your CPU and OS, this may or may not matter; e.g., modern CPUs typically have caches that are tagged with the context (e.g. PC
814.
▲
by
Sesse__
3y ago
But not mapped-v4 sockets; it has independent IPv4 and IPv6 stacks. In any case, hopefully we don't need to write code for it anymore…
815.
▲
by
Sesse__
3y ago
Sure, that's one line and then you're done. And only if you care about very old (WinXP) or deliberately obnoxious (OpenBSD) platforms.
816.
▲
by
Sesse__
3y ago
> Instead had the approach been ipv6 only from the start, with no dual-stack, having the OS transparently deal with sockets to ipv4 devices by converting to the ipv6 mapped address (:ffff:xxxxxxx), and thus eliminating the need for dual
817.
▲
by
Sesse__
3y ago
It offers higher-level primitives than e.g. OpenSSL. Instead of the primitives “ChaCha20”, “Poly1305” and “Ed25519 signature”, you get “authenticated encryption” (implemented using ChaCha20, Poly1305 and Ed25519). You do not have to know or
818.
▲
by
Sesse__
3y ago
Or, much shorter: .foo { padding: 1rem 0; @media (min-width: 500px) { padding-bottom: 1.5rem; } @media (min-width: 800px) { padding-bottom: 2rem; } }
819.
▲
by
Sesse__
3y ago
Funny enough, when I measured IPv6 readiness/use in the world for the very first time (2008), Ukraine was on top. IIRC it moved to third as we got more data, but it still was a very surprising result. We found out much later that the r
820.
▲
by
Sesse__
3y ago
Yes, I've checked mlterm.
821.
▲
by
Sesse__
3y ago
So which ones support the ZWJ sequences correctly and fully?
822.
▲
by
Sesse__
3y ago
> Why does Unicode specifically need to include novel "innovations"? Unicode chose to get into emoji because Japanese carriers were already making their own private character sets with emoji, and Unicode has a goal of being a s
823.
▲
by
Sesse__
3y ago
The Unicode Consortium's stated direction is that they want protocols to support stickers (arbitrary images) instead of emoji. But protocols don't seem to be doing that, so…
824.
▲
by
Sesse__
3y ago
Kitty has the wrong width: https://github.com/kovidgoyal/kitty/issues/3810 It doesn't immediately overwrite the emoji with the next character, but the cursor position is off, which leads to wrapping prob
825.
▲
by
Sesse__
3y ago
I don't know of a single terminal that actually gets these ZWJ emoji sequences right. There are several terminals who will render them, but I haven't seen any actually get the width calculations correct. (E.g., https://
826.
▲
by
Sesse__
3y ago
Having read plenty of version control system logs from around the turn of the millennium (i.e. when things were _far_ less crazy than 1987), I'd wager most of it would come in the form of commits marked “implemented EGA driver, faster
827.
▲
by
Sesse__
3y ago
At my first project in my first job, there was a MockWorkerInfoServiceStubFactory. I think it was a factory for mocks of the stub for the worker info service, but it's never easy to know when to pop tokens from the start or from the en
828.
▲
by
Sesse__
3y ago
This code screams for SIMD! If you can change the prototype to take an explicit length, you could easily read and process 16 bytes at a time (the compares will give you values you can just add and subtract directly). Heck, even calling strl
829.
▲
by
Sesse__
3y ago
The SQLite optimizer is really primitive. You generally don't want to be using it as a template if you can avoid it; it's good for OLTP but can't handle many-way joins well.
830.
▲
by
Sesse__
3y ago
Generally, this is a specialist topic, so you're unlikely to find e.g. good textbooks. It depends a bit on how deep you want to go and what specific parts you're interested in, though. (Query execution is pretty much entirely sepa
831.
▲
by
Sesse__
3y ago
Multi-terabyte? Better hope you have lots of spare RAM for all those page structures the kernel has to keep.
832.
▲
by
Sesse__
3y ago
Varnish' design wasn't very fast even for 2006-era hardware. It _was_ fast compared to Squid, though (which was the only real competitor at the time), and most importantly, much more flexible for the origin server case. But it cam
833.
▲
by
Sesse__
3y ago
> The video is jarring to watch. It's well-produced, engaging, etc.; but also pretentious and overconfident. It seems to be chock-full with irrelevant "developments". Don't even try to read the YouTube comments :-) “K
834.
▲
by
Sesse__
3y ago
I looked at the video a bit more closely, and it seems he requires the symmetry around 0 (he doesn't explicitly do range reduction to positive values), so you want only odd-numbered coefficients. If so, you can do a formula of the type
835.
▲
by
Sesse__
3y ago
In this case, you know the input is one out of 16384 distinct values (originally 65536, but due to range-reduction and symmetries, you only need to consider one of them). So you can simply test them all. But in the case of the minimax polyn
836.
▲
by
Sesse__
3y ago
Why does he even care about pi/2? Shouldn't the wrapping of the input (due to the use of fixed-point) make sure that sin(pi/2) == sin(0)?
837.
▲
by
Sesse__
3y ago
FWIW, Sollya's Remez algorithm takes intermediate floating-point accuracy into account. At the very least, one should start by such a polynomial and then try to tweak it by hand, not just drag coefficients around from scratch. Numerics
838.
▲
by
Sesse__
3y ago
No idea, the user didn't specify at the time. (The range is part of a PI block within former class C space, if it's relevant.)
839.
▲
by
Sesse__
3y ago
From experience running a DHCP server: .255 in the middle of a /23 is allowed, but not accepted by Windows. .0 in the middle of a /23 is allowed, but not accepted by iOS.
840.
▲
by
Sesse__
3y ago
> Putting all the globals in a class doesn't make any difference to how much state you have. I didn't make any claims about the _amount_ of state. My claim was that “you're forced to acknowledge and understand the complexi
More ›