Better HN
topnewbestaskshowjobs
Log inSign up

tczMUFlmoNk

754 karma · joined Mar 5, 2022 (4y ago) · 153 submissions

Submissions

comment 1d ago · link · parent

Level 9 of the first puzzle really threw me. Nice work!

comment 1d ago · link · parent

You learn this kind of necessarily on the second level, which has three green dots but auto-completes as soon as you connect any two pairs.

comment 1w ago · link · parent

"Problem" is absolutely not a shortcut for "the optimal algorithm(s)". These are important and distinct concepts in computer science.

Perhaps most obviously, one can define problems that have no correct algorithms, like the halting problem. The study and analysis of these problems is critical, and furthermore undecidable problems are themselves different (there is a hierarchy of undecidability), so it is not even the case that "all problems with no correct algorithms are equivalent".

comment 1w ago · link · parent

While "Θ(n^2.25)" is better, imho it's still misleading. Matrix multiplication is a problem that can be solved by algorithms whose running times (under various conditions) are functions. "Being Θ(n^2.25)" is a property of a function, not an algorithm, and not a problem. There are matrix multiplication algorithms commonly used whose worst-case running times are most certainly not Θ(n^2.25) (namely, all of them known before last month). One could precisely say that "an optimal algorithm for matrix multiplication has worst-case running time Θ(n^2.25)" or "optimal matrix multiplication takes time Θ(n^2.25)", though personally I think that the paper's formulation is cleanest: the matrix multiplication constant is ω = 2.25.

This may seem pedantic, but misconceptions about the meanings of big-O/Theta/Omega notation are very common (e.g., conflating them with "best/average/worst case" or other such nonsense) and they muddy the waters.

comment 1w ago · link · parent

Yes! See discussion of Impagliazzo's five worlds:

- https://en.wikipedia.org/wiki/Russell_Impagliazzo#Five_world...

- https://www.quantamagazine.org/which-computational-universe-...

- https://gwern.net/doc/cs/cryptography/1995-impagliazzo.pdf

comment 1w ago · link · parent

> During development of our public GitHub repository, xorl, an AI coding agent committed a credential that provided access to the private Hugging Face repository

My emphasis on the accountability laundering. No, "xorl" did not do this—you did. And, if "xorl" is https://github.com/togethercomputer/xorl and `togethercomputer` is together.ai, then you wrote "xorl" and are doubly responsible.

If five years ago I had said, "During development of our public GitHub repository, my computer decided to commit a credential", this would have been immediately recognized for the embarrassing abdication of duty that it is. So, too, should this be now.

comment 1mo ago · link · parent

Some projects, like CPython, collect changelog entries as individual files with random names in a dedicated directory. Then, a script assembles the changelog at release time. I always thought this was a nice and elegant solution: in some sense, a changelog is a list with no special merge handling, but a directory is a list (of files) that does have special merge handling, so you just use that as your substrate.

comment 1mo ago · link · parent

I don't disagree with your general thesis, but I don't think it's right to say that defining behaviors like dereferencing a null would require a null check before every dereference. For example, Java defines the behavior of dereferencing null—it throws a `NullPointerException`. My understanding is that JVMs implement this by (a) representing Java `null` references as the zero pointer, (b) mapping the zero page with write permission disabled, so that accesses are guaranteed to segfault, and (c) trapping `SIGSEGV` to translate that back into a Java exception.

(Here's a link with a bit more detail: https://courses.cs.vt.edu/cs3214/spring2026/questions/catchi...)

So, while it's accurate to say that inserting null checks before every dereference is one way that you could implement this to make it well-defined, that is not the only way. We have lots of clever tricks to solve problems more efficiently than may seem possible at first glance—Fil-C is a bit of a modern marvel in that regard!

comment 2mo ago · link · parent

https://applerankings.com/red-delicious-apple-review/

comment 3mo ago · link · parent

Since "N nines" for positive integers N denotes an uptime of 1 – 10^(–N), I think it's fair to analytically continue that formula, and say that 9% availability corresponds to 0.041 nines!

comment 6mo ago · link · parent

This is true as stated. However, it is important context that the time bomb was originally introduced in Trump's signature Tax Cuts and Jobs Act in his first term. So, yes, Trump's OBBBA fixed it, but Trump's TCJA caused it in the first place, too.

comment 6mo ago · link · parent

> As for the detractors, from the first generics proposal this was called out as a "not now", not never.

What? The post quotes the Go FAQ as saying, "we do not anticipate that Go will ever add generic methods". There is also some similar discussion of the original generics proposal, with language like "then it's much less clear why we need methods at all". (I'm omitting some context, but I don't feel that it changes the meaning.) Those feel much closer to "never" than "not now".)

