HN user

z_open

486 karma
Posts0
Comments143
View on HN
No posts found.
Small Penis Rule 17 days ago

I can't imagine judges would normally except this especially since it seems to be a known way to skirt law.

[dead] 1 month ago

What about it? It was also exposed much more publicly than this.

Why is that NaN handling sensible? I don't think it makes sense to say log(-1) equals log(-2). Mathematically it isn't true and your implementation would say it's true only because of limitations in IEEE754.

Lots of bad advice. Using unsigned for normal integers when you know they will be positive does worse for optimization, not better. Also for (;;) {} is convention because older compilers would give warnings with while (1)

I stopped reading there.

Microsoft PowerToys 11 months ago

Tried it and realized it was gimped compared to the Linux tools it was trying to emulate. Monopolies will always be playing catchup with basic functionalities people have done for free because they make sense.

They're not acting like idiots though?

And they're trying to raise awareness that Microsoft helps Israel surveil and attack Palestinians, not raise awareness that there is a war going on.

Your comment is a typical one that protests should be less disruptive, but only disruptive protests have historically been effective.

Zig's Lovely Syntax 12 months ago

Even if we ignore solutions other languages have come up with, it's even worse that they landed on // for the syntax given that it's apparently used the same way for real comments.

Zig's Lovely Syntax 12 months ago

Raw or multiline strings are spelled like this:

    const still_raw =
        \\const raw =
        \\    \\Roses are red
        \\    \\  Violets are blue,
        \\    \\Sugar is sweet
        \\    \\  And so are you.
        \\    \\
        \\;
        \\
    ;
This syntax seems fairly insane to me.

Throwing a runtime error seems like an absurd solution compared to changing the comparison operator or using an unordered_map

What's wrong with x.min < y.min || (x. min == y.min && x.max < y. max)