C++ proposal: There are exactly 8 bits in a byte
31–40 of 357 posts
Re: C++ proposal: There are exactly 8 bits in a byte
#32Re: C++ proposal: There are exactly 8 bits in a byte
#33Jean-Luc Picard
Re: C++ proposal: There are exactly 8 bits in a byte
#34Re: C++ proposal: There are exactly 8 bits in a byte
#35the fact that this isn't already done after all these years is one of the reasons why I no longer use C/C++. it takes years and years to get anything done, even the tiniest, most obvious drama free changes. contrast with Go, which has had this since version 1, in 2012: https://pkg.go.dev/builtin@go1#byte
Re: C++ proposal: There are exactly 8 bits in a byte
#36Re: C++ proposal: There are exactly 8 bits in a byte
#37I wish I knew what a 9 bit byte means. One fun fact I found the other day: ASCII is 7 bits, but when it was used with punch cards there was an 8th bit to make sure you didn't punch the wrong number of holes. https://rabbit.eng.miami.edu/info/ascii.html
Parity is for paper tape, not punched cards. Paper tape parity was never standardized. Nor was parity for 8-bit ASCII communications. Which is why there were devices with settings for EVEN, ODD, ZERO, and ONE for the 8th bit.
Punched cards have their very own encodings, only of historical interest.
Re: C++ proposal: There are exactly 8 bits in a byte
#38Earlier quoted context omitted.
"Word" is an outdated concept we should try to get rid of.
How exactly ? How else do you suggest CPUs do addressing ? Or are you suggesting to increase the size of a byte until it's the same size as a word, and merge both concepts ?
Re: C++ proposal: There are exactly 8 bits in a byte
#39At the same time, a `byte` is already an "alias" for `char` since C++17 anyway[1].
Re: C++ proposal: There are exactly 8 bits in a byte
#40In a char, not in a byte. Byte != char