🚀 New #C++26 feature: a user-friendly #assert macro! Because, obviously, developers have been desperately waiting for a fluffy, hand-holding version of assert to validate the runtime conditions of their existential dread. 🙄 So, next time your code implodes, at least it will do so with a polite apology. 🤦‍♂️
https://www.sandordargo.com/blog/2026/03/25/cpp26-user-friendly-assert #macro #newfeature #developerhumor #programminglife #runtimevalidation #HackerNews #ngated
C++26: A User-Friendly assert() macro

C++26 is bringing some long-overdue changes to assert(). But why are those changes needed? And when do we actually use assert, anyway? At its core, assert() exists to validate runtime conditions. If the given expression evaluates to false, the program aborts. I’m almost certain you’ve used it before — at work, in personal projects, or at the very least in examples and code snippets. So what’s the problem? The macro nobody treats like a macro assert() is a macro — and a slightly sneaky one at that. Its name is written in lowercase, so it doesn’t follow the usual SCREAMING_SNAKE_CASE convention we associate with macros. There’s a good chance you’ve been using it for years without ever thinking about its macro nature. Macros, of course, aren’t particularly popular among modern C++ developers. But the issue here isn’t the usual - but valid - “macros are evil” argument. The real problem is more specific: The preprocessor only understands parentheses for grouping. It does not understand other C++ syntax such as template angle brackets or brace-initialization. As a result, several otherwise perfectly valid-looking assertions fail to compile: 1 2 3 4 5 6 7 // https://godbolt.org/z/9sqM7PvWh using Int = int; int x = 1, y = 2; assert(std::is_same<int, Int>::value); assert([x, y]() { return x < y; }() == 1); assert(std::vector<int>{1, 2, 3}.size() == 3); Each of these breaks for essentially the same reason: the macro argument parsing gets confused by commas or braces that aren’t wrapped in an extra pair of parentheses. You can fix each of them, of course, by adding an extra pair of parentheses. For example the last assertion would become assert((std::vector<int>{1, 2, 3}.size() == 3)); - you can play with the examples here. But let’s be honest: this is ugly, easy to forget, and not exactly beginner-friendly. Sure, after hitting the problem once or twice, most people internalize the workaround — just like with the most vexing parse. Still, it’s unnecessary friction for such a fundamental utility. P2264R7: Making assert less fragile This is where Peter Sommerlad’s proposal, P2264R7, comes in. The proposal fixes the assert macro by redefining it as a variadic macro using __VA_ARGS__. Instead of accepting a single parenthesized expression, assert now takes (...) as its parameter. That small change makes all the previously broken examples just work — no extra parentheses required. What about diagnostic messages? Originally, the proposal allowed users to attach diagnostic text via the comma operator, similar to static_assert. That idea didn’t survive the review phase. Instead, there is a mechanism to prevent the use of the comma operator on a top level, so you cannot accidentally create always true assertions like this: 1 assert(x > 0 , "x was not greater than zero"); Something that you could very easily create from an existing static_assert. So if we want to have some diagnostics, we still have to use the && operator instead: 1 assert(x > 0 && "x was not greater than zero"); This keeps the semantics clear and avoids subtle bugs. But aren’t contracts coming? One common objection addressed in the proposal is the claim that assert is obsolete in a future with contracts. Contracts will be great. But they won’t make assert disappear overnight. Just as concepts didn’t eliminate SFINAE or older template techniques — they simply gave us better tools — contracts won’t erase assert either. Assertions will continue to exist in real-world codebases, whether directly or wrapped inside higher-level precondition utilities. Improving assert is still valuable, especially when the changes are small, simple, and easy to backport. If you’re curious, the paper discusses several other potential concerns in detail; you can find them in the section on potential liabilities of the proposed change. Compatibility and availability Importantly, this change does not break existing code. All previously valid usage patterns remain valid — the proposal merely enables new, less fragile ones. At the time of writing, (February 2026), none of the major compilers support this feature yet. As with many C++26 improvements, it will take some time before it becomes widely available. Conclusion The C++26 update to assert() is a great example of incremental language evolution done right. It doesn’t reinvent assertions, replace them with something flashier, or force new programming models on existing code. Instead, it quietly removes a long-standing sharp edge. By making assert variadic, the language eliminates a class of surprising compilation failures, improves readability, and reduces the cognitive overhead of using a tool that every C++ developer relies on. It’s a small change — but one that makes everyday C++ just a little bit nicer to work with. Sometimes, that’s exactly the kind of progress we need. Connect deeper If you liked this article, please hit on the like button, subscribe to my newsletter and let’s connect on Twitter!

