Dug up this historic example from glibc of why optimizing compilers are a necessary mitigation against hideous code: https://sourceware.org/git/?p=glibc.git;a=blob;f=string/strstr.c;hb=0ecb606cb6cf65de1d9fc8a919bceb4be476c602 …
And you end up with code that's impossible to debug/verify/audit because it's not even obvious what it's doing.
-
-
there are tradeoffs WRT optimizations; want fast, but don't want visible effects on language semantics. need to avoid crossing this line.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
...this is is an implementation of KMP", then arguably one might be able to get away at least with maintenance.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Welp, in this case the impossibility of maintenance is an implementation choice. Had the author stated: "this is naive linear search or...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.