• uis@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    21 days ago

    big-endian (most significant byte or in our case number first).

    Digit in base2 is bit. Endianess is byte order, not bit order. MSb-first is bit order.

    • linja@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      21 days ago

      Ok, I think I see the problem. To me, MSb (Most Significant bit) isn’t an ordering at all, just a label that one particular bit has. To specify an ordering, you’d also need to say whether that bit comes first or last. This concept doesn’t exist in computer memory because, as previously mentioned, bits in a byte aren’t ordered in memory. I was thinking of the individual digits in a field (each Y in YYYY) as separate bytes in a word, so endianness order makes sense to think about; separate fields in this analogy were contiguous like struct fields. I think my mental model is sensible, since ISO 8601 is fundamentally a sequence of characters, which are all in an absolute order.

      • uis@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        21 days ago

        This concept doesn’t exist in computer memory because, as previously mentioned

        Yes. And it starts to exist when transferring data over serial connection. SPI, USB, you name it.