Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. clacke (clacke@social.heldscal.la)'s status on Saturday, 20-Jan-2018 06:27:59 EST clacke clacke
    The byte order of your host should be below your level of abstractiom, even in C.

    https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html

    /via @lobsters https://lobste.rs/s/xhyuxw/byte_order_fallacy
    In conversation Saturday, 20-Jan-2018 06:27:59 EST from social.heldscal.la permalink

    Attachments

    1. File without filename could not get a thumbnail source.
      The byte order fallacy
      Whenever I see code that asks what the native byte order is, it's almost certain the code is either wrong or misguided. And if the native b...
    1. Vertigo (vertigo@mastodon.social)'s status on Saturday, 20-Jan-2018 12:56:01 EST Vertigo Vertigo
      in reply to

      @clacke @lobsters Back in the days of 2 MIPS processors running C code (e.g., 68000, 8086), this sort of byte-order-specific code made a real difference, especially when pushing pixels around (e.g., as in GUI code).

      Today, not so much. Accelerated graphics hardware takes care of endian issues for you, OSes have abstract views of the screen anyway, and so the only thing to really worry about is file and network stream I/O.

      In conversation Saturday, 20-Jan-2018 12:56:01 EST from mastodon.social permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.