verstra

joined 2 years ago
[–] verstra@programming.dev 46 points 5 months ago* (last edited 5 months ago) (1 children)

There are only two hard problems in computer science:

  • naming things,
  • cache invalidation,
  • off-by-one errors.

I'm afraid you've fell victim to the problem 2.

[–] verstra@programming.dev 44 points 5 months ago (8 children)

Well, no. They are not certainly using int, they might be using a more efficient data type.

This might be for legacy reasons or it might be intentional because it might actually matter a lot. If I make up an example, chat_participant_id is definitely stored with each message and probably also in some index, so you can search the messages. Multiply this over all chats on WhatsApp, even the ones with only two people in, and the difference between u8 and u16 might matter a lot.

But I understand how a TypeScript or Java dev could think that the difference between 1 and 4 bytes is negligible.

[–] verstra@programming.dev 55 points 5 months ago (1 children)

Maybe checkout Pixelfed, which is (from what I gather) similar to what instagram was 10 years ago

[–] verstra@programming.dev 4 points 5 months ago (3 children)

I hate that the pleasant news about standardization of CSV come with the let-down that is using two bytes for new lines.

[–] verstra@programming.dev 3 points 5 months ago

Or a pair of boots, a great backpack, hiking trousers, helmet, harness and a "via ferrata cable kit".

[–] verstra@programming.dev 2 points 5 months ago

~10 manual mid-range tools and enough wood to make a nice looking jewellery box.

[–] verstra@programming.dev 2 points 5 months ago

Dan Luu. From summary of summaries:

I suspect I might prefer Rust once it's more stable.

[–] verstra@programming.dev 1 points 5 months ago (1 children)

Just because we cannot prove something, doesn't mean that we can treat strong claims the same way as proven hypnosis. If we cannot prove that UBI is overall beneficial, we just cannot believe it with the same certainty that we would if we had a bunch of studys on our side.

Look, I'm not saying that we have nothing - I'm just saying that what we have are educated guesses, not proven facts. Maybe "open question" was too strong of a term.

[–] verstra@programming.dev 2 points 5 months ago (7 children)

Well, you can conclude anything using your reasoning, but that does give the high degree of certainty that is sought after in the studies reviewed in the article.

Again, I'm not saying that I don't believe static type checkers are beneficial, I'm just saying we cannot say that for sure.

It's like saying seat belts improve crash fatality rates. The claim seems plausible and you can be a paramedic to see the effects of seat belts first-hand and form a strong opinion on the matter. But still, we need studies to inspect the impact under scrutiny. We need studies in controlled environments to control for things like driver speed and exact crash scenarios, we need open studies to confirm what we expect really is happening on a larger scale.

Same holds for static type checkers. We are paramedics, who see that we should all be wearing seat belts of type annotations. But it might be that we are some subset of programmers dealing with problems that benefit from static type checking much more than average programmer. Or there might be some other hidden variable, that we cannot see, because we only see results of code we personally write.

[–] verstra@programming.dev 5 points 5 months ago (2 children)

The original author does mention that they want to try using rust when it becomes more stable.

This is why any published work needs a date annotation.

[–] verstra@programming.dev 3 points 5 months ago

Damn, this actually looks really good! Is there an estimate on when this will be useable-ish as a main phone for non-dev users?

[–] verstra@programming.dev 2 points 5 months ago

What about acid and web spitters?

view more: ‹ prev next ›