←back to thread

216 points Twirrim | 1 comments | | HN request time: 0.201s | source
Show context
WalterBright ◴[] No.41875254[source]
D 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.

replies(4): >>41875486 #>>41875539 #>>41875878 #>>41876632 #
gerdesj ◴[] No.41875486[source]
"1. bytes are 8 bits"

How big is a bit?

replies(6): >>41875621 #>>41875701 #>>41875768 #>>41876060 #>>41876149 #>>41876238 #
1. dullcrisp ◴[] No.41876238[source]
At least 2 or 3