Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbolino
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
151.
▲
by
kbolino
11mo ago
There's no sweet spot I've found. I don't work for Cloudflare but when I did have a status indicator to maintain, you could never please everyone. Users would complain when our system was up but a dependent system was down, s
152.
▲
by
kbolino
11mo ago
While it has nothing to do with how responsive your mouse feels, as that is measured in milliseconds while CAS latency is measured in nanoseconds, there has indeed been a small regression with DDR5 memory compared to the 3 previous generati
153.
▲
by
kbolino
11mo ago
Disclaimer: This is only an educated guess based upon public info. Also, it's impossible to make something truly unspoofable, but it isn't that hard to raise the bar for spoofing pretty high. There are two additional concepts buil
154.
▲
by
kbolino
11mo ago
There's actually a lot of combinations of (domain, type, protocol) that are available. It is not always the case that the protocol implies the type. In IP land (domains AF_INET and AF_INET6), we have the well known UDP and TCP protocol
155.
▲
by
kbolino
11mo ago
There are some crossed wires here. AES-NI is x86-specific terminology. It was proposed in 2008. SHA acceleration came later, announced in 2013. The original version covers only SHA-1 and SHA-256 acceleration, but a later extension adds SHA-
156.
▲
by
kbolino
11mo ago
Also, rather importantly, the L1 i (instruction) cache is still only 32 kB. The part that got bigger, the 48 kB of L1 d (data) cache, does not count for this purpose.
157.
▲
by
kbolino
11mo ago
Fair, this is a good example of when != is actually the right choice (instead of !==). However, on web browsers, this will log an assertion failure to the console, but it will not throw an exception. It's also not suitable for the orig
158.
▲
by
kbolino
11mo ago
Assuming assert existed, it would almost certainly be judging its value for being falsy , while the ?? operator judges its LHS for being nullish , which is a narrower category. For strings, this affects whether the empty string is accepta
159.
▲
by
kbolino
11mo ago
Also, incandescent lightbulb lifespan is reduced by repeated power cycling. Not only is the legendary firehouse bulb very dim, it has been turned off and back on again very few times. Leaving all your lights on all the time would be a waste
160.
▲
by
kbolino
11mo ago
Both stories can be true. The firms can coordinate by agreeing on a strategy they deem necessary for the future of the industry, and that strategy requires significant capital expenditures, and the industry does not get (or does not want)
161.
▲
by
kbolino
11mo ago
Go has a precise garbage collector that knows where all the pointers are. So while yes, []byte is a (fat) pointer, the GC is free to move its target to a new location, as long as it updates all the pointers to it. This means that you may ob
162.
▲
by
kbolino
11mo ago
This only wipes one copy. The GC is free to move the allocation around, and is not required to clear the old copies.
163.
▲
by
kbolino
11mo ago
I must disagree. Destructuring is nifty, but it is almost completely unrelated. The second value in any of the builtin two-value assignment forms is invariant on the type or size of RHS; it's always a boolean, and its meaning relates t
164.
▲
by
kbolino
11mo ago
Right now, type casts (called conversions in the spec) always produce a single value. The idiomatic way to have checked casts would IMO be a two-value form, as this would be consistent with type assertions, channel receives, and map indexin
165.
▲
by
kbolino
11mo ago
It's definitely not common. My US university required 2 physical education classes, but only if you were under 30 and hadn't served in the military. They may have offered marksmanship, but I just took running and soccer (aka footb
166.
▲
by
kbolino
11mo ago
A number of US states don't even require regular safety inspections. For example, in Maryland, you only get a safety inspection when selling your vehicle or transferring it in from another state. The number of people who don't use
167.
▲
by
kbolino
11mo ago
I didn't mean to imply otherwise. But, as you say, this is equally applicable to IPv4 and IPv6. There were a lot of issues solved by IPv6, but "have even more room for non-TCP/UDP transports" wasn't one of them (and
168.
▲
by
kbolino
11mo ago
IPv6 uses the exact same 8-bit codes as IPv4. It uses them a little differently -- in IPv4, there is one protocol per packet, while in IPv6, "protocols" can be chained in a mechanism called extension headers -- but this actually m
169.
▲
by
kbolino
11mo ago
> I think cross compilation has gotten a lot better so there is basically no need for [bytecode] today. Have you never written a plugin or a mod? Yes, AOT and cross-compilation are very good nowadays. This only replaces one of bytecode&#
170.
▲
by
kbolino
11mo ago
All U.S. bills in common circulation (all denominations except $2) have been different colors for 20 years.
171.
▲
by
kbolino
11mo ago
Yeah, the problems seem to largely be ergonomic. As another example, the exception type hierarchy doesn't pull enough weight. Exception is the base class of all checked exceptions and RuntimeException is the base class of all "ord
172.
▲
by
kbolino
11mo ago
There is a middle ground that I think the post glosses over, which would be to split apart the Result<T,E> value whenever its two cases differ significantly in size. You'd also have to track the discriminant of course. Basically,
173.
▲
by
kbolino
1y ago
But the argument is not about adding exceptions to the language. It's about borrowing a technique from languages that do have exceptions (and Rust's own panic unwinding) to implement Rust's existing error handling without m
174.
▲
by
kbolino
1y ago
"Comments should get more thoughtful and substantive, not less, as a topic gets more divisive." https://news.ycombinator.com/newsguidelines.html
175.
▲
by
kbolino
1y ago
There are two issues here. If the CDN is so poorly interconnected with Vodafone that there's one bottlenecked link, then it's not really accomplishing its job, at least as far as "inside of Germany" is concerned. It migh
176.
▲
by
kbolino
1y ago
It is mostly the middle, and not either of the endpoints, that is the real problem. You have a 1Gbps link, the Netflix DC you're reaching probably has multiple links with aggregated bandwidth measured in Tbps, but at some point in betw
177.
▲
by
kbolino
1y ago
> Go assembly functions are also not allowed to use the register-based calling convention, so all arguments are passed on the stack, and the compiler will never inline it. Even if you had access to the register convention (which you kind
178.
▲
by
kbolino
1y ago
You're both stating things that are a bit beside the point. Pure Go code uses registers to pass function arguments whenever possible. Large structs and/or numerous arguments can still spill onto the stack, though. FFI (cgo) uses w
179.
▲
by
kbolino
1y ago
SQLite is fairly fork-resistant due to much of its test suite being proprietary: https://www.sqlite.org/testing.html
180.
▲
by
kbolino
1y ago
An "immutable hole" just sounds like a "revocation marker" without an accompanying message, so I don't think we're really asking for different things, here. Nevertheless, ordinary tag deletion -- what git nativ
More ›