Non-conforming C++: the Secrets the Committee Is Hiding From You
summary
Shows concrete nonstandard compiler tricks: GCC case ranges, unnamed struct/union members, omitted-operand conditional (an Elvis-like operator), designated initializers and indexed array initializers, plus flexible array members and label addresses. Demonstrates a placement-new array overhead in the standard that makes placement-array unsafe and why uninitialized_construct_n plus casts are undefined; presents a working GCC extension using a flexible-array member. Replaces interpreter switch with labels as values jump table and reports measured speedups ~15% on a toy VM and up to 41% (≈20% average) in real Lua benchmarks.
AI-written summary · about
chapters (3)
related talks
01h 28mProgramming in Modern C with a Sneak Peek into C23
53mC++ Features You Might Not Know
51mC++ Features You Might Not Know
56mCute C++ Tricks (and what you can learn from them): Part 2 of N
01h 27mDangerous Optimizations! in C++ - Part Deux
01h 30mDangerous Optimizations in C and C++ Programming Languages
15mC++ WAT
59mModern C++ for Fun and Profit: This isn’t your old C++
