Welcome to SwedenCpp
Latest blogs, videos, podcasts and releases in one stream
Tuesday, July 28, 2026
Beautiful C++ Code - Told Through the Eyes of A Failed AI Prompt - Erich Lohrmann - C++Now 2026π₯CppNow
Practical Testing: 42 - Another code updateBack in 2004 I started a series of blog posts, called βPractical Testingβ, about testing real-world, multi-threaded code. In 2023 I did a brief precis of how we got here and, since the code is still in regular use and still evolving, itβs time to talk about some of the recent changes. This release of the code makes no functional changes to the code that weβre testing in this series of articles.πRambling Comments - Len Holgate's blog
Doors of (AI)pportunity: The Front and Backdoors of LLMs - Kasimir Schulz & Kenneth Yeungπ₯NDC Conferences
Introducing the SQL MCP Server - Jerry Nixon - NDC Toronto 2026π₯NDC Conferences
Threat Modeling Developer Behaviour: The Psychology of Bad Code - Tanya Jancaπ₯NDC Conferences
How to Break AI Systems (Before Someone Else Does) - Gary Lopez - NDC Toronto 2026π₯NDC Conferences
Teaching C++ in the age of AI and large language modelsπ₯MeetingCpp
constructors [C++ Shorts Lesson 27]π₯Mike Shah
A crosswording miscellanyI just finished reading Natan Last's 2025 book _Across the Universe: The Past, Present, and Future of the Crossword Puzzle._ It was... fatiguing. Now, I myself am a "discursive" writer, so I'm throwing stones from a glass house here; but it seemed to me that Last's _every_ paragraph consisted of three or four anecdotes halfway told, capped off with some nonsensical simile. Open the book at random to page 31: > On December 11, 2022, Eric [Albert] suffered a hemorrhagic stroke of his cerebellum. > He's lucky to be alive: around 50 percent of patients die in a month, half of those within > the first two days. When we first spoke in April 2023, I immediately asked if his language > had been affected, then regretted it. But he was fine, he said. The neurologists don't know > why the stroke happened, or how he recovered his cognition so quickly. He says he repeated the > French he was learning to himself in the ICU. I imagined him, was almost ashamed to imagine him, > saying _cirΓ© cirΓ© cirΓ©, Γ©pΓ©e Γ©pΓ©e Γ©pΓ©e_ β as if the accent marks were stray neurons in need of repair > β or an item from James Joyce's _Finnegans Wake_ I'd just seen in _Word Ways_ because it's the > only "word" with five or more Q's: _Quoiquoiquoiquoiquoiquoiquoiq!_ In Joyce's _Wake_, it's > preceded by the line: "He lifts the lifewand and the dumb speak." I remembered analyses of > Broca's aphasia I'd read studying neuroscience in college [...]πArthur OβDwyerIf this page is useful, please consider donating a coffee
Monday, July 27, 2026
Dynamic Asynchronous Tasking with Dependencies in C++π₯CppOnline
Making an agile version of a Windows Runtime delegate in C++/WinRT, part 6Exception-safety, the invisible bug. The post Making an agile version of a Windows Runtime delegate in C++/WinRT, part 6 appeared first on The Old New Thing .πThe Old New Thing
C++ Weekly - Ep 543 - The constexpr Evolution of std::arrayπ₯Jason Turner
Workshop: Programming Music and Synthesizers on-the-fly with Pharo - Domenico Cipriani - ADC 2025π₯audiodevcon
Most Expensive Design Mistakes (Ever) and how to avoid them - Clarissa Rodriguesπ₯NDC Conferences
How to Lie with AI: Understanding Bias, Ethics, and the Hidden Risks in ML - Clarissa Rodriguesπ₯NDC Conferences
Optimizing your HttpClient usage - Nico Vermeir - NDC Copenhagen 2026π₯NDC ConferencesSunday, July 26, 2026
From Template Metaprogramming to User Convenience - API Design Stories - Ruslan Arutyunyan - C++Nowπ₯CppNow
Mind the Spike - Benchmarking for Worst-Case Execution Time in Realtime Code - Christian Lutherπ₯audiodevcon
ls AI Code Actually BAD?π₯The Cherno
BeCPP Symposium 2026 - Bryce Adelstein Lelbach - The CUDA C++ Developer's Toolboxπ₯BeCPP Users Group
Professor Helmut Hlavacs: Teaching C++ at the University of Viennaπ₯MeetingCpp
parallel map (lazy and eager) - Concurrency Part 8 of N [D Language - Dlang Episode 155]π₯Mike Shah
struct allocated on the heap [C++ Shorts Lesson 26]π₯Mike Shah
Interconverting `std::function` with `copyable_function`C++11 introduced std::function as a type-erased callable-object holder. function was badly designed in a few ways: Its rarely used βgo fishβ API bloats every user; it advertises operator() const even when the controlled objectβs operator() is mutating; it handles what should be a precondition violation by throwing an exception, which again bloats every user and means its operator() can never be noexcept. So C++26 fixed these problems by adding std::copyable_function. (Which preserves some of functionβs suboptimal design decisions: copyable_function remains implicitly convertible to copyable_function , contextually convertible to bool, and assignable from nullptr.)πArthur OβDwyerSaturday, July 25, 2026
Memory-level parallelism: AMD is the kingWhen your program asks for memory that is not in cache, the processor has to go to RAM. That trip costs on the order of 100 nanoseconds. On a 3 GHz core, that is about 300 cycles of doing nothing. Memory latency has not improved in ten years. The 2016 Broadwell answers a random access β¦ Continue reading Memory-level parallelism: AMD is the kingπDaniel Lemire's blogFriday, July 24, 2026
Does a PhD Pay Off?Every week, I discuss with people who want to get a PhD. For years, I have been advising people not to pursue a PhD. It may come as a surprise to some. You would expect people with a PhD to earn more money. Individuals who complete doctorates tend to have higher cognitive abilities and greater β¦ Continue reading Does a PhD Pay Off?πDaniel Lemire's blog
Making an agile version of a Windows Runtime delegate in C++/WinRT, part 5Making sure to use the non-agile delegate non-agile-ly. The post Making an agile version of a Windows Runtime delegate in C++/WinRT, part 5 appeared first on The Old New Thing .πThe Old New Thing
Typed Linear Algebra - How to Not Crash on Mars - FranΓ§ois Carouge - C++Now 2026π₯CppNow
When Code Writes Back: Making AI Coding Agents Actually Work - Tobias Baumbach - ADC 2025π₯audiodevcon
Meeting C++ Student Showcase - full recordingπ₯MeetingCpp
struct [C++ Shorts Lesson 25]π₯Mike Shah
Introducing Logarithmic Quantities and UnitsIntroducing Logarithmic Quantities and Units Decibels are everywhere in engineering. Signal levels in dBm , sound pressure in dB SPL , voltage gain in dB , filter slopes in dB/octave . The neper, pH, and stellar magnitude share the same structure. Yet, to the best of our knowledge, no general-purpose units library models logarithmic quantities correctly. Most do not model them at all. The few that do treat a decibel as a non-linear scale or an offset unit, and that choice gets the arithmetic wrong in ways that compile silently. This article is a request for feedback . We believe we have a correct design, derived from the same affine-space model we introduced for absolute quantities . It also aims to stay consistent with the ISO/IEC 80000 standards: especially IEC 80000-15:2026, Logarithmic quantities and their units , which consolidates the logarithmic-quantity rules once held in ISO 80000-1:2009 (Annex C); together with ISO 80000-2 (the logarithm functions lb , ln , lg ), ISO 80000-8 (acoustics), and IEC 80000-13 (information theory). We have read those against this design, cite them throughout, and call out the one place we knowingly diverge from them ( Open Question 5 ). This post describes the design in full, from the quantity spec to the named units, the arithmetic, the conversions, and every domain we surveyed (audio, RF, acoustics, chemistry, astronomy, music, information theory). Then it lays out the open questions , each with every alternative we considered and our current preference. Before we implement any of this in mp-units , we want the people who use these quantities daily to tell us where we are wrong.πmp-unitsThursday, July 23, 2026
The PImpl idiom and the C++26 std::indirect typePImpl (which stands for Pointer to implementation) is a programming tehnicque to remove implementation details from a class by placing them in a separate class that is accessed through an opaque pointer. Its purpose is to separate interfaces and implementations and minimize compile-time dependencies. In this article, weβll at how the PImpl idiom is typically ... Read more The post The PImpl idiom and the C++26 std::indirect type first appeared on Marius Bancila's Blog .πMarius Bancila's Blog
The curiously recurring template pattern explainedπ₯PVS-Studio
Constructing unary, binary, and call expressionsπ₯PVS-Studio
Coroutines and C++ - Async Without The Pain?π₯CppOnline
Making an agile version of a Windows Runtime delegate in C++/WinRT, part 4Optimizing the context check. The post Making an agile version of a Windows Runtime delegate in C++/WinRT, part 4 appeared first on The Old New Thing .πThe Old New Thing
Meditations on Code As Art - David Whitney - NDC Toronto 2026π₯NDC Conferences
Writing a Windows Kernel Driver in an hour or two - Pavel Yosifovich - NDC Toronto 2026π₯NDC Conferences
On the benefits of non-intrusiveness - Patrice Roy - NDC Toronto 2026π₯NDC Conferences
Benchmarking and optimizing the Carbon compiler - Chandler Carruth - NDC Toronto 2026π₯NDC Conferences
Expression-based Programming for Better Code? - Jason Turner - NDC Toronto 2026π₯NDC Conferences
TaskPool - totalCPUs and creating a task pool- Part 7 of N [D Language - Dlang Episode 154]π₯Mike ShahWednesday, July 22, 2026
C++: Write, shorten, optimizeI stumble upon a C++ function that will be a really illustrative example of how refactoring can both shorten and optimize code. Today, we'll need to dust off our human brains in the era of vibe...πfrom pvs-studio.com
Pure Virtual C++ 2026 Is a WrapPure Virtual C++ 2026 is a wrap. Every featured and on-demand session is now available on YouTube β catch up on C++/Rust interop, AI-driven tooling, build performance, and more. The post Pure Virtual C++ 2026 Is a Wrap appeared first on C++ Team Blog .πC++ Team Blog
Managing AST node memory like a proπ₯PVS-Studio
How compilers handle unary operatorsπ₯PVS-Studio
From Institutions to Individuals: the White House Report on Revitalizing U.S. Scientific LeadershipIn 1945, Vannevar Bush published a report entitled Science: The Endless Frontier. His thesis was that prosperity follows from basic research. The report was highly influential in the United States and elsewhere. It led to the creation of an entirely new government bureaucracy. With this report, Bush popularized the linear model of innovation: innovation (such β¦ Continue reading From Institutions to Individuals: the White House Report on Revitalizing U.S. Scientific LeadershipπDaniel Lemire's blog
Making an agile version of a Windows Runtime delegate in C++/WinRT, part 3The object that actively refuses to be marshaled. The post Making an agile version of a Windows Runtime delegate in C++/WinRT, part 3 appeared first on The Old New Thing .πThe Old New Thing
CLionβs Classic Engine Unbundled: Whatβs NextLast year, we announced that CLion Nova would become the default C and C++ engine for all users and that all new language improvements would be developed for Nova. With CLion 2026.2, weβre taking the next step in that transition β the legacy Classic engine is moving from the CLion bundle to an optional plugin. [β¦]πCLion : A Cross-Platform IDE for C and C++ | The JetBrains Blog
A Sine By Any Other Language - David Su - ADC 2025π₯audiodevcon
How much are C++ Professors talking to each other?π₯MeetingCpp
memory leak exercise [C++ Shorts Lesson 24]π₯Mike Shah