Re:Endianness, API Design, and Polymorphism in Rust
by glandium on Sunday November 28, 2021 @08:58PM
(#29375440)
Somehow this is connected to https://news.ycombinator.com/item?id=29367649
I had never thought of this until that thread, but our writing of numbers comes from Arabic, and Arabic is written from right to left. And from our western perspective numbers in Arabic being written left to right is backwards. But in fact, it's us who are backwards: Arabic is written from right to left, and numbers too... from the least significant to the most significant. But we took the numbers from Arabic and kept their left-to-right order and now write them from MSD to LSD...
[ Parent
| on HN ]
Re:Endianness, API Design, and Polymorphism in Rust
by masklinn on Monday November 29, 2021 @12:23AM
(#29376700)
> But we took the numbers from Arabic and kept their left-to-right order and now write them from MSD to LSD...
roman numbers were already “big endian”, though.
Re:Endianness, API Design, and Polymorphism in Rust
by mmastrac on Sunday November 28, 2021 @10:24PM
(#29376021)
Most significant digit first probably makes the most sense because you can immediately skip past the number after you identify the magnitude (the number of digits can be seen in the periphery of your vision without being read).
Re:Endianness, API Design, and Polymorphism in Rust
by schuyler2d on Monday November 29, 2021 @01:41PM
(#29383463)
My understanding is that in Arabic numbers were also left-to-right which facilitated a left column left-aligned with values and then a right column that with a right-margin with the descriptions. Thus both columns were aligned (for easy scanning and summing) and extra space was in the middle of the page.
Re:Endianness, API Design, and Polymorphism in Rust
by ttybird on Monday November 29, 2021 @06:07AM
(#29378441)
"but our writing of numbers comes from Arabic"
Not India?
Re:Endianness, API Design, and Polymorphism in Rust
by ncmncm on Thursday December 02, 2021 @12:43AM
(#29412936)
Yes, India. Where they were writing left to right.
So the Persians picked them up and put them in their right-to-left text, so little-endian for them, and then Europeans picked them up from the Persians, all as-is. Little-endian would make typesetting columns of figures simpler, but that ship sailed long ago.