Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pcwalton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
391.
▲
by
pcwalton
3y ago
It's not a few dozen lines of code because of, among other things, the case in which one thread allocates a lot of memory that is then sent to another thread to be freed. This actually happens more frequently than you'd think, bec
392.
▲
by
pcwalton
3y ago
On macOS iMessage is scriptable in various ways (both officially supported and unsupported), so the security argument doesn't hold water to me. It's a business decision.
393.
▲
by
pcwalton
3y ago
> -While Ada is not as memory safe as Rust it's a lot more memory safe than popular languages Popular languages typically have garbage collectors and are memory safe. If a language is not memory safe, like Ada, then it's automa
394.
▲
by
pcwalton
3y ago
> Almost like Firefox is optimizing for just shoveling as much CPU power and RAM as possible into it's gaping, bloated maw, not caring about anything else. That is of course not the case.
395.
▲
by
pcwalton
3y ago
Don't use a fork and don't customize your user.js. It is exceedingly unlikely that excess power consumption is caused by anything you can easily tweak. Instead report issues to Mozilla.
396.
▲
by
pcwalton
3y ago
Don't use Fasterfox. It tweaks many settings that frequently result in performance regressions. The default networking-related settings are set the way they are for a reason.
397.
▲
by
pcwalton
3y ago
The parent comment isn't saying that locating in Trump Tower indicates support for anything. What it's saying is that the vast majority of people will think of the former president every time they walk into a building named Trum
398.
▲
by
pcwalton
3y ago
But you have to use operator overloading to use smart pointers. This isn't a pedantic nerd snipe; the point is that operator overloading really is indispensable in certain contexts.
399.
▲
by
pcwalton
3y ago
Seconding this. Nikita has been a fantastic help in reviewing my LLVM contributions over the past couple of years.
400.
▲
by
pcwalton
3y ago
I disagree with the ergonomics being poor. C++ SSE intrinsics are significantly worse, with ugly underscores and names that are hard to remember.
401.
▲
by
pcwalton
3y ago
"Not having C++ anywhere in the stack" is not a goal of the C language or any major implementation I know of. The two major OSS C compilers, GCC and Clang, are both C++ codebases.
402.
▲
by
pcwalton
3y ago
The author isn't saying margin collapse should go away entirely (though, having had to implement it, it sure is tempting to get rid of the feature). Rather, they're talking about the situation in which a div is empty and has top
403.
▲
by
pcwalton
3y ago
One of the biggest problems with Mercurial is that they took a long time for histedit to become a usable workflow. I speculate (without any evidence, so this could be entirely wrong) that this is because many Mercurial contributors preferre
404.
▲
by
pcwalton
3y ago
You've successfully formulated the reasoning behind the legal "public figure" [1] standard from first principles. Elon Musk, especially when speaking in his capacity as owner of X, is unquestionably a public figure in a way t
405.
▲
by
pcwalton
3y ago
This is a good point. Null pointers are the billion-dollar mistake, but the real billion-dollar mistake is having "zero values" in your language. In addition to the problems with null pointers, zero values make loose constructor s
406.
▲
by
pcwalton
3y ago
Yes, Firefox did the right thing here, and it's arguably a bug in Chromium that it exposed SAPI to the Web. As a general rule, you shouldn't expose platform-specific APIs to Web content, if for no other reason than to avoid Web co
407.
▲
by
pcwalton
3y ago
I doubt that a hypothetical version of Rust that avoided monomorphization would compile any faster. I remember doing experiments to that effect in the early days and found that monomorphization wasn't really slower. That's because
408.
▲
by
pcwalton
3y ago
Interesting, I thought about this in the past but assumed it would be too slow. Do you know of any titles that have shipped with that technique?
409.
▲
by
pcwalton
3y ago
> And this also means statutory maximum sentences come into effect, and I personally don't know how that interacts when you've got multiple charges. The judge can order consecutive sentences for multiple charges, making the eff
410.
▲
by
pcwalton
3y ago
I suspect he'll appeal. When you're looking at life in prison, as Bankman-Fried is, there's no reason not to make the Hail Mary play.
411.
▲
by
pcwalton
3y ago
They use the same compiler backend and you can generate pretty much any LLVM IR you want with Rust. You can argue about the performance characteristics of the kind of code the language encourages you to write, but a blanket statement like t
412.
▲
by
pcwalton
3y ago
> "We're pretending security is not an issue." has been the feedback every time this is raised with the Cargo team. Literally nobody has said this. > The attitude of "Rust is memory-safe, so we don't need any
413.
▲
by
pcwalton
3y ago
The guidelines ask you not to accuse others of being shills.
414.
▲
by
pcwalton
3y ago
I suspect that it's two things: (1) the relatively good support for Wasm in Rust; (2) the Cargo ecosystem. In the case of Ruffle, the combination of the two seems particularly effective.
415.
▲
by
pcwalton
3y ago
I would argue that a world that didn't have JS would make these types of attacks more common, not less common. Because in that world, people would have to download desktop apps for everything, which would make people used to download
416.
▲
by
pcwalton
3y ago
Though now there's `SA_RESTART`, so Unix ended up doing the "right thing" eventually. There's a lesson here, I think: "worse is better" is good advice when it lets you ship and get software into the hands of cu
417.
▲
by
pcwalton
3y ago
Leaving aside the fact that I don't know of any of the largest Web properties that use tainting: tainting, like any other type system property, doesn't mean much if the language isn't memory safe.
418.
▲
by
pcwalton
3y ago
It generally doesn't make much of a difference for sentencing how many counts there are; like charges group under the US Sentencing Guidelines.
419.
▲
by
pcwalton
3y ago
> pre-elon there were disgusting amounts of pedophiles on twitter, and they basically went ignored for years, apparently the old moderation team like that content There is absolutely no evidence for this, and this kind of slander is the
420.
▲
by
pcwalton
3y ago
Debating what the "core issue" is may be an interesting philosophical debate, but at the end of the day, using a memory-safe language would have prevented this issue from being exploitable.
More ›