When JSON Schema Crashes Your Inference Server: Regex DoS in C++
Feed `std::regex` a pathological pattern and a crafted input, and watch it spiral. Input length 16 characters: 4.48 milliseconds. Input length 18: 18 milliseconds. Input length 20: over a second. The
Modern C++ // dev May 8, 2026 9 min read
Compile-Time Unsigned Overflow Detection in C++: From `if`-checks to `constexpr` Assertions
Unsigned overflow wraps. That's the contract. C++ won't catch it, the CPU won't trap it. But your size calculation that wraps to a smaller buffer? That's a memory corruption vulnerability, and it's yo
Modern C++ // dev May 1, 2026 9 min read
Parallel execution for loops: C++26's work-stealing scheduler under the hood
I've spent enough time staring at `perf stat` output to recognize a pattern: OpenMP's dynamic scheduler measures **55,593 ops/sec** on Zipf-distributed task costs with 512 tasks. That's about 18 micro
Modern C++ // dev Apr 24, 2026 9 min read
P3373R2: The Case for a Standardized Low-Latency I/O API
Here's the uncomfortable truth: modern C++ standard library I/O becomes a bottleneck at scale. Traditional POSIX APIs introduce 1–10 microseconds of latency per operation due to syscall overhead and k
Modern C++ // dev Apr 17, 2026 10 min read
Compile-Time String Substitution with C++26 Reflection
You've probably formatted a string in C++ more times than you've thought about how it works. Write a format string, pass some values; the library parses at runtime. It's a solved problem, shipped, sta
Modern C++ // dev Apr 14, 2026 11 min read
C++26 Move Semantics: What's New Since CppCon 2025 Basics Talk
If you watched Ben Saks's CppCon 2025 'Back to Basics: Move Semantics' talk, you know what moves are and why the compiler calls them. That talk is solid. C++26 doesn't contradict it. What it does is t
Modern C++ // dev Apr 10, 2026 8 min read
C++23 std::stacktrace: Never Debug Blind Again
I have written the `#ifdef` tower — `backtrace()` on Linux, `CaptureStackBackTrace()` on Windows, `dladdr` for symbol resolution on one side, `dbghelp.dll` on the other — more times than I care to adm
Modern C++ // dev Apr 7, 2026 9 min read
C++26 Is Finalized: What Shipped, What Didn't, and What It Means
C++26 was voted out in March 2026. Contracts, reflection, and sender/receiver all shipped. I fed every major feature through GCC 15 and Clang 21 to see what actually compiles today.
Modern C++ // dev Apr 3, 2026 10 min read
C++ Profiles: What, Why, and How at using std::cpp 2026
I spent a week after using std::cpp 2026 trying to answer one question about profiles: do the checks cost anything? The proposal sounds good on paper — opt-in safety enforcement per translation unit,
Modern C++ // dev Mar 27, 2026 8 min read
C++20 Modules: The Tooling Gap
GCC 15 — six years after C++20 — still does not enable modules with -std=c++20. The tooling gap is real, and it is not closing fast.
Modern C++ // dev Mar 20, 2026 10 min read
Contracts in C++26: What They Check, What They Cost, When to Use Them
That's GCC 15.2.1, `-O2 -std=c++26`, on an i7-4790 at 3.6 GHz. The function under test does one multiply. One precondition is checked.
Modern C++ // dev Mar 17, 2026 9 min read