[Haskell-cafe] Re: Endianess

Daniel Fischer daniel.is.fischer at web.de
Tue May 13 15:43:57 EDT 2008


Am Dienstag, 13. Mai 2008 21:28 schrieb Aaron Denney:
> On 2008-05-13, Ketil Malde <ketil at malde.org> wrote:
> > Jed Brown <jed at 59A2.org> writes:
> >> This, of course, is because `od -x' regards the input as 16-bit
> >> integers.  We can get saner output if we regard it is 8-bit integers.
> >
> > Yes, of course. The point was that for big-endian, the word size
> > won't matter.  Little-endian words will be reversed with respect to
> > the normal (left-to-right, most significant first) way we print
> > numbers.
>
> Right.  Because we print numbers backwards.

Try hebrew or arab then, they have the least significant digit first in 
reading order :)



More information about the Haskell-Cafe mailing list