Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,663 karma · joined Jun 14, 2010 (16y ago) · 1,502 submissions

Submissions

comment 2y ago · link · parent

> Starlink, which is already in black

It doesn’t make sense to claim “Starlink is profitable” if the underlying rockets still lose money and you don’t account for that in the claim.

> they'll have to invent something which needs a lot of super-heavy launcher flights

Losing money with your expensive solution? Easy, just invent a profitable problem.

comment 2y ago · link · parent

Descriptive of the kinds of workarounds that a lack of proper abstraction capabilities made necessary in ancient Java.

comment 2y ago · link · parent

We don’t learn language from textbooks though.

comment 2y ago · link · parent

Compared to an LLM, how many hundreds of gigabytes of text do humans need to acquire a language? And isn’t that disparity already proof that some sort of innate structure must be going on?

comment 2y ago · link · parent

It’s kind of common to use the TypeScript compiler purely as a linter these days even in a TypeScript-only codebase. You actually want to use a faster transpiler anyway, and when you do, there’s no technical reason not to run the code or the test suite while you still figure out the types. In fact, I’m becoming convinced that this kind of setup (and way of working) is actually the best of both worlds.

comment 2y ago · link · parent

Shareholder-driven growth targets mean it's no longer good enough to target the 20th percentile users, who might have reading comprehension at a 5th grade level. You have to hit the 10th percentile, or the 5th. Be glad that you still get text instead of pictures.

comment 2y ago · link · parent

It's not "the thing I like", it's the better tradeoff. It's less complex and thus more secure (due to reduced API surface and fewer opportunities to make lookup mistakes or to mistakenly choose the wrong out of dozens of kinds of case-insensitive comparison in a security decision). It's also potentially faster, and more compatible with other Unixes.

comment 2y ago · link · parent

Curiously, iOS and iPadOS file systems are case-sensitive. There's less legacy there, so they opted to do the correct thing.

comment 2y ago · link · parent

Except at the UI layer (where you can easily offer suggestions and do fuzzy search), the opposite is true. There are so many different ways to do case-insensitive string comparisons, and it's so easy to forget to do that in one place, that case-insensitivity just leads to ton of bugs (some of which will be security critical).

For example, did you know that Microsoft SQL Server treats the columns IS_ADMIN and is_admin as either the same or two different columns depending on the database locale (because e.g. Turkish distinguishes between i and I)? That's at least a potential security bug right there.

comment 2y ago · link · parent

Yeah, I see that now. :)

comment 2y ago · link · parent

> Humans don’t walk miles when they can use cars. Now “the computer” is no longer the bicycle for the mind. It is the self-driving car LOL

That analogy is actually very apt, but in ways you might not have intended it to be.

comment 2y ago · link · parent

It's hard to define "reason". Certainly, the pattern matching is good enough to solve certain equations step by step, for example, and that's one form of reasoning.

But just ask ChatGPT (4o) how a farmer and a sheep would cross a river on a boat. For certain formulations, it reliably hallucinates a wolf or a piece of cabbage into the problem. Why? Because it pattern matches the solution to a well-known puzzle.

We've now seen enough failure modes of these models to realize that a lot of the early successes in logic tests were us not realizing how deep the corpus actually is.

Basically any question humans have ever asked or thought of is in the training data. And ChatGPT has remembered so much of it that it's very hard to surprise the model. But when we manage to do, we see it's actually dumber than a three-year-old. (Which to be fair, is actually still an accomplishment that just a few years ago almost nobody would have considered possible.)

comment 2y ago · link · parent

The headline is very obviously trying to reference Stargate without technically being false. That the article "explains" the headline doesn't make it any less shitty clickbait, in fact, that's the very definition of clickbait.

comment 2y ago · link · parent

I’ve seen the same thing, it might be generational. Someone arguing that we need an isNotEqual(a, b) helper in addition to isEqual(a, b), because that’s supposedly “cleaner” and more readable than !isEqual(a, b). They were very vehement about it, but I don’t get that at any level. It’s more lines of code to write and maintain, more unit tests, more characters to type at the usage site and to me, reads exactly the same way.

comment 2y ago · link · parent

