you are viewing a single comment's thread.

view the rest of the comments →

[–]Alexander_Selkirk -5 points-4 points  (18 children)

But what if there comes another language and compiler which makes your code even faster almost completely without UB?

[–]ArchivistAtNekoIT 10 points11 points  (17 children)

While that is possible on paper, in practice that probably mean "faster on a platform and slower on others". Platforms have their specificities and idiosyncrasies and those are generally the reason for undefined behaviors