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

Microblog Memes

11874 readers
1430 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. Your post must be a screen capture of a microblog-type post that includes the UI of the site it came from, preferably also including the avatar and username of the original poster. Including relevant comments made to the original post is encouraged.
  2. Your post, included comments, or your title/comment should include some kind of commentary or remark on the subject of the screen capture. Your title must include at least one word relevant to your post.
  3. You are encouraged to provide a link back to the source of your screen capture in the body of your post.
  4. Current politics and news are allowed, but discouraged. There MUST be some kind of human commentary/reaction included (either by the original poster or you). Just news articles or headlines will be deleted.
  5. Doctored posts/images and AI are allowed, but discouraged. You MUST indicate this in your post (even if you didn't originally know). If an image is found to be fabricated or edited in any way and it is not properly labeled, it will be deleted.
  6. Absolutely no NSFL content.
  7. Be nice. Don't take anything personally. Take political debates to the appropriate communities. Take personal disagreements & arguments to private messages.
  8. No advertising, brand promotion, or guerrilla marketing.

RELATED COMMUNITIES:

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] mr_satan@lemmy.zip 16 points 1 year ago* (last edited 1 year ago) (6 children)

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 32 points 1 year ago (2 children)

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.

[–] mr_satan@lemmy.zip 3 points 1 year ago

Fair, sounds reasonable

[–] josefo@leminal.space 2 points 1 year ago (1 children)
[–] squaresinger@lemmy.world 1 points 1 year ago

Unless it's lua, then screw anyone programming with it.

Have to use lua for my current project and the 1-based indexing is really screwing with me.

[–] chonglibloodsport@lemmy.world 25 points 1 year ago (2 children)

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

[–] khapyman@sopuli.xyz 13 points 1 year ago (1 children)

Not to be snarky, in programming there's rarely (in situations like this) a reason to keep count. Computers are exceptionally good at counting integers so they'd just count individual client id's (however they've implemented that system), not keeping toll on how many clients are in a group chat.

So one client, be it at position zero is a one client group. Add another client at position one and you have two clients and a two person group.

[–] echodot@feddit.uk 2 points 1 year ago

I don't think it's the variable for counting the number of us in a group that's the issue here. There'll be some internal tracker that gives everyone in the chat group a local ID probably for the purposes of ensuring that everyone stays in sync.

If you leave the group and then go into a different chat group you'll probably have a different number in that group because the internal counter is specific to the chat, not to the user ID which will be a unique ID used across all interactions for that phone number.

[–] mr_satan@lemmy.zip 1 points 1 year ago (4 children)
[–] owsei@programming.dev 18 points 1 year ago

one person, and 255 would represent 256 people

[–] Passerby6497@lemmy.world 12 points 1 year ago

The first index

[–] Bronzebeard@lemmy.zip 6 points 1 year ago

The limit isn't on the actual count of people, it's likely the size of the chat user id number.

[–] winkerjadams@lemmy.dbzer0.com 19 points 1 year ago (1 children)

And programmers usually start counting at 0.

[–] mr_satan@lemmy.zip 10 points 1 year ago* (last edited 11 months ago)

You're thinking indexing, 0 is still 0 when counting.

[–] frezik@lemmy.blahaj.zone 11 points 1 year ago

The number of distinct values are what matters.

[–] Alaknar@sopuli.xyz 7 points 1 year ago

You're thinking of the highest integer number, not the "number of numbers" - which is 256, from 0 to 255, and thus 256 possible users in a group chat.

[–] echodot@feddit.uk 1 points 1 year ago (1 children)

Computers start counting at zero, (unless it's python) so the first person in the group would be ID 0, the second person would be ID 1

[–] Deathray5@lemmynsfw.com 3 points 1 year ago

At a basic level python normally counts from zero (indices as an example)