Evan Martin (evan) wrote in evan_tech,
Evan Martin
evan
evan_tech

endianness

I always get big-endian and little-endian confused. I can always remember that x86 and network are opposites, and that x86 uses the "broken" one, but I can never remember which is which.

Here's a note that may help you remember:

European-style dates, of the form dd/mm/yyyy, are little-endian. Little-endian breaks naive date sorting: 01012004 is greater than 02012005. So if you can just build an association between "European" and "little", the rest follows from there: European dates → broken sorting → broken architecture → x86.

(US-style dates are middle-endian, and we'd all do better to eliminate them. It's too easy to confuse them with little-endian dates if we switched that way, so why not use big-endian dates? I do whenever sorting matters, like in file names.)
Subscribe

  • dremel

    They published a paper on Dremel, my favorite previously-unpublished tool from the Google toolchest. Greg Linden discusses it: "[...] it is capable…

  • livejournal kids

    Neat image from Jack Dorsey. Every so often someone will ask me about Twitter and I'll dig up a a random day from Brad's LJ in 1999 and talk about…

  • more on synonyms

    Before Chrome, this is what I spent much of my Google career working on.

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 28 comments

  • dremel

    They published a paper on Dremel, my favorite previously-unpublished tool from the Google toolchest. Greg Linden discusses it: "[...] it is capable…

  • livejournal kids

    Neat image from Jack Dorsey. Every so often someone will ask me about Twitter and I'll dig up a a random day from Brad's LJ in 1999 and talk about…

  • more on synonyms

    Before Chrome, this is what I spent much of my Google career working on.