home.social

#endianness — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #endianness, aggregated by home.social.

  1. What kind of mishegus is this?
    "There are ARM processors that have mixed-endian floating-point representation for double-precision numbers: each of the two 32-bit words is stored as little-endian, but the most significant word is stored first."

    #floatingpoint #endianness

  2. What kind of mishegus is this?
    "There are ARM processors that have mixed-endian floating-point representation for double-precision numbers: each of the two 32-bit words is stored as little-endian, but the most significant word is stored first."

    #floatingpoint #endianness

  3. What kind of mishegus is this?
    "There are ARM processors that have mixed-endian floating-point representation for double-precision numbers: each of the two 32-bit words is stored as little-endian, but the most significant word is stored first."

    #floatingpoint #endianness

  4. What kind of mishegus is this?
    "There are ARM processors that have mixed-endian floating-point representation for double-precision numbers: each of the two 32-bit words is stored as little-endian, but the most significant word is stored first."

    #floatingpoint #endianness

  5. What kind of mishegus is this?
    "There are ARM processors that have mixed-endian floating-point representation for double-precision numbers: each of the two 32-bit words is stored as little-endian, but the most significant word is stored first."

    #floatingpoint #endianness

  6. [Перевод] Переносимый код: Fighting the Lemmings

    Сергей Каличев, старший разработчик, Angie Software Однажды, давным-давно, я наткнулся на одну хорошую статью по разработке переносимого кода и решил её перевести. Когда же это было... ё-моё, в 2008 году, 17 лет назад! Обалдеть, как время летит. Статья называлась "Fighting the Lemmings", автор Martin Husemann. Выложил перевод на LOR . С тех пор много воды утекло и, когда я попытался поискать статью в Интернете, то обнаружил, что ни оригинальной статьи, ни перевода, найти практически невозможно. Перевод ещё сохранился в глубоких закромах OpenNet , а оригинал только в архиве Интернета . Ссылки на PDF-ки тоже протухли и больше не работают. Обидно, это ведь такая нетленка для системщиков. Понятно, что переносимость уже сто раз пережёвана в других статьях и книгах, но тут всё было сконцентрировано и написано доходчиво. При этом актуальность до сих пор не потеряна. Ну а что, собственно, кардинально поменялось в разработке переносимого кода на C с тех пор? Если не обращать внимание на упоминания некоторых архитектур и ОС, которые сейчас, да и во времена перевода, звучат, как придания старины глубокой, то в остальном, обо всех особенностях разработки переносимого кода, описанных в статье, надо помнить и сегодня. Выкладываю текст, как он есть, без каких-либо современных правок. Для тех, кому удобнее читать в PDF, вот ссылки: PDF оригинальной статьи PDF перевода А теперь сама статья.

    habr.com/ru/articles/890530/

    #C #code #portability #переносимость #unix #linux #endianness #align #выравнивание #lemmings

  7. [Перевод] Переносимый код: Fighting the Lemmings

    Сергей Каличев, старший разработчик, Angie Software Однажды, давным-давно, я наткнулся на одну хорошую статью по разработке переносимого кода и решил её перевести. Когда же это было... ё-моё, в 2008 году, 17 лет назад! Обалдеть, как время летит. Статья называлась "Fighting the Lemmings", автор Martin Husemann. Выложил перевод на LOR . С тех пор много воды утекло и, когда я попытался поискать статью в Интернете, то обнаружил, что ни оригинальной статьи, ни перевода, найти практически невозможно. Перевод ещё сохранился в глубоких закромах OpenNet , а оригинал только в архиве Интернета . Ссылки на PDF-ки тоже протухли и больше не работают. Обидно, это ведь такая нетленка для системщиков. Понятно, что переносимость уже сто раз пережёвана в других статьях и книгах, но тут всё было сконцентрировано и написано доходчиво. При этом актуальность до сих пор не потеряна. Ну а что, собственно, кардинально поменялось в разработке переносимого кода на C с тех пор? Если не обращать внимание на упоминания некоторых архитектур и ОС, которые сейчас, да и во времена перевода, звучат, как придания старины глубокой, то в остальном, обо всех особенностях разработки переносимого кода, описанных в статье, надо помнить и сегодня. Выкладываю текст, как он есть, без каких-либо современных правок. Для тех, кому удобнее читать в PDF, вот ссылки: PDF оригинальной статьи PDF перевода А теперь сама статья.

    habr.com/ru/articles/890530/

    #C #code #portability #переносимость #unix #linux #endianness #align #выравнивание #lemmings

  8. [Перевод] Переносимый код: Fighting the Lemmings

    Сергей Каличев, старший разработчик, Angie Software Однажды, давным-давно, я наткнулся на одну хорошую статью по разработке переносимого кода и решил её перевести. Когда же это было... ё-моё, в 2008 году, 17 лет назад! Обалдеть, как время летит. Статья называлась "Fighting the Lemmings", автор Martin Husemann. Выложил перевод на LOR . С тех пор много воды утекло и, когда я попытался поискать статью в Интернете, то обнаружил, что ни оригинальной статьи, ни перевода, найти практически невозможно. Перевод ещё сохранился в глубоких закромах OpenNet , а оригинал только в архиве Интернета . Ссылки на PDF-ки тоже протухли и больше не работают. Обидно, это ведь такая нетленка для системщиков. Понятно, что переносимость уже сто раз пережёвана в других статьях и книгах, но тут всё было сконцентрировано и написано доходчиво. При этом актуальность до сих пор не потеряна. Ну а что, собственно, кардинально поменялось в разработке переносимого кода на C с тех пор? Если не обращать внимание на упоминания некоторых архитектур и ОС, которые сейчас, да и во времена перевода, звучат, как придания старины глубокой, то в остальном, обо всех особенностях разработки переносимого кода, описанных в статье, надо помнить и сегодня. Выкладываю текст, как он есть, без каких-либо современных правок. Для тех, кому удобнее читать в PDF, вот ссылки: PDF оригинальной статьи PDF перевода А теперь сама статья.

    habr.com/ru/articles/890530/

    #C #code #portability #переносимость #unix #linux #endianness #align #выравнивание #lemmings

  9. [Перевод] Переносимый код: Fighting the Lemmings

    Сергей Каличев, старший разработчик, Angie Software Однажды, давным-давно, я наткнулся на одну хорошую статью по разработке переносимого кода и решил её перевести. Когда же это было... ё-моё, в 2008 году, 17 лет назад! Обалдеть, как время летит. Статья называлась "Fighting the Lemmings", автор Martin Husemann. Выложил перевод на LOR . С тех пор много воды утекло и, когда я попытался поискать статью в Интернете, то обнаружил, что ни оригинальной статьи, ни перевода, найти практически невозможно. Перевод ещё сохранился в глубоких закромах OpenNet , а оригинал только в архиве Интернета . Ссылки на PDF-ки тоже протухли и больше не работают. Обидно, это ведь такая нетленка для системщиков. Понятно, что переносимость уже сто раз пережёвана в других статьях и книгах, но тут всё было сконцентрировано и написано доходчиво. При этом актуальность до сих пор не потеряна. Ну а что, собственно, кардинально поменялось в разработке переносимого кода на C с тех пор? Если не обращать внимание на упоминания некоторых архитектур и ОС, которые сейчас, да и во времена перевода, звучат, как придания старины глубокой, то в остальном, обо всех особенностях разработки переносимого кода, описанных в статье, надо помнить и сегодня. Выкладываю текст, как он есть, без каких-либо современных правок. Для тех, кому удобнее читать в PDF, вот ссылки: PDF оригинальной статьи PDF перевода А теперь сама статья.

    habr.com/ru/articles/890530/

    #C #code #portability #переносимость #unix #linux #endianness #align #выравнивание #lemmings

  10. Riding in this car across the countryside in Oman, I just had an insight that is a new argument in the little-endian / big-endian discussion:

    Arabic numerals are little-endian!

    A question I sometimes ask myself: why are our written numbers big-endian? That is, why start with the larger valued numbers on the left?

    I confess, network byte order notwithstanding, that little-endian seems more natural for information processing because, if the number is written in a decimal-coded array, the array index corresponds to the power-of-10 (starting with zero, as God and Dennis Ritchie intended).

    Our numbering system is sometimes called Arabic numerals, and this is because base-10 numbers were invented in Arabia.

    What direction is Arabic script? Right to left! In the context of western script, our numbers are written backwards!

    #endianness #arabic #oman

  11. Riding in this car across the countryside in Oman, I just had an insight that is a new argument in the little-endian / big-endian discussion:

    Arabic numerals are little-endian!

    A question I sometimes ask myself: why are our written numbers big-endian? That is, why start with the larger valued numbers on the left?

    I confess, network byte order notwithstanding, that little-endian seems more natural for information processing because, if the number is written in a decimal-coded array, the array index corresponds to the power-of-10 (starting with zero, as God and Dennis Ritchie intended).

    Our numbering system is sometimes called Arabic numerals, and this is because base-10 numbers were invented in Arabia.

    What direction is Arabic script? Right to left! In the context of western script, our numbers are written backwards!

    #endianness #arabic #oman

  12. Riding in this car across the countryside in Oman, I just had an insight that is a new argument in the little-endian / big-endian discussion:

    Arabic numerals are little-endian!

    A question I sometimes ask myself: why are our written numbers big-endian? That is, why start with the larger valued numbers on the left?

    I confess, network byte order notwithstanding, that little-endian seems more natural for information processing because, if the number is written in a decimal-coded array, the array index corresponds to the power-of-10 (starting with zero, as God and Dennis Ritchie intended).

    Our numbering system is sometimes called Arabic numerals, and this is because base-10 numbers were invented in Arabia.

    What direction is Arabic script? Right to left! In the context of western script, our numbers are written backwards!

  13. Riding in this car across the countryside in Oman, I just had an insight that is a new argument in the little-endian / big-endian discussion:

    Arabic numerals are little-endian!

    A question I sometimes ask myself: why are our written numbers big-endian? That is, why start with the larger valued numbers on the left?

    I confess, network byte order notwithstanding, that little-endian seems more natural for information processing because, if the number is written in a decimal-coded array, the array index corresponds to the power-of-10 (starting with zero, as God and Dennis Ritchie intended).

    Our numbering system is sometimes called Arabic numerals, and this is because base-10 numbers were invented in Arabia.

    What direction is Arabic script? Right to left! In the context of western script, our numbers are written backwards!

    #endianness #arabic #oman

  14. Riding in this car across the countryside in Oman, I just had an insight that is a new argument in the little-endian / big-endian discussion:

    Arabic numerals are little-endian!

    A question I sometimes ask myself: why are our written numbers big-endian? That is, why start with the larger valued numbers on the left?

    I confess, network byte order notwithstanding, that little-endian seems more natural for information processing because, if the number is written in a decimal-coded array, the array index corresponds to the power-of-10 (starting with zero, as God and Dennis Ritchie intended).

    Our numbering system is sometimes called Arabic numerals, and this is because base-10 numbers were invented in Arabia.

    What direction is Arabic script? Right to left! In the context of western script, our numbers are written backwards!

    #endianness #arabic #oman

  15. Does anyone know if little-endian has any technical advantages? Big-endian machines are all but extinct these days (outside of IBM mainframes).
    Or is is just a case of having to pick one and stick with it, like how all life on Earth is made out of L-chiral amino acids and D-chiral carbohydrates?
    #bigendian #endianness #chirality #cpu #cpudesign

  16. Does anyone know if little-endian has any technical advantages? Big-endian machines are all but extinct these days (outside of IBM mainframes).
    Or is is just a case of having to pick one and stick with it, like how all life on Earth is made out of L-chiral amino acids and D-chiral carbohydrates?
    #bigendian #endianness #chirality #cpu #cpudesign

  17. Does anyone know if little-endian has any technical advantages? Big-endian machines are all but extinct these days (outside of IBM mainframes).
    Or is is just a case of having to pick one and stick with it, like how all life on Earth is made out of L-chiral amino acids and D-chiral carbohydrates?
    #bigendian #endianness #chirality #cpu #cpudesign

  18. Does anyone know if little-endian has any technical advantages? Big-endian machines are all but extinct these days (outside of IBM mainframes).
    Or is is just a case of having to pick one and stick with it, like how all life on Earth is made out of L-chiral amino acids and D-chiral carbohydrates?
    #bigendian #endianness #chirality #cpu #cpudesign

  19. Does anyone know if little-endian has any technical advantages? Big-endian machines are all but extinct these days (outside of IBM mainframes).
    Or is is just a case of having to pick one and stick with it, like how all life on Earth is made out of L-chiral amino acids and D-chiral carbohydrates?
    #bigendian #endianness #chirality #cpu #cpudesign

  20. CW: Computing, binary data

    Address spaces are in ascending order, but for writing numbers, place value is in *descending* order. In my opinion, the little-endian byte order gets it technically right by having a consistent and logical order, just ascending. The big-endian byte order mixes the two, with addresses increasing but byte "place-value" descending.

    #endianness #computing #ISA

  21. CW: Computing, binary data

    Address spaces are in ascending order, but for writing numbers, place value is in *descending* order. In my opinion, the little-endian byte order gets it technically right by having a consistent and logical order, just ascending. The big-endian byte order mixes the two, with addresses increasing but byte "place-value" descending.

    #endianness #computing #ISA

  22. @natecull #ocaml, #rust and #Haskell all have specific packages in #Fedora and #Debian to deal with #endianness so it seems to matter. Also add that according to utfcheck Debian package description UTF-16 can be encoded in big or little-endian

  23. @natecull #ocaml, #rust and #Haskell all have specific packages in #Fedora and #Debian to deal with #endianness so it seems to matter. Also add that according to utfcheck Debian package description UTF-16 can be encoded in big or little-endian

  24. @natecull #ocaml, #rust and #Haskell all have specific packages in #Fedora and #Debian to deal with #endianness so it seems to matter. Also add that according to utfcheck Debian package description UTF-16 can be encoded in big or little-endian

  25. Regarding #endianness, I can never remember if little-endian means high-order bits at lower address or low-order bits at lower address. I also can never remember which one of little-endian or big-endian is normal and which one only happens if you're looking at hardware from 30 years ago.

    Anyone got a good mnemonic?