• tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    16
    ·
    3 days ago

    It’s little endian, so the beads on the far right are used to outnumber the big endian beads at the top on the woke left. After several computations, the middle section is just gone

      • zerofk@lemmy.zip
        link
        fedilink
        arrow-up
        16
        ·
        edit-2
        3 days ago

        You know how some languages write left-to-right, and some rught-to-left? Endianness is that, for numbers.

        Or another analogy is dates: 2025/12/31 is big endian, 31/12/2025 is little endian. And 12/31/2025 is middle endian. Which makes no sense at all because the middle is, by definition, not an end.

        • TheRedSpade@lemmy.world
          link
          fedilink
          arrow-up
          8
          ·
          3 days ago

          I stand corrected. No idea what I was reading (several years ago), but whatever it was made it seem way more complicated. Maybe it was just an explanation from somebody who didn’t know.

          • wheezy@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            3 days ago

            Likely it was being explained in the context of binary number representation as it is primarily important in computer architecture. If you’re not already familiar with that then it was probably confusing explained in that context.

      • tetris11@lemmy.ml
        link
        fedilink
        arrow-up
        13
        ·
        edit-2
        3 days ago
        Big Endian    Little Endian:
         
         "1010"         "1010"
          ||||           ||||
         [1248]         [8421]
        
         (sum the numbers 
          corresponding to a 1)     
        
         1+4=5          8+2=10
        

        Depending on whether the order of binary comes from the left (Big Endian) or from the right (Little Endian), the binary number of “1010” can equal 5 or 10


        (My original comment was buzzword nonsense though)

      • pinball_wizard@lemmy.zip
        link
        fedilink
        arrow-up
        5
        ·
        3 days ago

        Ouch. I had to learn endianness once to solve a real life serialization bug. It sucked. I learned it for just long enough to correct the code for the corner cases involves, and then slept and forgot everything about it.