1468
oddly specific (lemmy.blahaj.zone)
submitted 4 weeks ago by not_IO to c/microblogmemes@lemmy.world
top 50 comments
sorted by: hot top controversial new old
[-] Chozo@fedia.io 159 points 4 weeks ago

Source.

This isn't a "tech article", it's an article about tech. This is a normie article from a normie news outlet for normie readers.

Also from the article:

A previous version of this article said it was "not clear why WhatsApp settled on the oddly specific number." A number of readers have since noted that 256 is one of the most important numbers in computing, since it refers to the number of variations that can be represented by eight switches that have two positions - eight bits, or a byte. This has now been changed. Thanks for the tweets. DB

[-] markz@suppo.fi 89 points 4 weeks ago

That weird ass explanation with switches and "one of the most important numbers" still sounds absolutely clueless.

[-] wabasso@lemmy.ca 20 points 4 weeks ago* (last edited 4 weeks ago)

I liked the switches analogy! Generally about binary though; I agree it doesn’t connect back to the number of users application.

And yeah most important number…sounds like they were quoting an LLM.

load more comments (1 replies)
load more comments (1 replies)
[-] wuzzlewoggle@feddit.org 58 points 4 weeks ago

One of the most important numbers? I'd argue the most important number in computing is either 1 or 0...

[-] jaybone@lemmy.zip 72 points 4 weeks ago

What the fuck is a power of 2??? I’m vibe coding python AI.

load more comments (4 replies)
load more comments (2 replies)
[-] AFKBRBChocolate@lemmy.ca 15 points 4 weeks ago

That quote really is the problematic part. The part about switches is fine - it's an attempt to explain tech to a "normie." But for a tech writer to ever say it's not clear why they settled on 256 is worse than embarrassing. They had to be corrected by tweets.

Anyone whose ever had an intro to computers class has had a computing professional explain computers using simple language and analogies. That's the way this kind of thing should work. It sounds like this author has no more clue about computing than the target audience, which isn't going to work out well for the reader.

load more comments (4 replies)
[-] AlexanderTheDead@lemmy.world 12 points 4 weeks ago

It doesn't really matter that it's a "normie article for normie readers". Writing articles is journalism. Not knowing 256 offhand? Permissible. Being a journalist who wrote an article and didn't even do the bare bones of research? You're still a bad journalist, and as callous as it is, you should lose your job and livelihood. Bad journalism is too dangerous to just let it fester like this.

load more comments (1 replies)
load more comments (3 replies)
[-] prime_number_314159@lemmy.world 143 points 4 weeks ago

Numbers guy here, I can confirm 256 is an evenly specific number, and not an oddly specific number.

[-] MentalEdge@sopuli.xyz 102 points 4 weeks ago

If it's engagement bait, it's working.

[-] ignoble_stigmas@sh.itjust.works 36 points 4 weeks ago

Engagement byte

load more comments (7 replies)
[-] jsomae@lemmy.ml 92 points 4 weeks ago

Shout out to Castlevania II, where you can hold anywhere from 0 to 256 laurels. Yes, you read that right -- 256, not 255. I inspected RAM to double check. It's a 16-bit word on an 8-bit system with a maximum value of 0x100. They could have used 8 bits instead of 16. But no, they really did choose this arbitrary number.

[-] AnarchistArtificer@slrpnk.net 37 points 4 weeks ago

"I inspected RAM to double check."

That's an unhinged level of commitment. Respect — I dig it

load more comments (13 replies)
[-] xeekei@lemmy.zip 75 points 4 weeks ago

You know you're a tech nerd when 256 sounds more even than 250 or 300. 😅

[-] Saleh@feddit.org 35 points 4 weeks ago* (last edited 4 weeks ago)

It kind of is "more even".

256 is just 2⁸
250 is 2x5³
300 is 2²x3¹x5²

Any division of 256 with an integer and integer result will be even. Most divisions of 250 and 300 with an integer and integer result will be odd.

[-] Klear@lemmy.world 14 points 4 weeks ago

Even that is odd.

