Undefined behavior, and the Sledgehammer Principle | The Pasture
Previously, an article made the rounds concerning Undefined behavior that made the usual Rust crowd go nuts and the usual C and C++ people get grumpy that someone Did Not Understand the Finer Points and Nuance of Their Brilliant Language. So, as usual, it’s time for me to do what I do best
Previously, an article made the rounds concerning Undefined behavior that made the usual Rust crowd go nuts and the usual C and C++ people get grumpy that someone Did Not Understand the Finer Points and Nuance of Their Brilliant Language. So, as usual, it’s time for me to do what I do best and add nothing of value to the conversation whatsoever. It’s time to get into The Big One in C and C++, and the Sledgehammer Principle. Undefined behavior This article is the one that flew around late November 2022 with people having a minor conniption over the implications that GCC will take your grubby si
related reading
- What Every C Programmer Should Know About Undefined Behavior #2/3 - The LLVM Project Blogblog.llvm.org
- What Every C Programmer Should Know About Undefined Behavior #1/3 - The LLVM Project Blogblog.llvm.org
- What Every C Programmer Should Know About Undefined Behavior #3/3 - The LLVM Project Blogblog.llvm.org
- Weekend projects: getting silly with Clcamtuf.substack.com
- Getting silly with C, part -5^-7 - lcamtuf’s thinglcamtuf.substack.com
- C Isn't A Programming Language Anymore - Faultlorefaultlore.com
- Computers can be understood - Made of Bugsblog.nelhage.com
- A half-hour to learn Rustfasterthanli.me
- Destroy All Values: Designing Deinitialization in Programming Languages - Faultloregankra.github.io
- Zig: Already More Knowable Than C - Andrew Kelleyandrewkelley.me
- Working with strings in Rustfasterthanli.me
- Writing a C compiler in 500 lines of Pythonvgel.me