But how many bytes are there in a word?
C++ proposal: There are exactly 8 bits in a byte
91–100 of 357 posts
Re: C++ proposal: There are exactly 8 bits in a byte
#92Earlier 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
On the other hand, if computing settled on a three-valued logic (e.g. 0/1/«something» where «something» has been proposed as -1, «undefined»/«unknown»/«undecided» or a «shade of grey»), we would have had 9 bit bytes (a power of three).
10 was tried numerous times at the dawn of computing and… it was found too unwieldy in the circuit design.
Re: C++ proposal: There are exactly 8 bits in a byte
#93Previously, in JF's "Can we acknowledge that every real computer works this way?" series: "Signed Integers are Two’s Complement" https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p09... >
Maybe specifying that floats are always IEEE floats should be next? Though that would obsolete this Linux kernel classic so maybe not. https://github.com/torvalds/linux/blob/master/include/math-e...
I found this snapshot of it, though it's not on the real Dilbert site: https://www.reddit.com/r/linux/comments/73in9/computer_holy_...
Re: C++ proposal: There are exactly 8 bits in a byte
#94Re: C++ proposal: There are exactly 8 bits in a byte
#95Is C++ capable of deprecating or simplifying anything? Honest question, haven't followed closely. rand() is broken,I;m told unfixable and last I heard still wasn't deprecated. Is this proposal a test? "Can we even drop support for a solution to a problem literally nobody has?"
Re: C++ proposal: There are exactly 8 bits in a byte
#96But how many bytes are there in a word?
const char word[] = {‘w’, ‘o’, ‘r’, ‘d’};
assert(sizeof word == 4);Re: C++ proposal: There are exactly 8 bits in a byte
#97Not sure about that, seems pretty controversial to me. Are we forgetting about the UNIVACs?
Re: C++ proposal: There are exactly 8 bits in a byte
#98Re: C++ proposal: There are exactly 8 bits in a byte
#99Earlier 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
#100D made a great leap forward with the following: 1. bytes are 8 bits 2. shorts are 16 bits 3. ints are 32 bits 4. longs are 64 bits 5. arithmetic is 2's complement 6. IEEE floating point and a big chunk of wasted time trying to abstract these away and getting it wrong anyway was saved. Millions of people cried out in relief! Oh, and Unicode was the character set. Not EBCDIC, RADIX-50, etc.
How big is a bit?