--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Fri, Mar 28, 2014 at 6:03 AM, <jonathan....@gmail.com> wrote:
>
> Slightly off topic, but are bytes equivalent to atomics in terms of
> maintaining their integrity? If the cpu operates on whole bytes rather than
> bits, it seems like this should be the case, although I'm probably missing
> something important.
I'm not aware of any processor where a byte will not maintain its
integrity.
Well it implies atomics being on par with channels wrt synchronization which it is not it seems.
The programmer thinks that the byte is 8 bit but it's 32 bits. Now put an 8-bit memory on that machine (a bad idea).Then connect two machines to that memory (an even badder idea). I fail to see how that "byte" is atomic.
I don't buy that the programmer needs to "know" that that "'byte'" is 32 bits long, and therefore it is no "byte".A "byte" is what it look like in the code, not on the bus.