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

That's a bit overpedantic. It's a mnemonic for remembering the way the bytes are arranged in memory: "Ok, Bo: add re".

Nobody complains that r, o, y, g, b, i, and v aren't actual colors, do they? Other than you, I mean.

http://en.wikipedia.org/wiki/List_of_mnemonics



r=red, o=orange, y=yellow, etc.. No problem there.

What does K equal in hexadecimal? Well, it isn't defined for hexadecimal. K=20 is only defined in Base 21 and above.

Other than me? Hah, nice cheap shot, pole ;-)


The letters need only illustrate the positions and be memorable. No hex is required for this purpose.

Edit: The 0x communicates that the mnemonic is illustrating base 16, so your objection below is not valid.


Endian-ness changes when the base changes. For a clear explanation, actual hex is needed.


A byte is not a byte if its value exceeds 255.




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

Search: