A photo of a cake with 8 candles in a row. The first and fifth candle from the right are lit. The caption reads “Happy 17th Birthday”

  • adb@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    13 hours ago

    Binary exists in both big-endianLSb or little-endianMSb. In other words, both directions can be valid.

    As explained below: Endianness is specifically the order of bytes. I was under the impression that it also implied a specific order of bits but anyways, the correct terms for this discussion is Least/Most Significant bit order.

    • glibg10b@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      14 hours ago

      This is a single byte, so it’s represented the same in big-endian vs little-endian. Endianness defines the order of bytes, not individual bits

      • adb@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        14 hours ago

        Indeed, endianness is the order of bytes, my bad. I guess I meant LSb vs MSb

    • CannonFodder@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      Ya, but we pretty much always write it with most significant on the left. The endianness is more to do with the order transmitted when serialized. Or are there cases where people actually write it backwards?

      • adb@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        13 hours ago

        The way I see it, if you want to be pedantic about it (it being a joke photo, so potentially unintentionally reversed by the camera, of a cake which is in 3d space and can be seen in both directions) you might as well do it properly and acknowledge that different orders exist for bits.

        Indeed writing conventions are also a good point, however this is not writing. People actually working at bit level are probably more likely to see bits on a scope (so in both LSb or MSb order) than as 1 and 0s written on a piece of paper or a screen.