Better HN
topnewbestaskshowjobs
Log inSign up

liiisalong

7 karma · joined Oct 6, 2022 (4y ago) · 3 submissions

Submissions

comment 4y ago · link · parent

The difference is that implementation defined behavior must be documented and consistent, you get rid of code magically disappearing (null checks after null pointer deref for example) and becoming security problems when you update your compiler.

comment 4y ago · link · parent

"Text Is the Universal Interface"

I've never understood this 'truth'.

How is "Temperature: 45C" somehow easier to parse/process than 0x01 0x00 0x00 0x00 0x4D

You still always have to consider the exact structure of the text (<Field> <colon> <space> <value> <unit>) same as any binary format.

comment 4y ago · link · parent

Turning all UB into IB would be better so a compiler can provide --overflow=crash or --overflow=wrap.