Welcome to SwedenCpp
Latest blogs, videos, podcasts and releases in one stream
Wednesday, July 29, 2026
Making an agile version of a Windows Runtime delegate in C++/WinRT, part 8Exceptions hiding in lambda captures. The post Making an agile version of a Windows Runtime delegate in C++/WinRT, part 8 appeared first on The Old New Thing .๐The Old New Thing
PolyBLEP & PolyBLAMP Demystified - Nis Wegmann - ADCx Copenhagen 2026๐ฅaudiodevcon
Fine-Grained Authorization: The Missing Piece in Agentic AI Security - Shivay Lamba - NDC Sydney๐ฅNDC Conferences
glfw setup from source a simple triangle (glfw3) [Episode 1 of 2]๐ฅMike ShahIf this page is useful, please consider donating a coffee
Tuesday, July 28, 2026
Making an agile version of a Windows Runtime delegate in C++/WinRT, part 7Further explorations into exception safety. The post Making an agile version of a Windows Runtime delegate in C++/WinRT, part 7 appeared first on The Old New Thing .๐The Old New Thing
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โDwyerMonday, 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 Shah