Conversation
Notices
-
Hallå Kitteh (clacke@social.heldscal.la)'s status on Saturday, 20-Jan-2018 11:27:59 UTC Hallå Kitteh 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-
Vertigo (vertigo@mastodon.social)'s status on Saturday, 20-Jan-2018 17:56:01 UTC Vertigo @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.
Hallå Kitteh likes this.Hallå Kitteh repeated this.
-