πŸ””πŸ””πŸ”” My April 1st fun last night: a new C++ Undefined Sanitizer runtime: The ␇ Runtime Every time you exercise UB, a bell chimes. Unless you're on macOS, in which case is says out loud which UB you've encountered, and then taunts you. reviews.llvm.org/D77219 πŸ””πŸ””πŸ””

Apr 1, 2020 Β· 2:49 PM UTC

7
36
9
177
I remember getting the idea for the UB bell from twitter but couldn’t find the origin! Turns out @olafurw was my muse, in the response to this silly idea πŸ™ πŸ””
I want a programming language which uses the ASCII BEL character ('\a', 0x7, ␇) for something. A few ideas: βˆ™ Pattern matching (sound on each match!) βˆ™ Abort (sound when the program dies!) What else would work well?
1
6
Replying to @jfbastien
You listened to my request! Thank you.
Can I get a compiler that will essentially run `std::cout << "Undefined Behavior\n";` Anytime it encounters one? As a kind of a shame tactic or a way to tease the dev and make them madly try to find it? The old adage "Remove all warnings" can be turned into "Remove all UB"
1
5
I remember this ring-a-bell-on-UB idea coming from twitter ~2 years ago, I think a shitpost with @johnregehr, but I can’t find the original source!
1
2
Replying to @jfbastien
finally, a soundness checker that delivers on its promise
31
Replying to @jfbastien
Should I open an issue if UB doesn't ring a bell?
9
Replying to @jfbastien
omg🀣
4
"To avoid Pavlovian effects" got me GOOD. πŸ˜‚
2