The post is also subtitled "A change of view".

comment 6mo ago · link · parent

The converse and inverse are logically equivalent by contraposition, so it doesn't really matter which one you use. If you think through it, you can see that "if you're the product, you're not paying" is equivalent to "if you're paying, you're not the product".

comment 8mo ago · link · parent

I might guess that GP is referring not to interface ergonomics (for which a struct is a perfectly satisfactory solution, as you describe), but to implementation efficiency. A pointer is one word. A slice / string view is two words: a length and a pointer. A pointer to a slice is one word, but requires an additional indirection. I personally agree that slices are probably the best all-around choice, but taking double the memory (and incurring double the register pressure, etc.) is a trade-off that's fair to mention.

comment 8mo ago · link · parent

When we're talking scales like 10^-23, "one" and "one sixth" are comparable enough to warrant an "approximately".

comment 8mo ago · link · parent

This is what I was thinking, too. Without some kind of linearity, `connect` et al. don't give the claimed guarantees if you can just reuse the old socket handle. Especially if it's aliased in a list or something. I was surprised to see this not mentioned at all in the section specifically dedicated to double-close prevention.

Likewise, with implicit weakening, nothing stops you from dropping the socket without closing it.

comment 9mo ago · link · parent

> Even with only about 1 in 1000 users enabling telemetry

How do you know the number/proportion of users who run without telemetry enabled, since by definition you're not collecting their data?

(Not imputing any malice, genuinely curious.)

comment 9mo ago · link · parent

It can mean either. "Suspicious behavior" doesn't mean that the behavior thinks that you've done something wrong.

"She's suspicious" can mean either that I suspect her intentions or that she suspects someone else's intentions.

comment 10mo ago · link · parent

This is effectively what happened with the BotGhost vulnerability a few months back:

https://news.ycombinator.com/item?id=44359619

comment 10mo ago · link · parent

Red/green has no inherent semantics. It has the semantics that you assign it. If you choose to assign it meaning that disenfranchises 8% of men using your system, that's your choice, but it is not a good one.

comment 10mo ago · link · parent

The article explains why they want to avoid this option:

> Starting at version 14, PostgreSQL supports generated columns - these are columns that are automatically populated with an expression when we insert the row. Sounds exactly like what we need but there is a caveat - the result of the expression is materialized - this means additional storage, which is what we were trying to save in the first place!

comment 10mo ago · link · parent

> I don’t see your joke as being in any way harmful towards Sanjay aside from potential knock on effects of Jeff Dean being more popular

I mean… yeah. When two people are peers and comparably well regarded, and one is elevated above the other and enjoys increased popularity, familiarity, and respect, and the elevation is because that person's name comes from a culture that is more aligned with the dominant culture and easier for them to engage with… that is a pretty textbook example of systemic racism.

I'm not at all saying this to demonize Kenton. We can make mistakes and reflect on them later, and that's laudable. But it is important to recognize these systems for what they are, so that we can notice them when they happen all around us every day.

comment 11mo ago · link · parent

Maybe we could put a wind turbine on the boat, generate electrical power, and use that to power an onboard motor!

comment 11mo ago · link · parent

Rob Pike retired from Google in 2021.

comment 11mo ago · link · parent

Ng, Le, Li, Lu, Wu, Xu, Xi, Fu… come to mind immediately for last names.

For first names… Jo, Ty, Al, maybe?

comment 12mo ago · link · parent

You may wish to search for "readability at Google". Here is one article:

https://www.moderndescartes.com/essays/readability/

(I have not read this article closely, but it is about the right concept, so I provide it as a starting point since "readability" writ large can be an ambiguous term.)

comment 12mo ago · link · parent

> what about situations where you might have two variables closely related that need to be locked as a pair whenever accessed.

This fits quite naturally in Rust. You can let your mutex own the pair: locking a `Mutex<(u32, u32)>` gives you a guard that lets you access both elements of the pair. Very often this will be a named `Mutex<MyStruct>` instead, but a tuple works just as well.

comment 1y ago · link · parent

Umm, actually, it's specifically a coproduct of functional programming. ;-)

https://en.wikipedia.org/wiki/Coproduct

comment 1y ago · link · parent

I have usually heard it called "A–AB–B migrations". As in, you support version A, then you support both version A and version B, then you support just version B.

The rest of the sequencing details follow from this idea.

comment 1y ago · link · parent

College athlete Lia Smith died by suicide last week after years of targeted harassment and attacks from the people we're talking about. At some point, when the institutions of power do everything they can to demonize your existence, strip you of your accomplishments, and vilify you publicly—across millions of people nationwide—it doesn't matter whether you call it murder or not. The deaths rack up all the same.
123456