Settings

Theme

Reading the Code Around Make_u32_from_two_u16()

cybersect.substack.com

2 points by robertgraham 5 months ago · 1 comment

Reader

robertgrahamOP 5 months ago

This blogpost comments on Linus's latest tirade by reading the code.

For example, it explains the specific problem of technical debt on failing to mask of high order bits by casting the low part to (u16). Years from now, when this leads to a bug, you'll no longer be able to fix the macro because inevitable some code will by that time depend upon high order bits in the low part.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection