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.
  • S [email protected]

    They just do it to look cool in front of their developer friends.

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

    Pretty much this...

    Once upon a time, sure, you might have used an 8 bit char to store an array index and incur a 256 limit for actual reasons....

    But nowadays, you do it because 256 is a "cool techy limit". Developers are almost all dealing with at least 32 bit values, and the actual constraints driving smaller values generally have nothing to do with some power of two limitation.

    1 Reply Last reply
    0
    • N [email protected]

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

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

      Even if true, 256 would be a waste of the range. 255 would make sense if trying to stay in one byte, using a whole different data type to get one extra bit just to hold 256 instead of saying "screw it, let's go to 511" even while using other bits.

      It's just a very weird thing to do to pick 256 as a value limit back in those days (also oddly specific now, but for different reasons)

      1 Reply Last reply
      1
      • jackbydev@programming.devJ [email protected]

        Powers of two are the roundest of numbers.

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

        They're not round, they're square!

        M 007ace@lemmy.ca0 2 Replies Last reply
        7
        • V [email protected]

          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 This user is from outside of this forum
          J This user is from outside of this forum
          [email protected]
          wrote last edited by
          #47

          My experience is that a limit of 256 means they probably are willing to allocate up to 24 bits to send the value over the network:

          0x323536

          People seem to love to pass around their numbers as JSON or similar.

          1 Reply Last reply
          0
          • C [email protected]

            They're not round, they're square!

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

            Only every other one...

            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.

              banazir@lemmy.mlB This user is from outside of this forum
              banazir@lemmy.mlB This user is from outside of this forum
              [email protected]
              wrote last edited by
              #49

              But is it Numberwang, Mr. Numbers Guy?

              1 Reply Last reply
              3
              • C [email protected]

                They're not round, they're square!

                007ace@lemmy.ca0 This user is from outside of this forum
                007ace@lemmy.ca0 This user is from outside of this forum
                [email protected]
                wrote last edited by
                #50

                Slow Clap
                Well done!

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

                  evenly specific

                  1 Reply Last reply
                  5
                  • C [email protected]

                    I can no longer tell if these are bits. 🫠

                    jackbydev@programming.devJ This user is from outside of this forum
                    jackbydev@programming.devJ This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #52

                    (Yes, this is a bit. 💜)

                    C 1 Reply Last reply
                    1
                    • jackbydev@programming.devJ [email protected]

                      (Yes, this is a bit. 💜)

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

                      (Thank you for the kindness of clarity ❤️
                      I may now be at peace.)

                      1 Reply Last reply
                      0
                      • C [email protected]

                        I can no longer tell if these are bits. 🫠

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

                        That's what she said...

                        1 Reply Last reply
                        0
                        • M [email protected]

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

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

                          Still, it works well for "normies"...

                          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.

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

                            User name checks out

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

                              As a software engineer: actually there is no need for a number of people as a power of 2 unless you need exactly 1 byte to store such information which sounds ridiculous for the size of Whatsapp

                              N V 2 Replies Last reply
                              10
                              • J [email protected]

                                this guy indexes

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

                                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.

                                1 Reply Last reply
                                0
                                • jackbydev@programming.devJ [email protected]

                                  I hate this. I love this.

                                  If I ever make a game I might put stuff like this in it.

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

                                  Having made a few games back in the day, this isn't something you add on purpose, this is something that you screwed up, are going to "fix later", then realize it's too much hassle to rewrite 45% of your code and you just raise the minimum spec requirements a bit to compensate.

                                  1 Reply Last reply
                                  0
                                  • tired_n_bored@lemmy.worldT [email protected]

                                    As a software engineer: actually there is no need for a number of people as a power of 2 unless you need exactly 1 byte to store such information which sounds ridiculous for the size of Whatsapp

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

                                    It’d make sense at protocol level. Otherwise, yeah, even bit-size database columns end up being stored as a word unless the engine compacts it.

                                    1 Reply Last reply
                                    2
                                    • tired_n_bored@lemmy.worldT [email protected]

                                      As a software engineer: actually there is no need for a number of people as a power of 2 unless you need exactly 1 byte to store such information which sounds ridiculous for the size of Whatsapp

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

                                      Or some binary search tree with an artificial height lol.

                                      1 Reply Last reply
                                      1
                                      • K [email protected]

                                        0, 1, 2, 3, 4, 5, 6, 7, 8, 9

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

                                        What about -1 ?

                                        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