this post was submitted on 07 Jul 2025
1480 points (99.1% liked)

Microblog Memes

8513 readers
2575 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] spongebue@lemmy.world 38 points 1 week ago (24 children)

So, I get that 256 is a base 2 number. But we're not running 8-bit servers or whatever here (and yes, I understand that's not what 8-bit generally refers to). Is there some kind of technical limitation I'm not thinking of where 257 would be any more difficult to implement, or really is it just that 256 has a special place in someone's heart because it's a base 2 number?

[–] AbsolutelyNotAVelociraptor@sh.itjust.works 56 points 1 week ago (19 children)

Because 256 is exactly one byte. If you want to add a 257th member, you need a whole second byte just for that one person. That's a waste of memory, unless you want to go to the 64k barrier of users per chat.

[–] Zagorath@aussie.zone 14 points 1 week ago (12 children)

Except that they're almost certainly just using int, which is almost certainly at least 32 bits.

256 is chosen because the people writing the code are programmers. And just like regular people like multiples of 10, programmers like powers of 2. They feel like nice round numbers.

[–] verstra@programming.dev 46 points 1 week ago (2 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.

[–] MyBrainHurts@lemmy.ca 39 points 1 week ago (2 children)

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

Shots fired.

[–] jaybone@lemmy.zip 4 points 1 week ago

All these tough guys think you can’t bit shift in Java, never worked on a project with more than two people. Many such cases.

[–] ByteJunk@lemmy.world 0 points 1 week ago

Fair point, but still better than wasting a nuclear power plant worth of electricity to solve math homework with an LLM

load more comments (9 replies)
load more comments (15 replies)
load more comments (19 replies)