92 points · by tomohawk · 3y ago · 44 comments
To make this concrete, suppose we have the bytes 1, 2, 3, 4 in 16-bit memory. In hex, this is 0102 0304. In octal, this is 000402 001404. Hex makes it trivial to see the bytes, extract them, byte-swap, etc. In octal, you need to sit down and think. I've worked on a 16-bit octal machine (Xerox Alto) and after about 2 minutes it's obvious why hex won.
And ASCII is what pushes you towards preferring eight bit bytes.
Prior to System/360, business data processing typically used 6-bit characters (e.g. IBM 1401), which only gave you upper case. Scientific processing used whatever word size gave the desired accuracy, so it was totally reasonable to have a 15-bit computer or a 26-bit computer. Powers of two for the word size are convenient for slicing up words into smaller pieces and for specifying a bit in the word. But you also have systems like the Four Phase, which used 24-bit words consisting of 3 bytes. (Which turned out to be a mess when you try to extract bytes from words.)
If everything were based on a different basic ‘byte’ size that objection would go away.
Sure, oddball things that used 8-bit data would exist and you’d need to work with them - but in our 8-bit world oddball things based on 10-bit protocols exist and we live with the impedance mismatches that causes.
The importance of having a power-of-two bits might just not be that big a deal held up against all those upsides. After all, when do you really care about how many bits it takes to store an index into a byte, or a word, anyway? The << and >> bitshift operators even on a 64bit number are only using 6 bits of their operand, so even on an 8-bit-centric architecture you’re not realizing any great synergy with the powers of two.
Is it so hard to imagine instead a 12-bit era, followed by a 24-bit revolution, and maybe now we’d be talking about the end of 48-bit systems as the 96-bit processors start coming to market?
Discussion of "x86 is an octal machine": https://news.ycombinator.com/item?id=30409100
I'm not convinced. ASCII is 7 bits only, which doesn't fit much better into 2*4 than into 3*3. It's not like the extra bit would be "wasted" anywhere, both octal and hex are only for displaying numbers, not actually used in memory.
By then, Hex ruled the roost and Octal had gone AWOL but kept getting mentioned in dispatches.