From the linked article, they found that it activates the region of the brain that carefully reasons through unfamiliar problems. They also speculate that this might not generalize to people with 30 years of programming experience. Well, fine, a lot of academic research is done with students. But doesn’t that invalidate any comparisons with natural language processing, something that the test subjects do have decades of experience in?

comment 2y ago · link · parent

For me, the whole thing is an impressive flex, but I know next to nothing about electronics. Can you elaborate what’s interesting about using 555 timers in particular?

comment 2y ago · link · parent

I don't see how you would define linearity in a ring (I don't mean a module, just a ring). I.e. D(af) = aD(f) doesn't make sense if you don't have scalar multiplication.

comment 2y ago · link · parent

Also, the abstract algebra definition is an actual generalization, because the (analysis) derivative acts as a linear operator in the vector space of (suitably smooth) funtions. It blew my mind when I first encountered this way of looking at derivatives. And from there, it makes complete sense to look at operators with similar properties in other vector spaces.

The definition presented here is a loose analogy to derivatives rather than an actual generalization, which doesn't fully justify using the name IMO.

comment 2y ago · link · parent

> Motte and bailey accusations only work if the statemnts in question are being made by the same person.

I think it's perfectly justified in cases where debater self-identifies as part of the "bailey" community -- that is, if in other contexts the debater wouldn't oppose people arguing for the bailey position.

comment 2y ago · link · parent

Do you know why said cryptocurrency would use such a bespoke proof-of-work function? I.e., was it just someone ignorant who had only a vague idea that cryptography somehow uses prime numbers and didn’t know when or why, or was there a deeper reason?

comment 2y ago · link · parent

You probably know that Figma is a UX design software. This means it’s basically a graphics program: you draw shapes, you scroll and zoom around. It does that extremely well. It’s unbelievably snappy even on a very large canvas with many complex UI screens. Very few desktop applications run nearly as well these days. I’m convinced that this kind of optimization is an important part of their success.

comment 2y ago · link · parent

This made me scratch my head:

> Even in a language like Rust, which has not yet implemented mutable aliasing (an oft-requested feature stuck at the RFC stage)

Disallowing mutable aliasing is in fact the whole point of Rust. Perhaps it’s “requested” by people still learning the language? Is the “not yet implemented” part meant as irony? Does the author mean something else?

comment 2y ago · link · parent

Why would you need to “see” it? Unlike the distribution of the RNG itself, this is trivial to solve analytically.

comment 2y ago · link · parent

Yes. Nobody thinks that it’s magically floating. Was this written by AI? This reads like ChatGPT nonsense to me: “Many art historians think that Spitzweg wanted to depict a starving artist.”

comment 2y ago · link · parent

The real question is why would you. This is an educational project that visually demonstrates how a CPU operates. It could clock at 0.5 Hz for that purpose.

comment 2y ago · link · parent

Yes, LLVM has many bugs that Clang either doesn’t hit or has actively worked around, sometimes for years. There was never a huge push to fix that situation, which made using LLVM for other languages a disappointing experience. Rust has uncovered many of those bugs over time, and it seems like Rust is an important enough customer that those do get fixed now. Slowly.

For example, I remember that for many years, Rust would have to throw away part of its aliasing analysis because its annotations were too precise and would confuse LLVM’s optimizer. And so on. But it’s getting better.

comment 2y ago · link · parent

It’s not the default, but it’s just a language feature. It’s also not just for interfacing with C. For example, you also use repr(C) for pointer tricks even if you never leave Rust. Lots of places in the standard library use it for that reason.

comment 2y ago · link · parent

Depending on the application, going for floats can be a huge mistake: you only exact integer math up to 2^52 or 10^15. That’s hardly infinite, and insufficient for many applications.

comment 2y ago · link · parent

The actual constraint here is that every additional button costs 0.1 cents extra in production. Whatever great UI scheme you come up with, if there’s a ridiculously contrived way to do it with one button less, that’s what will be chosen.

comment 2y ago · link · parent

I'm sorry, but as evidenced by literally the rest of the world, voting wait times are not a research-level mathematics problem, but purely one of resources. Census data and a tiny bit of queuing theory (or alternatively, historical data) will tell you the peak load of a voting booth. Staff accordingly, problem solved.
1
789
51