News for hackers. Stuff that matters.
Re:WHLSL: Web High Level Shading Language by Gankro on Tuesday November 13, 2018 @01:18PM (#18443291)
To elaborate on the float example, see JSON, where text-based representations of numbers has led to massive incompatibilities among different parsers and generators. The original "spec" didn't even define if numbers were doubles or infinite precision or what. This is much harder to mess up with a binary format.

http://seriot.ch/parsing_json.php

Re:WHLSL: Web High Level Shading Language by pizlonator on Tuesday November 13, 2018 @03:34PM (#18444643)
Programming languages and intermediate representations are about a lot more than representing floats. I think that it’s true that the best specification for how to store floats is a binary one. But programs have a lot more than just float literals and text wins at most of the other ones.