POV-Ray : Newsgroups : povray.off-topic : Programming langauges : Re: Programming langauges Server Time
5 Sep 2024 13:12:16 EDT (-0400)
  Re: Programming langauges  
From: Darren New
Date: 26 Oct 2009 12:17:56
Message: <4ae5cbb4$1@news.povray.org>
Invisible wrote:
> As far as I know, even in languages that are usually written from right 
> to left, the most significant digit is still written "first" and the 
> least written "last".

I'm pretty sure that in arabic, where numbers come from, the LSB is written 
first (i.e., arabic, right-to-left, writes digits in the same order as we do).

The benefit of MSB first is that it's in "readable" order. The benefit of 
LSB first is that you can easily find the LSB in case you want to move the 
bytes from a long to a short, for example.

I saw one discussion that printed hex dumps with the addresses incrementing 
for the ASCII part and decrementing for the numeric part, with the address 
in a column down the middle, which made reading little endian numbers trivial.

And since it's all imaginary anyway, and there is *NO ORDER* to bytes in a 
computer, it's all just mathematical relationships between powers of a 
polynomial and addresses, any argument you make against LSB vs MSB you can 
also make against writing polynomials one way or the other.

-- 
   Darren New, San Diego CA, USA (PST)
   I ordered stamps from Zazzle that read "Place Stamp Here".


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.