News for hackers. Stuff that matters.
Re:Goals and Priorities for C++ by phkahler on Thursday May 21, 2020 @10:43PM (#23268203)
If your code depends on endianness you're either over-optimizing or doing something wrong. At least that's what I've learned over may years of reading the lessons of many people.
Re:Goals and Priorities for C++ by dodobirdlord on Friday May 22, 2020 @01:07AM (#23268823)
If you're going to deploy your protocol buffer parsing library to literally a million servers you may be prepared to optimize the last shred of performance out of it. The authors have an unusual use case.
Re:Goals and Priorities for C++ by AnimalMuppet on Wednesday May 27, 2020 @03:07PM (#23328291)
Replying very late, because I was on vacation.

In embedded, you're often talking directly to hardware chips. How you talk to those hardware chips absolutely depends on the endian-ness of the CPU... unless the chips all have 8-bit-only interfaces.

Re:Goals and Priorities for C++ by zozbot234 on Friday May 22, 2020 @09:07AM (#23271595)
If you're "over-optimizing" in a way that makes your code depend on platform endianness, you're definitely doing things wrong. Even then, it's quite possible to make compilation error out if targeting the wrong endianness. This isn't something that the C++ standard should be concerned with.