Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbolino
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
211.
▲
by
kbolino
1y ago
The type is named atomic, but atomicity is not its only useful property. The atomic types also give control over the memory ordering, defaulting to sequentially consistent (seq_cst, the strongest). Without memory order guarantees enforced b
212.
▲
by
kbolino
1y ago
Mirrors. Lots of small, volunteer-run, low/zero-budget open-source projects cannot afford to pay for the server/CDN bandwidth they would need to host all their binary artifacts (ISOs, packages, etc.). They end up relying on mirror
213.
▲
by
kbolino
1y ago
This has been a very informative discussion, so thank you for that. I did want to point out, though, that both languages have other (compound) value types than just structs. Go has value-based arrays, and C# has value-based tuples. It looks
214.
▲
by
kbolino
1y ago
Most of that is macOS and ChromeOS, not Windows.
215.
▲
by
kbolino
1y ago
Maybe I picked the wrong wording--I don't mean to diminish the ambitions or scope of Valhalla--but I definitely think the decision to eschew value types at the start has immense bearing on the difficulty of adding them now. Java's
216.
▲
by
kbolino
1y ago
Java's biggest weakness in this area is its lack of value types. It's well known, Project Valhalla has been trying to fix it for years, but the JVM just wasn't built around such types and it's hard to bolt them on after
217.
▲
by
kbolino
1y ago
> I couldn't care less if someone wants to spend the time and effort to intercept and change pages from a blog I read. I do not understand why so many people think having, say, zero-day exploits served to them is not a problem. The
218.
▲
by
kbolino
1y ago
It would have been nice to have been able to keep eNULL around, but a) it was basically never used in practice and b) the way it worked practically guaranteed it was impossible for the average sysadmin to get right. There's never reall
219.
▲
by
kbolino
1y ago
> but websites over HTTP still work fine The best attack surfaces always do. If I'm a smart attacker, why would I impair your experience (at least, until I get what I want)? It's better to give you a false sense of security. Th
220.
▲
by
kbolino
1y ago
I think this is the classical explanation and set of examples, which only really explain why HTTPS should be used on "important" websites. But HTTPS should be used on every website and you need a different explanation/examp
221.
▲
by
kbolino
1y ago
Windows containers are interesting. Windows--like most other operating systems--mediates interaction between applications and the operating system though libraries (specifically, user32.dll and kernel32.dll). Whereas, Linux provides a stab
222.
▲
by
kbolino
1y ago
And not caring as much about those things doesn't mean I don't understand that video games are a visual medium. This is just one type of graphics. And focusing too heavily on it is not going to be enough to keep the big player
223.
▲
by
kbolino
1y ago
The bigger problem was how fast Linux evolves. Windows kernel development is glacial by comparison. Keeping up with every new thing in Linux was tantamount to maintaining a second operating system.
224.
▲
by
kbolino
1y ago
I don't know what these words mean to you vs. what they mean to me. But whatever you call the visual quality that Baldur's Gate 3 , CyberPunk 2077 , and most flagship AAA titles, etc. are chasing after that makes them have "
225.
▲
by
kbolino
1y ago
Depending on the game and the circumstances, I'm getting some cases of 20-40 minutes to compile shaders. That's just obscene to me. I don't think stutter is better but neither situation is really acceptable. Even if it was o
226.
▲
by
kbolino
1y ago
Maximal "realism" is neither the only nor even necessarily the best use of that medium.
227.
▲
by
kbolino
1y ago
I don't see this mentioned anywhere else, but Go may start experimenting with rearranging struct fields at some point. The marker type structs.HostLayout has been added in Go 1.24 to indicate that you want the struct to follow the plat
228.
▲
by
kbolino
1y ago
This incident is known as the Gimli Glider and was actually due to multiple failures before the pound-kilogram issue (and the backdrop of Canada's then-recent metrication) even became relevant: https://en.wikipedia.org/
229.
▲
by
kbolino
1y ago
It was my understanding (which could definitely be wrong) that their OpenGL support is both behind the times--which is impressive since OpenGL has received no major new features AFAIK in the past decade , the topic of this HN post notwiths
230.
▲
by
kbolino
1y ago
I do think the author's ignorance was a bigger problem--both in the sense of he should have known better and also in the sense that the PSL needs to be more discoverable--than anything Google('s automated systems) did. However,
231.
▲
by
kbolino
1y ago
I don't think any major platform that ever supported OpenGL or OpenGL ES--including desktops, smartphones/tablets, and web browsers--has actually removed it yet. Apple will probably be the first to pull the plug, but they've
232.
▲
by
kbolino
1y ago
Well, you're responding to him, so questions or suggestions are probably better than speculation. My comment about vitriol was more directed at the HN commenters than Eric himself. Really, I think a discussion about web infrastructure
233.
▲
by
kbolino
1y ago
The good news is, once known, a lesson like this is hard to forget. The PSL is one of those load-bearing pieces of web infrastructure that is esoteric and thanklessly maintained. Maybe there ought to be a better way, both in the sense of a
234.
▲
by
kbolino
1y ago
Putting user content on another domain and adding that domain to the public suffix list is good advice. So good, in fact, that it should have been known to an infrastructure provider in the first place. There's a lot of vitriol here th
235.
▲
by
kbolino
1y ago
I can't find any claim anywhere else about the [0]byte trick, and in fact my own experiments in the playground show that it doesn't do anything. If you embed an AlignedBuffer in another struct type, with smaller fields in front of
236.
▲
by
kbolino
1y ago
As far as I can tell, in the current implementation, reserve_exact is indeed exact. The only situation in which the capacity after calling reserve_exact will not equal length + additional is when it was already greater than that. Even if th
237.
▲
by
kbolino
1y ago
Notably, some of the abstraction is actually there to prevent the compiler from generating a lot of redundant code. The process of monomorphization (turning polymorphic generic code into usable machine code for particular types) can serio
238.
▲
by
kbolino
1y ago
I take this to mean "trust and safety queue", i.e. the list of content that has been flagged for moderation review.
239.
▲
by
kbolino
1y ago
Here's a non-parallel and unoptimized implementation of that operation in Go: func _mm512_permutex2var_epi8(a, idx, b [64]uint8) [64]uint8 { var dst [64]uint8 for j := 0; j < 64; j++ { i := idx[j] src := a
240.
▲
by
kbolino
1y ago
The latter: https://github.com/golang/build/blob/master/cmd/gopherbot/go... (found via https://go.dev/wiki/gopherbot )
More ›