r/computerscience • u/lowiemelatonin • May 15 '25
Discussion Most underground and unknown stuff
Which kind of knowledge you think is really underground and interesting, but usually nobody looks up?
35
Upvotes
View all comments
Show parent comment
2
u/comrade_donkey May 15 '25 edited May 15 '25
That's probably not what that comment meant.
UB inhibits compiler optimizations. And people write UB in C/C++ without realizing it, all the time. Something as simple as having an addition that could overflow anywhere in your function body can be enough to trigger UB.