3 ms·
For context on why you should read this: this is a well written article that explains in detail how some bitwise operations work to parse a temperature (think -
by WoodenChair 3y ago
For context on why you should read this: this is a well written article that explains in detail how some bitwise operations work to parse a temperature (think -10.3, or 3.4) with no conditionals (no if-statements or switches). This results in very fast parsing. The language used is Java but it could just as easily be C or Swift.
- mnau 3y agoResult is fast parsing with no error checking. If the input wasn't in expected format (e.g. different decimal separator), the result would be incorrect. Fun ss an exercise, but hard to understand, maintain.
- deleted 3y ago[deleted]