Better HN
topnewbestaskshowjobs
Log inSign up

sapiogram

922 karma · joined Aug 18, 2014 (12y ago) · 345 submissions

Submissions

comment 1y ago · link · parent

Because of what?

comment 1y ago · link · parent

Definitely agree. My theory is that Rob Pike was mentally stuck in the 90s, when C++ was still a common choice for non-performance-critical entreprise code.

comment 1y ago · link · parent

The person I responded to said that "they expected everyone to jump on the bandwagon and abandon all their legacy code".

That's not even close to what Rob Pike wrote on his blog.

comment 1y ago · link · parent

> I feel like languages like Go and Rust didn’t become C++ killers because they expected everyone to jump on the bandwagon and abandon all their legacy code

What gave you that impression? I'd say approximately 0 people from the Go community and at most 2 people from Rust expected that.

comment 1y ago · link · parent

> and then got a warrant to go to his house and found the gun.

The police claims it's the gun. That has not been proven, and the article doesn't present a shred of evidence.

comment 1y ago · link · parent

But the difference between 60hz and 120hz is instantly noticeable in a blind test, without even opening a game. That's by definition not placebo.

comment 1y ago · link · parent

If you're unhappy about their methodology, you're welcome to write productively about your specific gripes.

comment 1y ago · link · parent

I would postulate that 100% of professional (i.e. elite) competitive gamers would be able to tell the difference. See this old touchscreen demonstration: https://www.youtube.com/watch?v=vOvQCPLkPt4

comment 1y ago · link · parent

Beautiful work. Could it be worth repeating the experiment with the monitor running at a very low refresh rate, i.e. 30hz? If Wayland is always a frame slower than X11, it should be much easier to observe.

comment 1y ago · link · parent

I just hope they're able to fix their font rendering, it looks like crap on 100% DPI scaling.

comment 1y ago · link · parent

Who would the target audience be? No modern software can run with a 1000x performance loss.

comment 1y ago · link · parent

I don't think Putin would want to taint his relationship with Trump on his first week on the White House.

comment 1y ago · link · parent

Yeah, Andromeda is way too far away. The Gaia mission was custom-built to do exactly this kind of "stereo" imaging of stars in our own galaxy, but it's still not sensitive enough to cover the entire Milky Way.

comment 1y ago · link · parent

With no further context, I think good ol' UB is more likely. Every C codebase I've seen that's not scrutinized with tooling to detect UB, is full of UB.

comment 1y ago · link · parent

This rule is new, by the way. There used to be no dress code at all, and it's become increasingly strict in the last few years.

136.

Async closures in Rust have been stabilized(github.com ↗)

33 points · by sapiogram · 1y ago · 4 comments

comment 1y ago · link · parent

Judging by the mugshot, he might have been wearing the same clothes as well.

comment 1y ago · link · parent

As someone who has never used weak references in either language, what are the common pitfalls in practical usage?

comment 1y ago · link · parent

> And as if Rust itself didn't suffer from the same kind of imperfections one can find in Golang.

Which imperfections are these?

comment 1y ago · link · parent

> It would form a gaussian distribution if you pick the questions carefully enough.

Why would that be the case? The Central Limit Theorem does not apply here, because the observations (questions) are correlated with each other.

comment 1y ago · link · parent

> and then pick out 100 questions that form a Gaussian distribution. This is how IQ tests are created.

You missed an extremely important final step. People's scores on those 100 questions still aren't going to form a Gaussion distribution. You have to rank-order everyone's scores, then you assign the final IQ scores based on each person's ranking, not their raw score.

comment 2y ago · link · parent

> equivalent to people unable to grasp type coercion on JS and thus blaming the language for it (literally just use '===' and stop bitching about it).

They're not even remotely equivalent. A single eslint rule has immediately and permanently fixed this in every Javascript project I've worked on, both for me and my coworkers' code. RAII helps, but in C++, no amount of linters and language features can fully protect you.

143.

Are Golang Generics Simple or Incomplete? A Design Study(dolthub.com ↗)

1 points · by sapiogram · 2y ago · discuss

comment 2y ago · link · parent

Have you found a light theme you're happy with? Which one?

comment 2y ago · link · parent

Is there a way to adjust text contrast in light mode in Zed yet? The editor is unfortunately unusable for me, because of how washed out the colors are.

comment 2y ago · link · parent

Poor economy doesn't necessarily cause regime change, but regime changes almost always happen from an economic downturn.

comment 2y ago · link · parent

It does, everyone uses the `log` crate. But then it wouldn't be zero-dependencies anymore.

comment 2y ago · link · parent

It's paywalled, is there a way to actually read it?

comment 2y ago · link · parent

> No, because in practice that "wait until" operation will act as a memory barrier.

This is a wrong, a memory barrier would not salvage this code from UB. The read from `x` must at the very least be synchronized, and there might be other UB lurking as well.

comment 2y ago · link · parent

Has anyone measured the performance impact of the -fno-strict-aliasing flag? How much real-world performance are we really gaining from all this mess?
1
456
12