si1428 (3) [Avatar] Offline
#1
pdf and mobi of Go in Action v4 MEAP are different.
mobi version has a bytes vs nibbles problem in section 2.2.4. for example
"The conversion of the 64 bit integer value into a 32 bit integer value will cause the eight high order bytes of the 64 bit integer value to be truncated."
A 64-bit integer has 8 bytes total. In the discussion and in the binary displayed it seem that you're talking about nibbles but using the word byte.
Bill Kennedy (69) [Avatar] Offline
#2
Re: Mobi vs pdf, nibbles and bytes
I will tell the publisher right away. Thanks
Bill Kennedy (69) [Avatar] Offline
#3
Re: Mobi vs pdf, nibbles and bytes
They are telling me this is now fixed. Can you please check.
si1428 (3) [Avatar] Offline
#4
Re: Mobi vs pdf, nibbles and bytes
Unfortunately it's wrong now in the pdf too.
For example the text says
"Go takes the first 8 bytes of the 64 bit integer variable and writes them to the 8 bytes of memory assigned to the 32 bit variable."
There are 8 total bytes in a 64 bit integer and 4 bytes in a 32 bit integer.
It might help if your diagram in this section had the bits arranged in bunches of 8 instead of 4.
si1428 (3) [Avatar] Offline
#5
Re: Mobi vs pdf, nibbles and bytes
I see in the August 11 version that this section has been removed.
Soooo - Never mind.
Looking forward to reading the new material. Thanks!