Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pcwalton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
511.
▲
by
pcwalton
4y ago
The problem here is that performing the optimization can change the semantics of the program, if you consider order of memory allocation to be part of the semantics. If the object you're creating itself has memory allocations within it
512.
▲
by
pcwalton
4y ago
No. Lots of people are happily running Rust in production and getting significant value from it.
513.
▲
by
pcwalton
4y ago
> Him being the second largest donor to the Democratic Party will really test the rule of law. Does it apply to the powerful? We’ll see. Bernie Madoff was a large donor to the Democrats and it didn't help him one bit. I see no reaso
514.
▲
by
pcwalton
4y ago
The explanation is in the article. Twitter's policy changes around hacked materials didn't apply retroactively, so it didn't affect the suspension of the New York Post's account, which occurred because of violations of t
515.
▲
by
pcwalton
4y ago
"Naming and shaming" and firing people for something that we now all agree didn't happen? The claim was that articles about Hunter Biden's laptop were disallowed from Twitter until 6 months after the election. This is fa
516.
▲
by
pcwalton
4y ago
Nobody in the comment chain was talking about left-wing vs. right-wing ideology. I get that Musk is a partisan figure now, but this thread isn't going to get any better by turning it into yet another ideological battle.
517.
▲
by
pcwalton
4y ago
Can you explain what the difference is between a standard and a reference?
518.
▲
by
pcwalton
4y ago
Fascinating, thanks a bunch for looking into this. Benchmarking is hard!
519.
▲
by
pcwalton
4y ago
Looking at Rust vs. Zig, you have the FLAGS register in a bitfield for Zig but it's separate bools for Rust. This is probably making your Rust code slower because the CPU can't set multiple flags at once. I'm also wondering i
520.
▲
by
pcwalton
4y ago
Aside from the fact that the accuracy of that book has been seriously questioned, your bringing it up doesn't refute what you were replying to. You need to have committed a crime for parallel construction to apply. Yes, there are a lot
521.
▲
by
pcwalton
4y ago
It is not "just as much a problem in the US". China's treatment of dissidents is far, far worse than the US's. It's not even close. Every reputable political ranking organization, from Freedom House to The Economist
522.
▲
by
pcwalton
4y ago
Completely uncomparable. This is a great example of why CVE counts are a useless metric.
523.
▲
by
pcwalton
4y ago
CHERI doesn't do anything for use-after-free. It's basically a bounds checking solution.
524.
▲
by
pcwalton
4y ago
djb didn't succeed with qmail. It had a security-sensitive overflow on 64-bit, and djb's excuse for why it doesn't count is unconvincing.
525.
▲
by
pcwalton
4y ago
Your desktop that you're using to post this is likely using GPU acceleration to composite your windows. Not having GPU acceleration for graphics is a killer with today's HiDPI displays. The CPU generally can't keep up, and ev
526.
▲
by
pcwalton
4y ago
Game developers do not, as a rule, have "overinflated salaries". They generally work below market rate.
527.
▲
by
pcwalton
4y ago
> Proximity to white people isn't a human right. This is literally a defense of segregation.
528.
▲
by
pcwalton
4y ago
> The author isn't a rando! This is a tenured professor of philosophy at a major university. You know, writing like a high school sophomore on a message board. Man, that's disappointing. I like Prof. Huemer's writings on f
529.
▲
by
pcwalton
4y ago
As the target of the barb (which I don't care about--I don't even know what a "coomer" is and I don't care to research it), I flagged this submission. The whole thing is just drama and isn't appropriate for HN.
530.
▲
by
pcwalton
4y ago
Yes, I'm using the term normal in the usual graphics sense of a vertex normal, as the average of the normals of the incident edges. It's the Tiller & Hanson 1984 approach.
531.
▲
by
pcwalton
4y ago
For reference: The quick and dirty solution to make an offset curve of distance l is to take the control cage of the original curve (i.e. the polyline you get by connecting every Bézier control point in sequence) and push out the points t
532.
▲
by
pcwalton
4y ago
The easiest way to understand an offset curve is that it's one side of the shape you get by "stroking" along the source curve, in the SVG sense. Join two offset curves together (one for each side), cap off the ends somehow, a
533.
▲
by
pcwalton
4y ago
> That's just the reality of low level programming in 2022 -- it can often only be done in non-memory-safe languages. That isn't true. You want to use a language that is more "explicit and simple". That's your pr
534.
▲
by
pcwalton
4y ago
Rust is serving billions of users right now. It's far past the "experiment" stage and has proven itself.
535.
▲
by
pcwalton
4y ago
> We've been through that. Those are syntactically delineated unsafe features for C interop. Rust has them, too. And again we're assuming that the ones we went over in the previous thread are all there is. I found some more: @i
536.
▲
by
pcwalton
4y ago
The point is that Zig's choice around memory safety makes its language design principles significantly outside the consensus around what PL design should be.
537.
▲
by
pcwalton
4y ago
Except Rust? We can't ignore the fact that Rust has shown that memory safety is not incompatible with low-level semantics. (Of course, Ada, Cyclone, CCured, etc. showed this much earlier than Rust.)
538.
▲
by
pcwalton
4y ago
> I didn't claim that it is. I said it has a good memory safety story, i.e. mechanisms that soundly guarantee some kinds of memory safety, as well as a design that makes it relatively easy to help write correct programs. Zig doesn&#
539.
▲
by
pcwalton
4y ago
It's not an extreme position. Most languages in wide use, and virtually all new languages, are memory safe. Zig is an extreme outlier in this regard.
540.
▲
by
pcwalton
4y ago
> Zig has a pretty good memory safety story No, Zig is simply not memory safe. That's a property of a programming language that has a definition. Zig does not meet that definition. > I find it funny that fans of a language of a n
More ›