Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pcwalton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
211.
▲
by
pcwalton
2y ago
I don't think it really makes sense to talk about "laws" for places like North Korea, as it's not a rule of law state.
212.
▲
by
pcwalton
2y ago
I think they were all custom patterns specific to MacPaint and the Finder. The QuickDraw manual page 3-7 [1] says there are only five built-in patterns: "white", "black", "gray", "ltGray", and "d
213.
▲
by
pcwalton
2y ago
There's no good way to verify that the browser hasn't been tampered with at the moment. Web Environment Integrity was an attempt, but that was withdrawn after outcry.
214.
▲
by
pcwalton
2y ago
Widevine isn't available on 32-bit Linux, for one.
215.
▲
by
pcwalton
2y ago
The browsers are open-source, so you could just make a custom build of the browser with a patch that saves the stream, which wouldn't require the analog hole.
216.
▲
by
pcwalton
2y ago
Google has done this sort of thing before. My memory is fuzzy as to the details, but I think it was Native Client being allowlisted at the domain level to only work on Hangouts, or something like that.
217.
▲
by
pcwalton
2y ago
I don't think it would let you do anything interesting you can't already do, as it's fairly easy to trigger exceptions in Java programs (OOM, for example).
218.
▲
by
pcwalton
2y ago
But people get credit for scientific discoveries made before the technology to verify them existed all the time. Peter Higgs predicted the Higgs field in 1964 and won the Nobel Prize for it in 2013, after it was detected. The reason why the
219.
▲
by
pcwalton
2y ago
Well, Democritus' theory of matter was closer to the truth than that of Aristotle, despite both being substantially wrong. Perhaps science would have progressed faster if Democritus' ideas had persisted up to the Renaissance inste
220.
▲
by
pcwalton
2y ago
The main thing I can think of that would help here is the fact that Rust has stricter alignment requirements than C++ does. Any live reference can more or less be assumed to point to validly-aligned memory at all times, which isn't tru
221.
▲
by
pcwalton
2y ago
Rust has that too, with nalgebra if you want arbitrary-sized tensors as scientific computing wants, or with glam and similar crates if your needs are more modest as in graphics. In all cases they're SIMD-accelerated.
222.
▲
by
pcwalton
2y ago
I looked through the comments of the person you're replying to and they didn't say anything about Roe. There are all sorts of uncharitable assumptions I could make about what you might or might not believe based on your political
223.
▲
by
pcwalton
2y ago
In many cases just using a hash table and sorting the keys is faster than using a B-tree anyway. I tried switching from a separate sort to a hash table in the Bevy game engine for binning of transparent objects recently and it was a big reg
224.
▲
by
pcwalton
2y ago
I'm not even 40 and I remember it well enough.
225.
▲
by
pcwalton
2y ago
> And who loves waiting 30 minutes for Steam games to update on a slow connection? Imagine what we could pack on physical media now and mail to your door if that were still the model. I mean, say what you will about Steam's server b
226.
▲
by
pcwalton
2y ago
Eraser tool, dynamite, click anywhere.
227.
▲
by
pcwalton
2y ago
moxie and Telegram's discussion about Telegram's unorthodox security choices: https://news.ycombinator.com/item?id=6915741
228.
▲
by
pcwalton
2y ago
We'll see how well it works for those languages. I have strong doubts that it'll be very usable in practice in for example Swift. That's because the boundary between "reference-anywhere" and aliasable-xor-mutable is
229.
▲
by
pcwalton
2y ago
Other commenters have gone over many of the reasons why Go got popular, and I don't claim to know for certain, but in my view one important one is probably Rob Pike. He obviously has a well-known pedigree, he's very articulate, an
230.
▲
by
pcwalton
2y ago
Stack overflow, which is a type of allocation failure, still aborts in Zig, so it's not that simple.
231.
▲
by
pcwalton
2y ago
128-bit or 256-bit memsets via SIMD instructions are sufficient to saturate RAM bandwidth, so there wouldn't be much of a gain from having a dedicated instruction. (By the way, x86 does have a dedicated instruction--rep stosb--but comp
232.
▲
by
pcwalton
2y ago
> I think Rust is the only language which does that. Python 3 strings are enforced valid Unicode (but not technically UTF-8, as they can contain unpaired surrogates). > Packages are OK I guess, but I think other classes of tools are l
233.
▲
by
pcwalton
2y ago
> I wonder have they fixed the performance? https://www.reddit.com/r/rust/comments/bto10h/update_a_scali ... The comments point out a whole bunch of problems with that data. A better example would be
234.
▲
by
pcwalton
2y ago
> Here’s an example. Quite often I need to compute long arrays of numbers, and the problem is parallel, like multiplication of large matrices. A good way to do that is slicing the output into blocks, and computing different blocks on dif
235.
▲
by
pcwalton
2y ago
This is absolutely true. I remember Dan Luu [1] and patio11's [2] blog posts from 9 years ago and 13 years ago respectively, which were widely shared, arguing essentially that you should always prefer to join a FAANG. With FAANGs all d
236.
▲
by
pcwalton
2y ago
Yeah, I agree. Regular H-M typechecking if you don't have subtyping is actually really fast. The problem is that subtyping makes it really complicated--in fact, IIRC, formally undecidable.
237.
▲
by
pcwalton
2y ago
Automatic memory management is a synonym for garbage collection. Reference counting is a form of garbage collection.
238.
▲
by
pcwalton
2y ago
Swift has a garbage collector. Reference counting is a form of garbage collection.
239.
▲
by
pcwalton
2y ago
> I assume it's kind of like Pepe? People see the cute frog or the edgy designation of things as "slop" not knowing that's kind of a minced version of how it's actually used on 4chan. The way 4chan lingo seeps in
240.
▲
by
pcwalton
2y ago
The easiest ones to understand are the extortionists: "pay me and I'll go away" is not an uncommon tactic.
More ›