load more comments (2 replies)
[-] silasmariner@programming.dev 16 points 4 weeks ago

Or a maths nerd!

load more comments (7 replies)
[-] rarbg@lemmy.zip 59 points 4 weeks ago

A previous version of this article said it was "not clear why WhatsApp settled on the oddly specific number." A number of readers have since noted that 256 is one of the most important numbers in computing, since it refers to the number of variations that can be represented by eight switches that have two positions - eight bits, or a byte.

Lol, weird way to say that 256 is a power of two, and computers operate in base two.

[-] JackbyDev@programming.dev 15 points 4 weeks ago

It's a pretty succinct explanation that links what it is to something most people have heard of (a byte).

[-] Outbound7404@lemmy.ml 12 points 4 weeks ago

Their definition is a lot better.

load more comments (2 replies)
[-] 18107@aussie.zone 54 points 4 weeks ago

In this case the limit was entirely arbitrary.

The programmers were told to pick a limit and they liked 256. There are issues with having a large number of people in a group, but it wasn't a hardware limit for this particular case.

[-] Revan343@lemmy.ca 31 points 4 weeks ago

But it's still not oddly specific, they picked a nice round number

[-] phantomwise@lemmy.ml 53 points 4 weeks ago

Yep very weird, should have been 255.

[-] deltapi@lemmy.world 56 points 4 weeks ago

No, you can't have a group of zero, so the counter doesn't need to waste a position counting zero.

[-] 10OhmResistor@aussie.zone 37 points 4 weeks ago

0 is reserved for the FBI agent listening in.

load more comments (10 replies)
[-] spongebue@lemmy.world 37 points 4 weeks ago

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?

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 24 points 4 weeks ago

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 47 points 4 weeks ago

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 4 weeks ago

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

Shots fired.

load more comments (2 replies)
load more comments (5 replies)
[-] Lodespawn@aussie.zone 24 points 4 weeks ago

It'll have to do with packet headers, 8 bits is a lot for an instant message packet header.

load more comments (2 replies)
load more comments (4 replies)
[-] mEEGal@lemmy.world 14 points 4 weeks ago

when writing somewhat low-level code, you always make assumptions about things. in this case, they chose to manage 256 entries in some array; the bound used to be lower.

but implicitly there's a tradeoff, probably memory / CPU utilisation in the server.

it's always about the tradeoff between what the users want, what is easier for you to maintain, what your infrastructure can provide, etc.

load more comments (2 replies)
[-] synapse1278@lemmy.world 24 points 4 weeks ago* (last edited 4 weeks ago)

Still odd, I very much doubt they use a 8bit variable to set this limit. What would this bring ?

[-] Alaknar@sopuli.xyz 20 points 4 weeks ago

Still odd

Actually, it's even.

load more comments (1 replies)
[-] mr_satan@lemmy.zip 16 points 4 weeks ago* (last edited 4 weeks ago)

Wouldn't max value for 8 bit (unsigned) integer be 255? Like the number has 256 distinct values, but that includes 0.

[-] squaresinger@lemmy.world 31 points 4 weeks ago

If this is about a counter for users in the chat, sure. But if this is an array of users indexed by an 8-bit number, then it will fit 256 slots with the first slot being numbered 0.

load more comments (3 replies)
[-] chonglibloodsport@lemmy.world 26 points 4 weeks ago

Right but having a group chat of size 0 isn’t very useful.

load more comments (7 replies)
[-] winkerjadams@lemmy.dbzer0.com 20 points 4 weeks ago

And programmers usually start counting at 0.

load more comments (1 replies)
load more comments (3 replies)
[-] MilitantAtheist@lemmy.world 16 points 4 weeks ago

Because 257's a crowd

[-] echodot@feddit.uk 13 points 4 weeks ago

That's a super old article as well.

They got rightfully roasted in the comments for not knowing even the most basic things about computing.

load more comments
view more: next ›
this post was submitted on 07 Jul 2025
1468 points (100.0% liked)

Microblog Memes

8783 readers
1905 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