• rekabis@lemmy.ca
    link
    fedilink
    arrow-up
    67
    arrow-down
    7
    ·
    1 year ago

    There is a reason why little endian is preferred in virtually 100% of cases: sorting. Mentally or lexicographically, having the most important piece of information first will allow the correct item be found the fastest, or allow it to be discounted/ignored the quickest.

    • Static_Rocket@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      But also, sorting big endian automatically groups elements associated with common functions making search, completions, and snippets easier (if you use them). I’m torn

    • 33550336@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I was going to write something like this. You actually wrote about semantic order, but syntactically it is as much important e.g. it is easier to sort dates such as 2024-05-27 than 27.05.2024 in chronological order.