Sandor Dargo’s Blog
Me trying to build a website without Kapee Theme...
Why struggle with complicated themes when Kapee does it all? Drag & drop, 12+ demos, no coding needed. Stop suffering, start building! 😤
https://1.envato.market/j3MY6
#KapeeTheme #Kapee #WordPress #WooCommerceTheme #WebDesignMemes #DeveloperHumor
Ah, the Bao I/O Coprocessor: because what the world really needed was another "open source" #SoC that only a PhD in ancient hieroglyphics could fully decipher. 😏 Who wouldn't want to wade through endless Raspberry Pi comparisons before being rewarded with assembly code that would make even a seasoned developer weep? 🎉
https://www.bunniestudios.com/blog/2026/bio-the-bao-i-o-coprocessor/ #openSource #RaspberryPi #assemblyCode #developerHumor #techNews #HackerNews #ngated
BIO: The Bao I/O Coprocessor « bunnie's blog

🚀 Oh, wow, Async Iterables in 2018? What a revelation! 🎉 It's almost as if the author discovered fire and decided to write a novel about how it changed cooking. 🔥 Because, clearly, front-end developers have been living in the Stone Age until now. 🙄
https://github.com/SacDeNoeuds/yawn #AsyncIterables #FrontEndDevelopment #TechRevolution #2018Innovation #DeveloperHumor #HackerNews #ngated
GitHub - SacDeNoeuds/yawn: Created with CodeSandbox

Created with CodeSandbox. Contribute to SacDeNoeuds/yawn development by creating an account on GitHub.

GitHub
Ah, the latest installment of "Let's Overcomplicate with Rust" 🎉. Apparently, we've decided that tracing our #Rust applications is the new Holy Grail, because clearly, developers don't have enough to do 🙄. Spoiler: It's 15 minutes of your life you won't get back, attempting to convince yourself that #OpenTelemetry isn't just another buzzword in the endless tech rat race 🚀.
https://signoz.io/blog/opentelemetry-rust/ #Overcomplication #DeveloperHumor #TechBuzzwords #HackerNews #ngated
Implementing OpenTelemetry in Rust Applications

A pragmatic guide to observability in Rust. Learn how to bridge OpenTelemetry with the tracing ecosystem to seamlessly export traces, logs, and metrics.

SigNoz
In this riveting snooze-fest, Jess Espino unravels the mysteries of Go's Scheduler, because clearly, there’s nothing more thrilling than P processors and lock-free allocations 💤🔧. For those of you who’ve always dreamed of understanding memory caches while dozing off, this 23-minute read is your golden ticket 🎟️🚪.
https://internals-for-interns.com/posts/go-runtime-scheduler/ #GoScheduler #MemoryManagement #TechReading #DeveloperHumor #HackerNews #ngated
The Scheduler | Internals for Interns

In the previous article we explored how Go’s memory allocator manages heap memory — grabbing large arenas from the OS, dividing them into spans and size classes, and using a three-level hierarchy (mcache, mcentral, mheap) to make most allocations lock-free. A key detail was that each P (processor) gets its own memory cache. But we never really explained what a P is, or how the runtime decides which goroutine runs on which thread. That’s the scheduler’s job, and that’s what we’re exploring today.

Internals for Interns
Zig's devlog is the perfect place for all 12 of its users to obsess over 30,000 lines of code changes that only the author claims to understand 😹. Reworking type resolution logic? More like a thrilling tale of how to make a 2026 paperweight! 🖥️💥
https://ziglang.org/devlog/2026/#2026-03-10 #ZigDevlog #ZigProgramming #CodeChanges #SoftwareDevelopment #DeveloperHumor #HackerNews #ngated
Devlog ⚡ Zig Programming Language

Ah, yes! Yet another programming language that promises to do everything effortlessly. Because clearly, what developers need is more #complexity disguised as #simplicity. 🙄 Just throw in a fancy name and pretend the GPU is merely a sidekick, like we all have time to learn another "seamless" solution. 😂🚀
https://cowleyforniastudios.com/2026/03/08/announcing-eyot/ #programminglanguages #developerhumor #GPUtechnology #techtrends #HackerNews #ngated
Introducing Eyot - A programming language where the GPU is just another thread

🚨 BREAKING: A Chrome extension that redacts your "super sensitive" AI prompts so nobody, including your cat, reads your shopping list 🛒. Because, obviously, those AI chatbots are just itching to spill your secrets to the world 🌍. Surely 50 developers can't be wrong about the AI apocalypse, right? 😂
https://prompt-armour.vercel.app/ #ChromeExtension #AIPrivacy #ShoppingList #DeveloperHumor #AIApocalypse #HackerNews #ngated
Prompt Armour | Protect Your Secrets in AI Prompts

Your AI is reading your secrets. Stop it in 0.2 seconds. Prompt Armour redacts sensitive data locally.

Prompt Armour
Ah yes, another momentous leap in the endless race to "optimize" productivity: a debugger for sessions of a language nobody uses, wrapped in a #VSCode extension no one asked for 🤦‍♂️. Because clearly, what the world needs right now is more tools for #debugging our debugging tools... all courtesy of GitHub's labyrinthine menu of irrelevant features and buzzword soup 🍜.
https://github.com/yessGlory17/argus #productivitytools #GitHub #developerhumor #techsatire #HackerNews #ngated
GitHub - yessGlory17/argus: Claude Code Session Debugger & Performance Analyzer

Claude Code Session Debugger & Performance Analyzer - yessGlory17/argus

GitHub