Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Little endian: Least significant byte at Lowest address. It's definitely not meaningless. I also tend to think of it as the Logical one (the significance grows with the address.) All that alliteration aids acceptance and allows accurate agreement.


“endian” … end is the last part of something. It would imply that big/little is describing the last address, not the first.

When it comes to how to store numbers, in English, we read the highest value from the right to the lowest value on the left. Your “logical” is counter to how English-speaking people write numbers.


> When it comes to how to store numbers, in English, we read the highest value from the right to the lowest value on the left.

Huh? When I read 24, "twentyfour", the highest value is on the left, followed by less high values on the right, and spoken in that order.

It's actually different in other languages, in dutch for example I would say "vierEnTwintig", or "four and twenty" translated directly, so saying the least high value first. (... However this is only for the two digits, because upwards we'll say "honderdVierEnTwintig", or "hunderd four and twenty")


I mixed up right and left.


Your “logical” is counter to how English-speaking people write numbers.

As evidenced by the MM/DD/YYYY ("middle-endian") year format that a significant part of the English-speaking world uses, "logical" and "traditional" can mean different things.

The fact that I can't think of any arbitrary-precision library which stores its numbers in big-endian format is evidence that LE is the logical one. Yes, it looks odd in a hexdump, but that's not something you need to deal with often and if you do, you get used to it anyway.


Actually, MM/DD/YYYY is in the minority worldwide. AFAIK, only the US and Canada use it.

All of Europe uses DD/MM/YYYY (Germany uses dots instead of /) and I believe most (if not all) of South America too.

Chinese and Japan effectively use YYYY-MM-DD because of how it's written normally, YYYY年MM月DD日. A lot of the tech and business world also use YYYY-MM-DD because it's an ISO standard, and makes sorting easier if you assume left-to-right reading order.

However, there are two interesting observations:

* Most of the world reads left-to-right, but uses Arabic numerals which is right-to-left. So, most of the world uses big-endian Arabic numerals when in the original language it was little-endian. Also strange that when we say "Arabic numerals", we also don't use their numerals, only their system...

* The difference in US date formats compared to the rest of the English speaking world boils down to how the dates are spoken. In US English, it's typical to say e.g. "January 10", whereas in British English this is practically unheard of. But this explains why to an American "MM/DD" feels more natural. In Britain, sometimes people might say "January the 10th", but "10th of January" is far more natural. This is why we prefer "DD/MM" because it's a natural abbreviation. You can still see vestiges of the earlier British-style usage in US English, e.g. "4th of July" which is ironic for the date that should be least British is pretty much the only one that's still said the traditional British way!


Oh, so naturally big endian is most significant byte at largest address?


Heads I win, tails you lose.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: