Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Microblog Memes
  3. oddly specific

oddly specific

Scheduled Pinned Locked Moved Microblog Memes
microblogmemes
62 Posts 41 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N This user is from outside of this forum
    N This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1
    This post did not contain any content.
    mentaledge@sopuli.xyzM C S V J 15 Replies Last reply
    251
    • N [email protected]
      This post did not contain any content.
      mentaledge@sopuli.xyzM This user is from outside of this forum
      mentaledge@sopuli.xyzM This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

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

      1 Reply Last reply
      16
      • N [email protected]
        This post did not contain any content.
        C This user is from outside of this forum
        C This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        I'm typing this on a 64 bit device. Why anyone would limit something to an 8 bit number in 2025 is really odd.

        1 Reply Last reply
        4
        • N [email protected]
          This post did not contain any content.
          S This user is from outside of this forum
          S This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          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?

          M H S 3 Replies Last reply
          8
          • S [email protected]

            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?

            M This user is from outside of this forum
            M This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            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.

            1 Reply Last reply
            2
            • S [email protected]

              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?

              H This user is from outside of this forum
              H This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              Maybe each user has a user id in a group, and that group user id is stored as 8bit int? Idk

              1 Reply Last reply
              0
              • N [email protected]
                This post did not contain any content.
                V This user is from outside of this forum
                V This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                ITT: People who have never done low level networking.

                Edit: Without some absolutely crazy hacks, the smallest amount of data you can really transfer or compute on is one byte. 256 requires one byte, 257 requires you to DOUBLE the data used to 2 bytes. Multiply this by whatever data they send and the problem remains the same.

                This is the kind of thing that comes up a lot designing custom protocols.

                J 1 Reply Last reply
                3
                • S [email protected]

                  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?

                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #8

                  There's often a lot of fun cheats you can use - bitwise operators, etc - if your numbers are small powers of two.

                  Also it's easier to organize memory, if you're doing funky memory management tricks, if the memory you're allocating fits nicely into the blocks available to you which are always in powers of two.

                  They're not necessarily great reasons if you're using a language with sufficient abstraction, but it's still easier in most instances to use powers of two anyways if you're getting into the guts of things.

                  1 Reply Last reply
                  0
                  • N [email protected]
                    This post did not contain any content.
                    J This user is from outside of this forum
                    J This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #9

                    Since you start counting from zero, the byte limit should be 255 = 2^8 - 1.

                    1 Reply Last reply
                    0
                    • N [email protected]
                      This post did not contain any content.
                      chozo@fedia.ioC This user is from outside of this forum
                      chozo@fedia.ioC This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #10

                      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

                      M 1 Reply Last reply
                      3
                      • N [email protected]
                        This post did not contain any content.
                        mr_satan@lemmy.zipM This user is from outside of this forum
                        mr_satan@lemmy.zipM This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #11

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

                        S 1 Reply Last reply
                        0
                        • chozo@fedia.ioC [email protected]

                          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

                          M This user is from outside of this forum
                          M This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #12

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

                          M 1 Reply Last reply
                          1
                          • N [email protected]
                            This post did not contain any content.
                            P This user is from outside of this forum
                            P This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #13

                            Yep very weird, should have been 255.

                            D 1 Reply Last reply
                            4
                            • mr_satan@lemmy.zipM [email protected]

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

                              S This user is from outside of this forum
                              S This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #14

                              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.

                              J 1 Reply Last reply
                              0
                              • P [email protected]

                                Yep very weird, should have been 255.

                                D This user is from outside of this forum
                                D This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #15

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

                                jackbydev@programming.devJ 1 Reply Last reply
                                4
                                • N [email protected]
                                  This post did not contain any content.
                                  P This user is from outside of this forum
                                  P This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #16

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

                                  C buboscandiacus@mander.xyzB Q banazir@lemmy.mlB B 5 Replies Last reply
                                  18
                                  • N [email protected]
                                    This post did not contain any content.
                                    J This user is from outside of this forum
                                    J This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #17

                                    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.

                                    N jackbydev@programming.devJ J 3 Replies Last reply
                                    13
                                    • P [email protected]

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

                                      C This user is from outside of this forum
                                      C This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #18

                                      Oh yeah well if you're some sort of numbers guy, answer me this: I think you're name is super cool, and makes me wonder, is there a largest prime you can make listing digits of pi starting from the beginning. There's gotta be infinite right?

                                      addie@feddit.ukA 1 Reply Last reply
                                      0
                                      • P [email protected]

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

                                        buboscandiacus@mander.xyzB This user is from outside of this forum
                                        buboscandiacus@mander.xyzB This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #19

                                        Oh you are the numbers guy ? Name every number

                                        K 1 Reply Last reply
                                        3
                                        • J [email protected]

                                          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.

                                          N This user is from outside of this forum
                                          N This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #20

                                          Maybe they keep some other data in the same space using bitmask?

                                          J 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups