Re: Cohen's paper on byte order

From: Bryan Olson (fakeaddress@nowhere.org)
Date: 04/10/03


From: Bryan Olson <fakeaddress@nowhere.org>
Date: Wed, 09 Apr 2003 22:58:06 GMT

Mok-Kong Shen wrote:
>
> Bryan Olson wrote:
>
>>Mok-Kong Shen wrote:
>> > What does that 'first' in 'low order-bit-first' mean?
>>
>>It means when converting between an octet and a string of eight
>>bits, map the octet's least-significant bit to the strings first
>>bit. As we saw, the MD5 spec specifies the other way - most
>>significant bit first.
>
> Why do you need that notion in the present context?

Because the context is Shen's question, and that's the answer.

> I detailed that there is no problem of ambiguity
> in any mapping of the chunk of 8 bits from its location
> in a file to a variable in one's program under any
> situations (with any weird OS, compiler, etc.)

Shen detailed how to make things not work. His posts are
just full of wrong information, which he doesn't care enough
to correct.

>> > If an 8-bit chunk is input, say, from a file into
>> > a variable in program, all 8 bits are there. What is
>> > then 'first'?
>>
>>It's exactly as I've said before. An octet is an eight-bit
>>unsigned integer. It has a most-significant bit and a least
>>significant bit. It does not a well-defined first bit and last
>>bit.
>
> I don't care whether a chunk of 8 bits in a file has
> the significance of numerical value as an integer or
> not.

As shown, Shen also doesn't care whether what he writes is
true, or whether systems designed along the lines he
advocates will inter-operate.

>> > You mentioned in a previous post of
>> > possible dependence even on compiler. o.k.
>>
>>Specifically, when Shen falsely claimed that C structs have a
>>bit with a lowest address, I pointed out that he was talking
>>nonsense. Layout of bit fields is up to the compiler and C
>>doesn't assume any bit even has its own address.
>
> The following is what I wrote:
>
> As an addendum to my previous post, I like to mention
> that the fact that in C one could define a data structure
> to access the individual bits clearly indicates that
> the physical bits in hardware has a natural numerical
> ordering. Therefore in any 8-bit chunk of hardware
> there is a bit with the lowerest address. This bit is
> clearly the unique candidate to be designated as the
> bit 0 of the chunk in my conviction.
>
> That means I can access the bits in hardware in a
> definite and orderly way. If follows that the bits
> in hardware are not like a mathematical set where
> the elements have no order among them but that
> there exists a certain natural numerical order.
> Note that I didn't say anything about 'address' of
> bits in C.

Shen apparently hasn't bothered reading what he wrote, even as
he quoted himself above. Read his indented quote above. First
sentence show's he's talking about how things work in C. Then
read the next sentence about "a bit with the lowerest [sic]
address".

He just doesn't care.

-- 
--Bryan


Relevant Pages

  • Re: rebooting on own?
    ... but I took care of that" (and I really don't want to know how you ... monitor, mouse & keyboard connections. ... Check the temps with the BIOS hardware monitor settings to ... began) check out your HDD ...
    (microsoft.public.windowsxp.general)
  • Re: XP Pro activation - false positive
    ... Activation Widiot would care about a slave drive is the open question. ... My understanding of WPA is that the hardware ... >> slave a customer's hard drive onto my XP Pro SP2 workstation to pull the ... >> it was powered off so that I could copy salvaged data onto it. ...
    (microsoft.public.windowsxp.general)
  • Re: Linux in Forth?
    ... >The notion of "Don't Care" states comes from Chuck. ... >get reduced to the simplest hardware possible. ... >plausible explanation of the 2:1 code size reduction. ... >care" states without the programmer explicitly setting out to do so. ...
    (comp.lang.forth)
  • Re: Linux in Forth?
    ... The notion of "Don't Care" states comes from Chuck. ... get reduced to the simplest hardware possible. ... plausible explanation of the 2:1 code size reduction. ...
    (comp.lang.forth)
  • Re: More Of Apples Legal Antics
    ... Now that you know that nonsense is over, would you care to explain 1. ... Or without having to buy one of Apple's reasonably priced Macs. ... You don't seem to care if it's done with any other OS so why care if it's Apple? ... Give up on the hardware and market OS X for PCs. ...
    (comp.sys.mac.advocacy)