you can probably find an undefined behaviour to surprise any experienced C/C++ programmer. the empty infinite loop elision in C++ is a fun one (though LLVM has what i _think_ is a bug, where it does this in C too which doesn't _seem_ to allow it; hmmmm, is Rust affected?)
-
-
-
ARGHJKAHDKJS Rust has the same issue but LLVM at least generates UD2 instructions at the point it deems "unreachable" in the Rust. the C just runs straight into the .rodata section and crashes and burns. https://rust.godbolt.org/z/7BTV_F pic.twitter.com/CQSCo55e1E
- 2 more replies
New conversation -
-
-
It makes it easier for experts too. Every piece of systems programming quickly gains too many moving pieces to confidently keep in your head at the same time, or gains dependencies where assumptions break.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
i used to think it was a good idea to teach C to students first not to be productive but to understand how it’s implemented and then moving onto other levels of abstraction. that was for a curriculum that used c++ though — i agree it’s better to avoid such a trial by fire at all
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.