Welcome to SwedenCpp
Latest blogs, videos, podcasts and releases in one stream
Thursday, September 24, 2026
If this page is useful, please consider donating a coffee
Wednesday, September 23, 2026
constinit Is Not const (Static vs. Dynamic Initialization in C++)π₯DeepDiveDev
Canvas2D: WatchUI DemoIn the previous blog post I introduced Canvas2D , the new QML item in Qt 6.12 that lets you paint with JavaScript using the GPU through Qt Canvas Painter. That post was about the API: what it is, how it compares to Qt Quick Canvas and to the QCanvasPainter C++ API , and how fast it is. But that post might have left someone wondering what a real UI built with it could actually look like. So, while testing Canvas2D (and QQEM) in preparation for the Qt 6.12.0 release, I spent a few days building a demo application to give some ideas. WatchUI is a smartwatch demo with six swipeable views, running on a 3D watch model. This is based on the smartwatch demo that was built a while back for the Qt 6.5 release . But the content of the watch screen has been reimplemented using not just QQEM effects but also Canvas2D. The demo looks like this:πQt Blog
Qt Bridge for Rust 0.3 Beta: CXX-Qt Compatibility and SoundnessAs part of the on-going development of Qt Bridges , we are out with a new beta version of Qt Bridge for Rust, with a focus on CXX-Qt compatibility and soundness. The API surface has changed in only a handful of places compared to 0.2. Where it did change, it is mostly because we removed any API we could not make sound.πQt Blog
Designing Music Interactions Through Performance-led Inquiry and Accessibility - Doga Buse Cavdirπ₯audiodevcon
Hot Reload in Qt 6.12QML Preview We've had a thing called "QML Preview" for a number of years now. You can be forgiven for not having noticed. It's well hidden deep in the guts of Qt Design Studio where it's quietly doing what it does: it runs your design through the qml tool and gets notified when you change some file. Then it re-loads the currently visible scene, without re-starting the process, making your changes visible. This way you get faster turnaround when prototyping different designs.πQt Blog
β¬’ Distrobox: An In-depth Guide for Developers - Part 1Distrobox gives developers a fast, practical way to work across Linux distributions without the setup time and resource overhead of full virtual machines. This in-depth guide explains how Distrobox builds on OCI containers and tools such as Podman or Docker to create tightly integrated development environmentsβwith access to your home directory, graphical sessions, devices, and host tooling. Learn why it is useful for reproducing distro-specific bugs, testing software on multiple platforms, accessing alternative package repositories, and combining a stable host OS with flexible, disposable userlands.πKDAB
SDL 3.4 setup - LoadPNG and preparing for shader programming [SDL3 Episode 26]π₯Mike ShahTuesday, September 22, 2026
Faster C++ code intelligence for Copilot CLI with Whole Codebase IndexingC++ repositories can contain millions of lines of code spread across deeply connected source files and headers. Without a reusable index, navigating to definitions, finding references, or searching for symbols may require portions of that information to be analyzed again as you move through the repository. C++ code intelligence in GitHub Copilot CLI is now [β¦] The post Faster C++ code intelligence for Copilot CLI with Whole Codebase Indexing appeared first on C++ Team Blog .πC++ Team Blog
GeoGate: Generic Co-processing for Coupled Earth System Models with ParaView CatalystThis is a guest blog post from Ufuk Utku Turuncoglu from the NSF National Center for Atmospheric Research (NCAR). He shares his work on GeoGate, an open source component that brings ParaView Catalyst to Earth system models coupled through ESMF/NUOPC. Thanks to his approach of placing in situ analysis in the coupling layer that all [β¦]πKitware Inc
A brief history of Windows scroll bar shortcutsRight-clicking and shift-clicking. The post A brief history of Windows scroll bar shortcuts appeared first on The Old New Thing .πThe Old New Thing
Lasting Quality - Michael Caisse - C++Now 2026π₯CppNow
Which constructor is called?π₯DeepDiveDev
2025 Speaker MIKHAIL MATROSOV - How to Declare a Constant in C++π₯cppunderthesea
A summer of AI optimizationI maintain and comaintain several open-source libraries. Some of them are widely used: ada parses URLs in Node.js, fast_float parses numbers in GCCβs standard library and in Chromium, simdjson parses JSON in Node.js, simdutf validates and transcodes Unicode in Node.js, and the Roaring bitmap libraries sit inside many database engines. These libraries are mature. They β¦ Continue reading A summer of AI optimizationπDaniel Lemire's blogMonday, September 21, 2026
The CMake Decision That Almost Lost a Boost Veteranπ₯C++ Alliance
More than a taken branch per cycle?Our processors can execute many instructions per cycle; they are superscalar. But not all instructions are equal. Branches are particularly tricky. A branch occurs often when you use an if-then clause or a loop. We distinguish between a taken branch and a not taken branch. A not-taken branch is often cheap. The processor just keeps β¦ Continue reading More than a taken branch per cycle?πDaniel Lemire's blog
Whatβs New in ParaView 6.2ParaView 6.2 introduces faster processing for polyhedral cells, new options for exporting time-varying data, expanded support for canceling operations, and new options for stereo rendering in CAVE environments. The release also includes updates across ParaViewβs filters, readers and writers, ParaViewβs interface, plugins, Python scripting, virtual reality, and Catalyst. For a complete listing of new features [β¦]πKitware Inc
Value vs. default initializationπ₯DeepDiveDev
Generating SBOMs with CMakeCMake now includes experimental support for directly generating Software Bills of Materials (SBOMs) as part of the install process. Instead of relying on post-build scanners, you can produce a standards-based SBOM from the same dependency graph CMake already uses to compile and link your project. The first supported output format is SPDX. The design allows [β¦]πKitware Inc
The data does not show mass unemploymentIf AI is causing mass unemployment among software developers, it is not showing up in the data yet. The USA had more software developers as a percentage of the population in 2025 than in 2021. On average salaries are slightly up (average of 148k$ a year). The 90th percentile is up from 2021 β¦ Continue reading The data does not show mass unemploymentπDaniel Lemire's blog
Whatβs the highest legal FILETIME? Is it safe to use?Being wary of how people use it and how it interacts with other types. The post Whatβs the highest legal FILETIME ? Is it safe to use? appeared first on The Old New Thing .πThe Old New Thing
C++ Weekly - Ep 551 - static const is a Code Smell?π₯Jason Turner
16 Years Doing C++ Standardization Work - A Personal Retrospective - Nevin Liber - ACCU on Sea 2026π₯ACCUConf
How to Launch an Audio Plugin in a Crowded Market (Predictive Sales Metrics) - Randy Young - ADCπ₯audiodevcon
2025 Mikhail Matrosov Talks About How to Declare a Constant in C++π₯cppunderthesea
Computers in the Simpsons Universeβ¦β¦are probably more efficient than ours. They are certainly different. Simpsons characters have 8 fingers (digits), not 10. So it is likely that octal is the dominant system they use. Yes, I know deities have 10 digits in the Simpsons Universe. It is still likely that the Simpsons universe predominantly...πWhy is a raven like a writing desk?Sunday, September 20, 2026
The Untold Story of Shipping C++20!π₯C++ Alliance
AI is breaking the academic sorting machineI see the mathematicians panicking at what we can do with agentic AI. Let us be clear on what we are talking about. In a few weeks, someone who is not a high-level mathematician can, with AI, produce the equivalent of a good PhD thesis in math. I could see a top 1% high school β¦ Continue reading AI is breaking the academic sorting machineπDaniel Lemire's blog
12 Ways to Initialize Variables in C++ (And Why They Matter!)π₯DeepDiveDev
C++ in the Realtime Embedded Context - A Case Study - Shin Umeda - C++Now 2026π₯CppNow
Switch on Strings in C++ with constexpr Hashingπ₯DeepDiveDevSaturday, September 19, 2026
Is This the Future of WG21?π₯C++ Alliance
C++20: Force This Code to Run at Compile Timeπ₯DeepDiveDev
How did Apple Silicon get 50% faster in three years?Recently, I looked at how AMD made its chips 50% faster within a span of two years, in How did AMD Ryzen get 50% faster in two years? Many people asked me to cover Apple processors. So let us go. Consider the base Apple Silicon chips: M2 (2022), M3 (2023), M4 (2024) and M5 (2025). β¦ Continue reading How did Apple Silicon get 50% faster in three years?πDaniel Lemire's blog
How a Compiler Finds a Name: Walking the Scope Chainπ₯PVS-Studio
Can you redeclare a variable with the same name? It depends entirely on whereπ₯PVS-Studio
Demystifying C++ initializer_list - Design, Behavior, and Best Practices for C++ - ACCU on Sea 2026π₯ACCUConfFriday, September 18, 2026
The Future is NOW! C++ Next Generation of Programmers!π₯C++ Alliance
Faster JSON parsing with SVE2 on ARM processorsARM processors, like those in your phone, have instructions capable of processing several elements at once (SIMD). These instructions are called NEON. But many newer processors have a different SIMD extension called SVE. The latest ARM processors have SVE2. Unfortunately, Apple has not yet adopted SVE, but SVE processors are available in the cloud. In β¦ Continue reading Faster JSON parsing with SVE2 on ARM processorsπDaniel Lemire's blog
How did AMD Ryzen get 50% faster in two years?People still tell me that CPUs are boring. That nothing much happens anymore. Let us look at AMD Ryzen 7 processors from 2022 to 2024: the 5800X3D (Zen 3), the 7800X3D (Zen 4) and the 9800X3D (Zen 5). They are comparable 8-core chips with 3D V-Cache. I have written about them before, in How stagnant β¦ Continue reading How did AMD Ryzen get 50% faster in two years?πDaniel Lemire's blog
It sounds fancy, but a symbol table is really just a hash mapπ₯PVS-Studio
Comparing exception behavior of magic statics, std::call_once, and std::asyncDo you try again or give up? The post Comparing exception behavior of magic statics, std:: call_ once , and std:: async appeared first on The Old New Thing .πThe Old New Thing
Reflecting on Reflection - Introspection, Injection, and Beyond - C++Now 2026π₯CppNow
2.5 Years Later: A C++ Framework for Audio ML Research Prototyping - Maxime Coutant - ADC 2025π₯audiodevcon
Canvas2D: New QML canvas element using Qt Canvas PainterIn the earlier blog posts about Qt Canvas Painter we have looked at what it is , the new rendering features it brings, how fast it is compared to QPainter, and how path caching makes even a million line segments render smoothly. All of those earlier blog posts used the QCanvasPainter C++ API. At the end of the path caching post I teased that a QML element was coming, and it is here now: Canvas2D , available in Qt 6.12.πQt Blog
Let's make a programming language. Functionsπ₯PVS-StudioThursday, September 17, 2026
Modernizing Boost Graph for Science & Communityπ₯C++ Alliance
Lazy Evaluation - EpilogueSummary of lazy evaluation using bind expressions.πUnder Development
A Cross-Platform C# UI Framework via Qtβs Bridging TechnologyEvery C# UI framework comes with a familiar pattern: Windows-first, Linux absent, roadmap uncertain. WPF stalled, MAUI skipped Linux, WinUI 3 stays Windows-native. At the same time, demand for embedded Linux grows and C# teams feel the lack of good UI alternatives for C# on Linux. Qt Bridges, a bridging technology in public beta for C#, provides access to a UI framework that allows preserving your existing C# codebase while utilizing Qt Quickβs feature-rich UI libraries and APIs, hardware acceleration, and cross-platform capability.πQt Blog
Two Variables Named 'A': How Scope Handles Name Shadowingπ₯PVS-Studio
Whatβs New in VTK-wasmScientific and engineering visualization workflows have increasingly moved to the web. Developers are building applications with frameworks such as trame, Jupyter, and Panel that allow users to explore data directly in the browser while computationally intensive processing remains on the server. As these workflows continue to evolve, developers need efficient ways to deliver responsive 3D [β¦]πKitware Inc
QML and C# without C++: Qt Bridge for C# 0.4.0 Beta ReleasedAs part of the on-going development of Qt Bridges , and beyond the two Beta versions already released, we've continued to add new features to the C# bridge, and we're now announcing the release of a new Beta version 0.4.0. The highlight of this release is the possibility to develop C# + QML applications without the need for a C++ compiler . This means that C# developers can now take full advantage of Qtβs UI framework capabilities while keeping their familiar development workflow. Other features that we've added in this release include support for macOS and Windows on ARM.πQt Blog
What Can a Function Really See?π₯PVS-Studio
std::call_once vs. std::asyncSimple vs complex machinery. The post std::call_once vs. std::async appeared first on The Old New Thing .πThe Old New Thing
Contracts, Safety and Correctness in C++ - Lucian Radu Teodorescu - ACCU 2026π₯ACCUConf
The Secret to Great C++ Libraries? Itβs the Peopleπ₯C++ Alliance
If they can't find you, the code doesn't matterIf they can't find you, the code doesn't matter You need a units library for C++. You search GitHub for "units" and get a wall of repositories, all some variation of the same word, by different authors, with no obvious way to tell which one is alive, which one is serious, and which one will still be maintained next year. You pick one almost at random, or you give up and write your own. The library you needed might have been right there. You just could not find it, or could not tell it apart from the noise.πmp-units