So please do excuse my ignorance, but is there a "logic" related reason other than hardware cost limitations ala "8 was cheaper than 10 for the same number of memory addresses" that bytes are 8 bits instead of 10? Genuinely curious, as a high-level dev of twenty years, I don't know why 8 was selected. To my naive eye, It seems like moving to 10 bits per byte would be both logical and make learning the trade just a li…
Eight is a nice power of two.
C++ proposal: There are exactly 8 bits in a byte
61–70 of 357 posts
Re: C++ proposal: There are exactly 8 bits in a byte
#62Re: C++ proposal: There are exactly 8 bits in a byte
#63Earlier quoted context omitted.
It's very useful on hardware that is not an x86 CPU.
As an abstraction on the size of a CPU register, it really turned out to be more confusing than useful.
The land of x86 goes to great pains to eliminate the concept of a word at a silicon cost.
Re: C++ proposal: There are exactly 8 bits in a byte
#64Earlier quoted context omitted.
I'm not sure why you think being able to store values from -512 to +511 is more logical than -128 to +127?
Buckets of 10 seem more regular to beings with 10 fingers that can be up or down?
Re: C++ proposal: There are exactly 8 bits in a byte
#65Re: C++ proposal: There are exactly 8 bits in a byte
#66Earlier quoted context omitted.
Eight is a nice power of two.
Can you explain how that's helpful? I'm not being obtuse, I just don't follow
Re: C++ proposal: There are exactly 8 bits in a byte
#67Re: C++ proposal: There are exactly 8 bits in a byte
#68So please do excuse my ignorance, but is there a "logic" related reason other than hardware cost limitations ala "8 was cheaper than 10 for the same number of memory addresses" that bytes are 8 bits instead of 10? Genuinely curious, as a high-level dev of twenty years, I don't know why 8 was selected. To my naive eye, It seems like moving to 10 bits per byte would be both logical and make learning the trade just a li…
Re: C++ proposal: There are exactly 8 bits in a byte
#69Earlier quoted context omitted.
Doesn't matter ternary computers just have ternary bits, 8 of them ;)
Supposedly, "bit" is short for "binary digit", so we'd need a separate term for "ternary digit", but I don't wanna go there.
Re: C++ proposal: There are exactly 8 bits in a byte
#70Earlier quoted context omitted.
I, for one, hate that int8 == signed char. std::cout << (int8_t)32 << std::endl; //should print 32 dang it
Now you can also enjoy the fact that you can't even compile: std::cout because there is no default operator<< defined.