Welcome to SwedenCpp
Latest blogs, videos, podcasts and releases in one stream
Thursday, December 3, 2026
Mr. Docs is a game changer for C++ #cpp #clang #softwareengineeringđ„C++ Alliance
Quick Bench is now part of Compiler Explorer!đMeeting C++ blog
Advent of ÎŒarchitecture Day 3: Decoders and microcodeđ„Matt Godbolt
DirectX 11 development with Dlang on Linux [DGems episode 4]đ„Mike ShahIf this page is useful, please consider donating a coffee
Wednesday, December 2, 2026
If Microsoft Can Steal FLOSS Code I Can Decomp Fallout New Vegasđ„Zed A. Shaw
OpenGL/C++ No-AI, LSP, or Debugger: Ep29 -- Refactor The Thingđ„Zed A. Shaw
Inside Dario Amodeiâs Leaked AI BillPay Your Own Inspector, Hide the Files from FOIA, and Block All 50 StatesđMy Very Best AI Slop
How to Generate C++ Docs Straight from Clang with MrDocsđ„C++ Alliance
The dialog manager doesnât remember the resource ID, but that doesnât stop you from leaving your own breadcrumbsStashing information in a hidden control. The post The dialog manager doesnât remember the resource ID, but that doesnât stop you from leaving your own breadcrumbs appeared first on The Old New Thing .đThe Old New Thing
Beyond the Scheduler: Designing Predictable Embedded Systems in Modern C++ - Elbert Dockery - CppConđ„CppCon
Distributed programming with coroutines and asynchronous communication framework - J. Vanslembroukđ„MeetingCpp
From Async I/O to Senders and Receivers :: Pavel Ć imerdađ„CoreCpp
Moogăčăżă€ă«ă©ăăŒăăŁă«ăżăŒăźăąăăă°ççčæ§ăăăă«è©äŸĄăăăïŒ - 1ăă«ăŻă©ăčăźăă€ăŻăăłăłăăăŒă©ăŒäžă§ăźæ€èšŒ - Hiroyuki Oyama - ADC Japan 2026đ„audiodevcon
Advent of ÎŒarchitecture Day 2: Pre-decodeđ„Matt Godbolt
Why don't NGLAI Bros use AI?đ„Zed A. Shaw
The Rise of TikTokCompanion article to The Personalized Algorithmic Feed fundamentally changed the Web . Feeds have taken over the modern web. How did we get here? The obvious answer is âadvertisement moneyâ. I could write about that. Iâm sure youâd all vigorously nod along, too. Everyone hates advertisement money. But I have a more interesting question: Why did it take so long for feedscrollers to start dominating the web? TikTok launched internationally in 2017, which is pretty late. Consider: Facebook opened its doors to the public in 2006. Youtube Shorts and Reels launched in 2020. Thatâs fourteen years between the rise of âtheâ social network and the first big tech TikTok competitors. TikTok was not the first platform to provide cheap opium for the masses, but it took off like a storm and changed western feedscroller apps for good. Why so late? Why were there no Youtube Shorts in 2007? For reference: Screenshot of 2007 Youtube taken from the 'Version Museum'. Why didnât they just invent TikTok in the early 2000s, are they stupid? My theory is that they couldnât, for several reasons. The data wasnât there. Platforms did not have enough data for deeply personalized algorithms. The platforms did not prioritize data aggregation to the degree they do today. Data science and machine learning wasnât there. Significant advances happened between the early 2000s and today, including the rise of deep learning. ( Deep Neural Networks for YouTube Recommendations, 2016 ) The content wasnât there. This was before the content-creator era. We had a fundamental shift in user attitudes between then and now, when content creation became a business, and something anyone could do. The hardware wasnât there. Phones were still new. People were still on dial-up. Etc. The combination of these factors meant that early personalized algorithmic feeds were not addictive enough . For the modern algorithmic feed to become viable, first an âengagement thresholdâ had to be crossed. Crossing this threshold required large-scale data aggregation, new research, and the rise of a content-creator culture that just did not exist yet. Hardware limitations are easy enough to measure: The first iPhone released in 2007. No App Store, no ability to record video, and no Google-owned Youtube app yet. Mobile networks (i.e. the ability to watch anywhere you want) also just werenât there yet. In 2007 only 47% of adult Americans had a broadband connection at home . Mobile users made up 25% of Youtube traffic in 2012, then 50% in 2014 ( Source ). Someone with slightly more time on their hands should run a proper analysis of the data but, roughly speaking, we could guess that anything before 2014 was âtoo earlyâ for TikTok to really take off. âThe Algorithmâ TikTokâs crowning achievement was the development of a content-delivery model built for the sake of training data aggregation. Yes, there was an insane amount of debate on TikTokâs algorithm, along with the whole discussion of whether TikTok constitutes a national security risk or is going to kill Youtube entirely, but the algorithm was never that big of a deal in itself. As far as I can tell, what ByteDance did differently is that they started with data aggregation, and then built a video platform around it. Common wisdom dictates that you first build a platform, and then figure out how to aggregate user metrics on top of it. Our modern feedscroller world inverts this. Start with the training data, then build the product. I hate to tell you this, but yes, this is critical start-up advice if you are planning to launch anything at all in the year of our lord 2026. Users are shown one video at a time. Each swipe or tap is new data. If they swipe away, you know that that exact part of the video was not engaging. Videos are short . This ensures users swipe and tap a lot. Better data. TikTok started as a âlow-effortâ platform. The initial model was âtake a video of yourself dancing to music you likeâ. Everyone can join, all you need is a phone, more data, etc. Data, data, data. Data is what matters. Everyone already knew that, but the rise of TikTok was the last nail in the coffin. The quality of your algorithm and feeds depends on how well-suited it is to extract data from your users.đMONDâTECH MAGAZINE
How a C++ standard goes through ISO, stage by stageEvery edition of C++ is a separate ISO project with a deadline, and each stage of that project allows different changes. What happens at each stage, who acts in it, how the votes are counted, and why the committee draft is the last stage meant for design comments.đTrain ITTuesday, December 1, 2026
Terrible tips for a C++ developer: 2026 edition, Part 2We're introducing an updated edition of the terrible tips for a C++ developer book. We'll be posting it on our blog in parts. The book includes a total of 60 tips.đfrom pvs-studio.com
Addressing AIâs Greatest RisksEven those of us who have spent decades researching AI can be surprised by the capabilities of today's most sophisticated models and the accelerating pace of AI development. These advancements create tremendous opportunities across industries, but they also introduce alarming new threat vectors that are unprecedented in human history. AI models are now so advanced that it seems virtually impossible to predict and control AI behavior, particularly in critical applications.đKitware Inc
OpenGL/C++ No-AI, LSP, or Debugger: Ep28 -- Make Thing Anywayđ„Zed A. Shaw
Kitware at the 2026 Beneficial Fire SummitAt this yearâs Beneficial Fire Summit, Kitware will connect with prescribed fire practitioners and agencies to discuss how software can support burn documentation and reporting alongside the tools teams already use. The summit brings together people working in prescribed fire, cultural fire, and managed wildfire across California and the West.đKitware Inc
Lightning Talk: Building Presentations in slidev - Matt Kulukundis - C++Now 2026đ„CppNow
Why is Windows Explorer displaying a message about a software conflict with Roblox?Deflecting blame onto the process you injected into. The post Why is Windows Explorer displaying a message about a software conflict with Roblox? appeared first on The Old New Thing .đThe Old New Thing
This C++ IDE feature changes everything #cppcon #technologyđ„CppCon
Introducing the Qt Widget to Qt Quick Skill: Automating 80% of PortingMoving an existing Qt Widgets user interface to Qt Quick is a big investment. Every screen, dialog, menu and toolbar has to be rebuilt. Every custom-drawn element has to be redesigned. The application logic that sits tangled up with the screens has to be separated out, the project setup has to be reworked, and the result has to be compared with the original screen by screen to make sure nothing was lost. For applications that want a modern, fluid, touch-friendly interface, this adds up to weeks and months of repetitive work that few teams have room for.đQt Blog
Processor Design and C++ Memory Models :: Ofek Shilonđ„CoreCpp
Advent of ÎŒarchitecture Day 1: Fetchđ„Matt Godbolt
const Integers are special in C++Built-in types are special as they are usable without including anything in C++ or C. In today's post, I like to put the spotlight on int and explore how special an integer is. What's a constant Let me start with this short example: 1 2 3 4 5 6 7 âŠđAndreasFertig.com
The Personalized Algorithmic Feed fundamentally changed the WebLetâs discuss: Content-delivery via (1) personalized (2) algorithmic (3) push-based feeds was the most important shift the internet experienced over the past twenty years. Personalized Algorithmic Feeds were a fundamental shift to how the web works. They are so prevalent that the age of forums is well and truly over, outside of specialized niche communities. I think of the modern centralized feedscroller web as a âWeb 3.0â 1 . Most users love the personalized algorithmic feed, and thatâs part of the problem. Any modern social media platform needs to ask itself what its model of content delivery is going to look like. Most of the time (especially when serving a diverse audience) this means a high-quality algorithmic feed. Without a high-quality feed (algorithmic or personalized or otherwise) thereâs no zero-effort content discovery, and people leave the platform. Providing such a feed is difficult for a variety of reasons (high-quality data analysis, enough content, centralization). This is what I call âthe feed problem'. In this article Iâll write down some observations on algorithmic feeds, while largely postponing the social discussion (e.g. feedscroller addiction). What are Feedscrollers? You already know what feedscrollers are. Feedscrollers are what came after the Web 2.0 era of forums and discussion boards. After Something Awful, âold Redditâ, Hacker News, or 4chan. Feedscrollers are all-inclusive apps whose sole purpose is to suck you into an algorithmic feed that ingests your data, shows you personalized content, and tries to maximize your engagement. Web 2.0 is seeking out specific subreddits and sorting by âlatestâ. Web 3.0 is locking into the Reddit homepage and scrolling past personalized content from subreddits you donât even recognize. Feedscrollers are hyper-optimized for your engagement; the algorithm knows better than you and should have full control over everything you see. Let it absorb every micro-pattern in scrolling behavior to identify what to show you next. Examples of tech companies trying to deprioritize chronological feeds in favor of a deeply personalized algorithmic one are everywhere. Try to notice when it happens. Recognizing how deeply personalized or push-based a given platform is helps preserve your sanity, and makes interacting with the web much less frustrating. Example: Twitterâs algorithmic feed X dot com join the conversation If you use Twitter / X, you probably heard that there were at least two attempts to deprioritize the âLatest Tweets / Followingâ tab in favor of a personalized âFor Youâ feed. For example, the âFor Youâ ranked timeline became the default on the iPhone app every time you opened the app. (The morally correct behavior is to preserve the user selection.) Why? How does X benefit from this? Look, there are still ads either way . Whatâs the point here? Are ads on the personalized algorithmic feed more valuable? Is it a power/control thing? Program managers trying to be bold and simplify? Who knows. For the record, I missed most of that drama! My X account is brand new, and I only made it begrudgingly. So far the chronological feed prevails, and I hope it does for the rest of time. (Of course, this is entirely out of the hands of the users, and the better the algorithm gets, the weaker the justification for keeping the chronological feed around. Just a heads-up.) Fwiw, my experience on X has been good! The Algorithm works , thatâs what makes it so annoying. âOh, just never use platforms with any algorithmic feeds at allâ is not a tenable stance if you want to draw people away from Twitter. People like the content discovery, the personalization, and getting to see cool shit they never would have found otherwise. The Youtube frontpage or sidebar are Personalized Algorithmic Feeds. Trust the algorithm! Why would you care to see a chronological list of videos by all people you followed, anyway? The Algorithm(tm) will bring them to you. Note on Youtube deprioritizing Subscriptions This has been an ongoing fight between Youtube and the few remaining holdouts that are still using the Subscriptions tab. (If you are feeling called out here, you should. I donât judge, but you should be aware that you are a dying breed.) If I open my Subscriptions tab nowadays it opens with a ranked, non-chronological feed . Funny / tragic. Only then it starts showing videos in chronological order. Donât judge me. This is just one instance of Youtube trying to deprioritize the non-algorithmic feed in favor of ranking. I still remember when âmy subscriptions are difficult to seeâ was a common complaint. Are those people still around? Either everyone just got used to the new world, or I just frequent different spaces. Youtubeâs search functionality also used to randomly show personalized results. Right now these are either more tightly integrated and hidden, or Youtube dropped that experiment. Finally, see the sidebar feed selection settings: Technology Connections, my beloved. Finally, TikTok is such an obvious example that mentioning it is barely necessary. Itâs the quintessential feedscroller. Raw engagement. One video at a time. Watch or swipe away, the algorithm is always listening. Characteristics of Feedscrollers If I had to define what makes modern algorithmic feeds special, itâs the following three characteristics. (Every single one is important for the social-technological dynamics of how feedscrollers interact with society.) PERSONALIZED Each user sees different content. In Web 2.0 communities formed by meeting on different websites or forums. You decided which space you joined. In the new world community lines are drawn by the algorithm, for each individual user. ALGORITHMIC Users are subject to an inscrutable system known as The Algorithm(tm). The Algorithm(tm) decides which posts are better than others, such that you donât have to look at any bad posts. Users have some influence over The Algorithm (blocking, likes, etc.), but no control. The Algorithm is expensive to run, requires vast amounts of data, and cannot be replicated by outsiders. (In this sense, itâs centralized and proprietary technology.) FEED The user interacts with the web by scrolling some sort of never-ending feed of content. The system is push-based . It predicts what you want to see and shows it to you. You do not have to ask the system for what you want. That would require knowing what you want, which would be difficult. Instead, the system decides for you. For lack of better terminology I call feeds exhibiting these traits Personalized Algorithmic Feeds. Thatâs a mouthful, so Iâll often just shorten it to âalgorithmic feedâ, or just broadly talk about âfeedscrollersâ, i.e. apps built around a personalized algorithmic feed. TikTok Twitter Google Search News website trending feeds Hacker News RSS feeds Youtube subscription feed Personalized Algorithmic Feed What does any of this mean? A few things. Cynically, I think that feeds are âgood enoughâ nowadays that that every website that wants to compete with modern social media has to provide a content-discovery path that can compete with feeds. This includes Substack, Mastodon, but also less-personalized aggregators such as lobste.rs , or old websites slowly trying to reinvent themselves, such as Reddit. Users expect a feed, personalized or otherwise, and the feed has to be âhigh qualityâ enough that all they need to do is open the app, and get what they want to see. Thatâs what drives engagement. Engagement is a dirty word nowadays, but any thriving community needs it. You cannot build a village without common topics of conversation, comment threads, and so on. The thing thatâs badly addictive for some subset of the users is also whatâs necessary to ensure that a social network has the right âvibeâ, people can discover new content and knit connections, and so on. You can avoid having a feed, and you can avoid data aggregation, but you need narrow scoping and are missing out on advertisement money and social media effects. lobste.rs solves(?) the problem by just restricting itself. The community is small. Highly focused on specific topics (computation). Thatâs a solution. Thereâs no need for a fancy feed as long as the community is small, and people are there for the same reason. It doesnât scale, but thatâs fine. I like it a lot. Mastodon Mastodon? You know, the decentralized Twitter competitor? Mastodon has no discoverability. Iâm sure Mastodon has pockets of great content, but following a handful of people never helped me âjumpâ to any mysterious great communities or discover anyone new. The mathstodon homepage has a chronological feed for the people I follow, which is of limited use when Iâm trying to find those great secret pockets of content of people I would vibe with. Letâs check the âLive feedsâ tab. The âLive feedsâ tab opens with a disclaimer: âThese are the most recent public posts from people on the fediverse that people on mathstodon.xyz follow.â Posts are rolling across my screen, mostly stuff that I have exactly zero context on. Whatâs worse is the sheer amount of bot content. Not like, scam bots, just harmless accepted bots. Bots that mirror posts by newsletter outlets. Bots that post a picture of a mathematical knot every ten minutes. Bots that track whatâs currently playing in some web radio. Thereâs no filtering, itâs just a raw firehose of âall the postsâ that Mastodon can see. Nothing there helped me discover hidden gems. Sorry, itâs entirely possible that this was a user issue: Maybe I should not have joined Mathstodon of all instances. Rumor has it that other instances have something more like a trending tab, but thatâs non-obvious to people just trying to join a social network. Maybe you need to join the biggest Mastodon platform of all, or itâs just going to be a miserable experience! Or maybe you need to be a tech-wizard and host your own, or deeply understand Mastodon to make calls like this! Neither of these are great options. What Iâm saying is that, as far as I can tell, thereâs no out-of-the-box way for new Mastodon users to âdiscoverâ the village they are looking for, and there is no algorithm that would show them what they actually care about. In that sense Mastodon isnât strictly bad, it just doesnât solve the Feed Problem, and is therefore unsuitable as a social network for the vast majority of people. Why is it like this? Well, running such an algorithm would require extensive data collection. Itâd be expensive. Itâd be difficult considering Mastodonâs decentralized model. Thatâs it, I assume. I see the trade-offs, but what we really need is a social media platform that can do both. Otherwise Twitter will remain undefeated. The Personalized Algorithmic Feed is the moat. Everyone who cares for an audience posts there, and everyone who wants something cozier just posts on Discord. Substack Substackâs feed is not particularly good. Thatâs my personal verdict, anyway. I have not run a survey. I do believe thereâs a skill issue here (Substack has a whole list of problems), but a more sympathetic answer is that Substack just doesnât have the data needed to build a perfect algorithm. To make things worse, Substack is where people go for longform writing. This makes it much harder to train an algorithm. (See TikTok, where every bit of content is bite-sized.) In other words, Substack is fighting an uphill battle. Whether it can survive without building an amazing feed (because the current one is not good) will have to be seen. It might be possible, maybe the usage patterns are different enough. Platforms like lobste.rs donât need a personalized feed. Substack is a bit trickier, since itâs trying to be one of those vast âmeta-platformsâ that cover everyone. Thatâs as far as I can tell the point where a feed becomes necessary. Conclusion There is no conclusion. I am not fully happy with the shape of this draft, but donât think I could get it to a reasonable state without a lot more work. Itâs concerning how much âthe feedâ evolved to exploit us, just by showing us what engages us. Itâs a double-edged sword. Addiction is bad, sure, but âthe feedâ is just a mirror shown in front of you, showing you what engages you (ideally, anyway). As long as you can opt out of it, this isnât intrinsically bad. Iâd like to have a better verdict on Mastodon and platforms like BlueSky who try to solve this problem, but sooner or later Iâll just reinvent decentralization from first principles, which brings us right back to my Web 3.0 claim. If you ask yourself what to take away from this giant pile of an essay, then itâs probably that all three components (personalization, the feed, and âthe algorithmâ) are important to make âfeedscrollersâ feel the way they do. Second, I donât think we can really âget ridâ of feeds, they are probably here to stay. There was some qualitative shift between the old web and the new feedscroller one, and now feeds have become the de-facto standard for content discovery. Some people associate âWeb 3.0â with crypto, decentralization, or with an older concept also known as âThe Semantic Webâ. Thatâs fair. I donât like that terminology. Names for epochs should be given retroactively, not in advance. The current web has some attempts at decentralization, but the web as a whole is more centralized and locked-in than ever. Considering that weâre moving towards a world in which major platforms require usage of an account and their primary app, it feels like weâve hit a new era. â©ïžđMONDâTECH MAGAZINEMonday, November 30, 2026
CMake 4.5.1 available for downloadCMake 4.5.1 available for downloadđKitware Inc
OpenGL/C++ with No AI, LSP, or Debugger: Ep27 Maybe One Thing is Wrongđ„Zed A. Shaw
C++ Needs to Catch Up, and FastMemory Safety Wonât Build the Missing StackđMy Very Best AI Slop
Follow the Anthropic HaloDario Amodeiâs $1.5 Trillion ShakedownđMy Very Best AI Slop
C++ Weekly - Ep 561 - emplace_back, initializer_lists, and reserveđ„Jason Turner
Version control is not the same as version numbersOne is a release management problem; the other is a code development problem. The post Version control is not the same as version numbers appeared first on The Old New Thing .đThe Old New Thing
What's New for C++ in Visual Studio Code: C++ & AI Tooling for Your Build, Your Code, Your Workflowđ„CppCon
On Reading Source Code - Patrice Roy - Meeting C++ 2026đ„MeetingCpp
Getting Started With QNX Projects in CLionQNX is a Unix-like real-time operating system used where C and C++ code must be fast, predictable, and maintainable for many years. It powers digital cockpits, medical devices, and robots â from robotic arms on factory lines to autonomous mobile robots in warehouses. Starting with CLion 2026.3.0.3, you can build, deploy, and debug QNX applications [âŠ]đCLion : A Cross-Platform IDE for C and C++ | The JetBrains Blog
C++ Under the Hood: Internal Class Mechanisms :: Chris Ryanđ„CoreCpp
Writing a paper is no longer a signalWhat nobody seems to be discussing is how academic publishing is being disrupted. I am an editor of a well-established journal. Here are the numbers of manuscripts I receive weekly. Writing a science paper used to require massive effort. Highly productive professors might produce 5 solid manuscripts a year. Sure, some publish 30 or 50 ⊠Continue reading Writing a paper is no longer a signalđDaniel Lemire's blog
C++ Book Review: The Art of Writing Efficient Programs | Modern Cpp Series Ep 255đ„Mike Shah
Processor Design and Memory Models - Ofek Shilon - ACCU 2026đ„ACCUConf
Rust Grows Gradually, It Doesnât Appear All at Once - Joel Butler - ADC Japan 2026đ„audiodevcon
Building Reality View into Qt Surrounding RealityWhat Tesla Reality View prompted us to build with Qt When Tesla introduced Reality View with Full Self-Driving v15 , the clips circulating online showed a familiar thing from an unfamiliar angle. A virtual camera above the car made the drive visible on the dashboard, with upcoming turns drawn into the scene. The reaction caught our attention and brought a question for cockpit designers into focus. How much of the world around the car helps a driver understand whatâs happening? Seeing what the system is tracking can reassure drivers and passengers. It might even spare everyone a round of "Did it see that cyclist?" from the back seat. We responded by adding Reality View to the Qt Surrounding Reality reference design. The first clip shows a recorded drive through reconstructed surroundings, with the car and its overlays rendered in Qt Quick 3D.đQt Blog
GSoC 2026: Merging Host and Device ClangIR for Cross-Boundary CUDA/HIP OptimizationHi, Iâm David Rivera, a third-year computer science undergrad at Ontario Tech University in Canada. For Google Summer of Code 2026 I worked on the Host-Device CIR Combine Pipeline , mentored by Konstantinos Parasyris (Dinos) and Joseph Huber. I started contributing to ClangIR for the love of the game: I wanted to understand how compilers work underneath. GPU support in ClangIR was limited at the time, so I started working on it, and with the help of the maintainers I became a valuable contributor to the project, especially on the components related to GPU compilation. This project started as Dinosâs idea. He had a work-in-progress merge pipeline in the ClangIR incubator, and in January I added the driver-side support for CUDA on top of his branch. Before GSoC I also spent months landing CUDA and HIP support upstream ( tracking issue ), which this project depends on and which is like another mini GSoC project by itself. GSoC took me from sending patches to coordinating with the community: contributing to an RFC, publishing our evaluations and prototypes, writing my first paper, which will appear at LLVM-HPC at SC26 , and attending my first LLVM Developersâ Meeting. I also got to meet in person the maintainers Iâd only interacted with through code review, which was a really cool experience. TL;DR: We have a prototype that merges the host and device ClangIR modules of a CUDA or HIP translation unit into one module, runs passes that see both sides, and splits them back into the normal pipelines. Weâve measured real benefits with it. We implemented three optimizations on top of it: kernel argument constant propagation, launch bounds propagation, and alias information forwarded from host launch sites. Alias information provides by far the largest gains: a 1.67Ă geomean in GPU-region time on PolyBench/GPU on an NVIDIA A10, with caveats I go through below. The prototype isnât merged upstream yet. The foundations have landed, including the container and the work that followed Dinosâs RFC , we have a roadmap for the rest, and weâll be working on it in the coming months. Background Clang compiles a CUDA or HIP translation unit several times: one host cc1 , plus one device cc1 per GPU architecture. There is never a single phase in the compiler where we have visibility of both the host launches and the kernels they launch, so co-optimizing them isnât possible. Hereâs what that costs: __global__ void acc ( float * out, const float * a, const float * b, int n) { int tid = blockIdx.x * blockDim.x + threadIdx.x; if (tid n) out[tid] = a[tid] + b[tid]; } int main () { // ... cudaMalloc(( void ** ) & a, bytes); cudaMalloc(( void ** ) & b, bytes); cudaMalloc(( void ** ) & out, bytes); acc (n + 255 ) / 256 , 256 >>> (out, a, b, n); } Anyone reading this can see that out , a and b are three separate buffers. The device compilation canât: it only has the kernel, so it has to assume out may overlap a or b . We canât just compile everything once, because headers can branch on __CUDA_ARCH__ , so parsing and Sema have to run once per side. What we can do is bring the two sides together after that step. Giving the compiler one view of both sides isnât a new idea. The Heterogeneous LLVM-IR Modules RFC from 2020 sought the same visibility, but a conventional LLVM module has one target and one data layout. MLIR modules nest and each can carry its own, and ClangIR (CIR) is the bridge that gets a Clang AST into MLIR, with LLVM and the target backends still downstream. Since CIR comes after Sema, each side contributes its own correct translation and we merge those. Getting CUDA and HIP through CIR first None of this works if CIR canât compile the programs in the first place, so a lot of my time went into parity: calling conventions, kernel registration, NVPTX builtins, address spaces and function attributes. In August, across 21 PolyBench/GPU programs, CIR matched classic CodeGen at 0.998Ă runtime on an H100 and 1.008Ă on an MI300X, with about 3% more compile time ( raw data ). We wrote up this part of the work, how CUDA and HIP kernels lower through CIR, in the paper that will appear at SC26. 25 of my PRs merged upstream during the project, and theyâre listed at the end of this post. The merge pipeline The prototype lives on my fork. With --clangir-offload-merge , the driver stops each compilation after CIR, merges the results, runs the cross-boundary passes, splits the module back apart and resumes each cc1 from CIR: clang -x cuda -fclangir --clangir-offload-merge --cuda-gpu-arch = sm_86 -c kernel.cu clang -x hip -fclangir --clangir-offload-merge --offload-arch = gfx942 -c kernel.hip Two new job actions, CIRMergeJobAction and CIRSplitJobAction , both map to a standalone tool, cir-offload-merge . You can also run the steps by hand: cir-offload-merge -combine \ -input = host.cir -input = device-sm86.cir \ -targets = host-x86_64-unknown-linux-gnu,cuda-nvptx64-nvidia-cuda--sm_86 \ -output = combined.cir This works for CUDA and HIP, with one or several GPU architectures. The container The merged module is an ordinary MLIR module with host and device modules nested inside it. Trimmed: module attributes {cir.offload.container} { module @host attributes {cir.offload.kind = #cir.offload_kind } { // stubs + launch sites } module @device_cuda_nvptx64_nvidia_cuda__sm_86 attributes {cir.offload.kind = #cir.offload_kind } { // kernels, cc(ptx_kernel) } } My first version was a dedicated cir.offload.container op, because I wanted the verifier to enforce the hierarchy: one host module, then one or more device modules. In review of #206576 , Andy Kaylor asked whether we needed the op at all, or whether a module marked with an attribute could be the container. Looking at how the gpu dialect verifies gpu.container_module , I could keep the same invariants in CIRDialect::verifyOperationAttribute without introducing a new op, so thatâs what landed. Connecting launches to kernels Being in the same module doesnât connect anything, because a launch never calls the kernel directly. It goes through a stub and the runtime: // acc >>(out, a, b, n) lowers to: __cudaPushCallConfiguration(grid, block); __device_stub__acc(out, a, b, n); // and the stub, generated by Clang: void __device_stub__acc (...) { void * args[] = { & out, ...}; cudaLaunchKernel(( void * )__device_stub__acc, grid, block, args); } The link between the stub and the kernel only exists at runtime, through __cudaRegisterFunction . So the first analysis I wrote, KernelBindingTable , recovers that mapping statically: each host stub, its device kernel in each architectureâs module, and every launch site with its arguments and grid and block geometry. Every pass below is built on it. Reflecting on the implementation, we believe this mapping should be an operation in the IR rather than an analysis, which I come back to under future work. What made this harder than it looks Resuming from .cir . The pipeline has to re-enter cc1 with CIR as input and no ASTContext , so anything the later stages used to read from the AST has to live on the module. Dinos led the upstream work on this, starting from an RFC and tracked in #227917 . Lowering .cir input to objects landed in October ( #232506 ), and stopping before ABI lowering is still open. One context for two targets. Combining parses every input into a single MLIRContext , and CIR records are uniqued by name, so a different body for the same name on the device side is silently dropped. Valid code hits this: a host-only lambda shifts CIRGenâs anon.N counter, so the names stop matching. I have a prototype fix that namespaces device records on a separate branch . The first passes, and what moved runtime We started with a couple of passes that were partly a concept of how cross-boundary optimization could work: Pass What it does Runtime result Kernel argument constant propagation Folds an argument into the kernel when every launch passes the same constant Neutral on its own (1.0016Ă at 1Ă size, 0.9996Ă at 2Ă), but binaries were 11.8% smaller Launch bounds propagation Records the largest constant block size as nvvm.maxntid , like a user-written __launch_bounds__ 0.9998Ă geomean, and the SASS (NVIDIAâs machine code) was byte-identical on all 21 programs We expected launch bounds to be the biggest early win, since PolyBench declares its block sizes statically. On this suite the hint is invariant, and the reason is useful. NVPTX has no register allocator in LLVM, so ptxas makes the real decisions, and maxntid only gives it room to use more registers per thread. These kernels donât spill registers to memory, so that room has nothing to relieve. The HeCBench kernels we forced by hand with stock nvcc were register-lean as well and showed the same result. We expect kernels with higher register pressure, the ones that actually spill, to benefit from this optimization, and we still need to widen our search for candidates like that. The pass only runs for NVIDIA today. Experimenting with AMD is something we still have to do, and weâre aware we might see different results on AMD or on Intel targets, although Intel isnât something we support here. So by early September the infrastructure worked and nothing was faster. At our sync that week, Dinos suggested looking at aliasing: the host sees facts about buffers, and it could attach metadata like noalias . Andy had just added the start of alias analysis to CIR upstream. After launch bounds, I wanted to know whether the fact could matter before writing a pass for it. I injected __restrict by hand on the kernel pointers of 2mm , 3mm , gemm and gramschmidt and compiled with classic CodeGen, with no CIR involved. I wrote the rule down first: if the SASS stayed identical on all 9 kernels, we wouldnât build the pass. It changed on all four programs, and kernel-region time came out about 2.3Ă faster on 2mm , 3mm and gramschmidt and 1.9Ă on gemm , with identical checksums. The remaining question was whether the compiler could prove what Iâd written by hand. Launch-derived noalias The OffloadPointerFacts pass ( #30 ) starts from the acc example at the top of this post. For each kernel, it uses the binding table to look at every visible launch and checks that: every launch is known, each pointer argument traces to a different live cudaMalloc , and the kernel canât reach those buffers any other way: no address-taken global, loaded pointer, escape or in-kernel allocation. If all of that holds, the existing kernel parameters get llvm.noalias : cir. func @_Z3accPfPKfS1_i (%out: !cir.ptr {llvm.noalias}, %a: !cir.ptr {llvm.noalias}, %b: !cir.ptr {llvm.noalias}, %n: !s32i) cc(ptx_kernel) The proof is kernel-wide and conservative: a repeated allocation, an unprovable argument or an unprovable path through the body drops every annotation on that kernel. My first version got this wrong, and review caught it. Dinos pointed out that I never proved the allocation reaches the launch. I only checked the order of stores, so this got noalias : float * A = B; if (c) cudaMalloc( & A, n); // skipped when !c k 1 , 1 >>> (A, B); // A == B The allocation now has to dominate the launch. He also showed a pointer smuggled through a uintptr_t argument, and a __noinline__ callee writing to a buffer through a device global. In the end, callees are checked with the same rules as the kernel, and later rounds of review from Dinos and Steffen Larsen turned the body check into an allow-list of pointer sources and made inline asm a rejection. The pass only adds attributes, and unchanged LLVM passes do the optimizing. Hereâs PolyBench gemm at -O3 for sm_86 , trimmed, with index math and unrolling removed: ; before: c may alias a or b loop: %acc = phi float [ %c0, %pre ], [ %sum, %loop ] %va = load float , ptr %a.ik %vb = load float , ptr %b.kj %p = fmul float (%alpha * %va), %vb %sum = fadd float %acc, %p store float %sum, ptr %c.ij ; every iteration br i1 %done, label %exit, label %loop ; after: noalias from the host loop: %acc = phi float [ %c0, %pre ], [ %sum, %loop ] %va = load float , ptr %a.ik %vb = load float , ptr %b.kj %p = fmul float (%alpha * %va), %vb %sum = fadd float %acc, %p br i1 %done, label %exit, label %loop exit: store float %sum, ptr %c.ij ; once The sum was already in a register before the change. The store only stayed in the loop because the next load might read c . With the fact in place, LICMâs store promotion sinks it, taking the kernel from 6 stores to 2. Turning that off with -disable-licm-promotion brings all 6 back. The NVPTX backend also gets to use the non-coherent load form: 10 of the 11 global loads become ld.global.nc , and the remaining one is c , which is written. This pattern, accumulating inside a loop while alias uncertainty pins the memory access, is the one I kept seeing across the suite. Results Pass on versus pass off on an NVIDIA A10 ( sm_86 ), with everything else identical: 3 warmup runs plus 8 samples, serial, using the benchmarkâs own GPU-region timer. These were measured at fbda065af219 , a revision that predates the final rounds of review. Validation passed in all 42 records across the two arms. Benchmark Speedup Benchmark Speedup correlation 7.17Ă gemm 1.90Ă covariance 7.08Ă atax 1.79Ă bicg 2.37Ă mvt 1.78Ă 2mm 2.28Ă gesummv 1.29Ă 3mm 2.26Ă syrk 1.07Ă gramschmidt 2.24Ă syr2k 1.03Ă gemver 2.05Ă adi 1.02Ă doitgen 2.03Ă The other six stay within about 1.5% of 1.00Ă, with jacobi-2d the lowest at 0.985Ă. Geomean over all 21 is 1.67Ă , and compile time goes up by 0.006 s per benchmark. These are the numbers I posted on Discourse and on #30 . That table only covers GPU-region time. I also compared the whole merge pipeline against the same -O3 CIR compilation without it, including wall time for the whole process: Problem size GPU-region speedup Wall-time speedup 1Ă 1.72Ă 1.19Ă 2Ă 1.68Ă 1.24Ă 4Ă 1.64Ă 1.25Ă The wall-time gain is smaller because GPU work is only part of the process. This run used an earlier revision of the pipeline at 7a94fd56356d and covers 20 programs. The 4Ă run was timing-only on a different A10. #30 has the details. Please read those numbers with these in mind: The kernels were forced static . If a kernelâs host stub is externally visible, another object could launch it, so the pass correctly leaves it alone. I patched the suite to make the kernels internal, which isnât what youâd get on the suite as shipped. PolyBench is a starting point. These are single-file programs with flat kernels and small call graphs. Future work is to experiment deeper on large applications, catch the transformations that could yield better benefits there, and measure compile time on them too. 7Ă isnât typical. In the whole-pipeline run, correlation and covariance dropped to about 4.6Ă at 4Ă problem size. One GPU, one vendor. The pass only recognizes cudaMalloc today, so these are CUDA numbers. The pipeline runs for HIP, but this pass doesnât fire there on the final branch. HeCBench and other benchmarks Forcing static on every kernel isnât an option for real code. Steffen contributed kernel cloning helpers that create a specialized copy of a kernel for a chosen set of launches and always keep the original, since the runtime can still reach it by name. A separate branch builds on them, so proven launches get an internal clone that carries the facts. Thatâs crucial for not having to write static all the time, and itâs what let us explore much more complex benchmarks. On the four unmodified PolyBench programs I ran, the gains mostly hold: 2mm 2.26Ă, 3mm 2.18Ă, gemm 1.81Ă, and lu 0.997Ă as a control. On HeCBench , the pass fires much less often and the gains are smaller: Benchmark Speedup Note chemv 1.75Ă Kernel pulled into the host TU with -include ; binary grows from 25.7 KB to 38.1 KB softmax 1.05Ă Stock source; loads become the read-only form miniFE, CG iteration 1.016Ă matvec inlined by hand; only 1 of 11 kernels is cloned To see how far this could go, I also forced noalias on every kernel pointer in IR, locally with stand-in headers, which gives an upper bound. Across 1,152 HeCBench kernels, stores or loops went down in 11. The accumulate-through-a-buffer pattern is less common there: a source scan finds it in 24 of 1,427 kernels, against 24 of 47 in PolyBench. In Rodiniaâs 78 kernels, none lost a loop or a store from an innermost loop. When the pass doesnât fire on real code, these are the main reasons: What blocks the pass Where we saw it Allocation and launch live in different functions 17 of 46 failed allocation traces in one HeCBench survey, plus miniFE Kernel defined in one file, declared in a header and launched from another 41 of 164 HeCBench benchmarks, including chemv cudaMalloc inside a nested scope, like an error-check macro About 77 of 519 HeCBench benchmarks Two buffers swapped between launches 14 HeCBench benchmarks, by source search Kernel passes a buffer pointer to a helper LULESH and 6 other HeCBench benchmarks Buffers owned by a framework object darknet, where forcing noalias takes the average pooling kernel from 67 SASS stores to 1, but none of the 48 launch sites we checked can be traced So the PolyBench numbers donât carry over to real code today. The pattern is less common there, and when itâs present, the pass often canât prove the facts. Limitations Separate TUs hide definitions. We merge one TU at a time, so a launch of a kernel defined in another TU only sees a declaration. The pipeline is also non-RDC only, so a device function calling a device function in another TU isnât covered either. Solving this needs visibility across translation units, which is an inherent problem in compilers, not one specific to this pipeline. Tracing facts across the boundary is hard. When the launch sits in a function and the allocation happens in its caller, we canât walk back and see every allocation, so the kernel gets rejected. A proper interprocedural framework would help more than another pass. Specialization has a cost. Cloning grows the binary, as chemv shows, so a cost model that decides when a clone is worth it would be great, and looking at what LLVM does for specialization is a good starting point. Status and future work Piece Status Container attribute and verifier Upstream ( #206576 ) Emitting and resuming .cir through cc1 Upstream, stop point before ABI lowering still open Driver integration, cir-offload-merge , binding table, passes Fork, on gsoc/combine-cir Iâm staying on this after GSoC, and Iâm planning to upstream all of these findings. The bigger goal is a much more generic representation of GPU programs in CIR, one that works across different GPU targets and runtimes: Launches connected through the call graph. KernelBindingTable is a proof of concept, and itâs one of the parts we likely need to reassess. MLIR has generic transformations like symbol-dce and sccp that dialects opt into through interfaces, and we could rely on them if a launch connected the call graph on the host to the kernel on the device. A higher-level launch op, similar to what the gpu dialect has, would make that edge explicit in the IR. This was also some of the feedback we got at the LLVM Developersâ Meeting. Generic runtime operations. The noalias pass has to recognize cudaMalloc , and with todayâs shape weâd have to track every runtimeâs allocation, whether thatâs CUDA, HIP, liboffload or anything else. Ideally these operations would be generic in the CIR dialect, which is in part what the gpu dialect does. This representation can also introduce new diagnostics, because it sees both sides of the program. A small prototype warns when a kernel argumentâs layout differs between host and device. I think the combine tool has a lot of potential, and conversations at the meeting with people from several important vendors in the space backed that up. I believe itâs one of the reasons someone would want to use ClangIR in the first place. Steffen also continues to help upstream and on the fork, and Mariya Podchishchaeva mainly upstream. What I learned The biggest surprise was how much alias analysis gave us. Initially our optimizations were a bit shallow: we went from constant propagation to launch bounds, and neither caused a noticeable speedup on PolyBench. I was sort of expecting aliasing to unlock something, since Iâve read a couple of LLVMâs middle-end passes and itâs one of the things that blocks many of them, but not at the level it did on PolyBench. The other thing I really learned is how to evaluate whether a pass is worth chasing. What I mainly did was inject the information a pass could derive, either from the front end or into LLVM IR, and check whether later passes consume it and whether SASS ultimately benefits. Thatâs far less work than the pass. Acknowledgements Thanks to my mentors, Dinos Parasyris and Joseph Huber, and especially to Dinos, whose idea this was and who Iâve been working with on CUDA support in CIR since January. Thanks to Steffen Larsen (AMD), who was working on a similar staging layer, reached out, and ended up contributing #27 , #28 , #31 and #32 to the fork. Thanks to the ClangIR maintainers Bruno Cardoso Lopes, Andy Kaylor, Erich Keane and Henrich Lauko for their reviews, and to Mariya Podchishchaeva for her upstream work on CIR. Thanks also to Google and the LLVM community for making GSoC possible. Links Final work: gsoc/combine-cir Talk: CUDA and HIP in ClangIR , LLVM Offload Workshop, Santa Clara, October 2026 Paper: GPU Device Compilation in ClangIR: Lowering CUDA and HIP Kernels Through the CIR Pipeline , with Bruno Cardoso Lopes, Joseph Huber and Dinos Parasyris, LLVM-HPC 2026 at SC26, November 16 Benchmark harness: polybench-gpu-audit Upstream PRs merged during the project: Area PRs Offload container #206576 CUDA/HIP codegen #195381 , #195382 , #195391 , #199270 , #204663 , #215314 , #231390 NVPTX builtins and attributes #195214 , #195217 , #214708 , #216447 , #221255 , #221261 , #221262 Address spaces #196868 , #226649 , #226650 Aliasing and floating point #221817 , #221818 , #226334 Tooling #196245 , #200266 , #229565 , #229575 Fork PRs are on RiverDave/llvm-project .đThe LLVM Project Blog
I don't like GermanyArno Schmidt, the greatest German writer you have never heard of. The German James Joyce. I donât like Germany. Sorry, that isnât quite correct, let me try again. I donât like the things I associate with Germany. I associate Germany with decay and stagnation, with an increasingly inverted population pyramid, with committees and bureaucracy, with a lack of energy and dysfunction. The Coffee Machine My aunt once told me a story. At work the coffee machine in the break room broke down. It was an old, shoddy thing. Cheap. Weâre talking Mr. Coffee(tm) drip coffee machine cheap, the sort of horrible thing you can get for fifteen bucks at your local supermarket. Replacing the darn thing wouldâve been easy, but thatâs not what happened. No, this is Germany . In Germany management will disavow all responsibility over the break room coffee machine, and push it onto the employees. âAh no, we cannot do zis! Filling in the procurement forms for a new coffee machine and billing the company would take multiple weeks, however you may pitch in to buy a new employee-funded coffee machine, yes?â The employees, each broken by the oppressive spirit still haunting the land, fail to see any issue with this and form a small committee. (Participation in various committees is the Germanâs natural pastime.) The committee decides on a single person, who then reaches out to the other employees during their break time, and asks them to pitch in four euros worth of money for the new coffee machine. A week or two later the deed is finally done, and a new coffee machine stands in the break room. Thatâs what I associate with Germany. Tedious processes that are drawn-out for no reason in particular other than to âfollow proper proceduresâ, and which could have been cut short if literally anyone involved in it had capitalized on their own agency. Itâs a fucking coffee machine! Itâs a near-mandatory productivity multiplier! Just buy the fucking thing! I donât care if youâre the manager here or just an employee, no one benefits from dragging this out into a two week process just to shuffle the responsibility back and forth! Well, why didnât they? I donât know. Itâs Germany. Itâs something in the air, or maybe this is just the national spirit of the people. In Germany when a problem is discovered all involved people nod solemnly and say âJa, zis is ein Problem.â and then they spontaneously form a new committee to discuss the problem. The committee will then formally note down that everyone agrees that the problem is, in fact, a problem, and then consider the proper procedures for resolving the problem. Most of the time this will result in the formation of another committee, or exasperated exclamations of the âWell, this really should be the governmentâs responsibility!â type, which then might result in a letter being sent to some local government official. Everyone feels that things have to be done âthe right wayâ (committees) and at the same time the bureaucratic overhead is so exhausting that no one wants to be the person whoâs doing it. That might be it. The exhaustion, that is. The sheer pain of trying to go against this. No one wants to work against the âproper way of doing thingsâ because of how bad it is. Everyone just accepts it. Itâs so deeply engrained that everyone has resigned themselves to not push back. This is Germany. Itâs a place with no change. Just stasis. In the USA, at least, people will spit at you and work around the barriers you put in their way. In Germany the overwhelming smog of lethargy smothers the nation, and no one tries to fight it. Just sigh, try to put on a smile and embrace how much easier it would be to never do anything at all. Needless to say, my aunt worked at Storck all the way up until retirement. Thatâs German work culture. The Bikeshed God. Donât remind me of the bikeshed. So, mond lore drop: For a few years of my life I lived in a German suburb. The sort of suburb where you send old people to die. I was living in a home for autistic people, the sort of well-meaning German boomer community project funded by parents who worry that their children will never move out , and decided to solve the problem by funding a committee that manages a home. This was good. Donât get me wrong. I struggle with pretty severe autism and ADHD, and I donât think I couldâve managed the whole âmoving outâ part without a gentle ramp. So, I was living in this apartment for autistic people. Unfortunately, out of the whole pack I was the high-functioning one. I was the guy who took it upon himself to try to organize BBQs, host cooking events in the communal area, do a little bit of gardening, and so on. I had an excellent friend there, my second-in-charge autist, but most of the others either never left their apartments or were barely capable of masking or both. I still donât know what to think of this time. On one hand, I think âbeing the lone high-functioning guyâ, the one-eyed among the blind, helped me become a stronger, more organized person. On the other hand, itâs the kind of thing that slowly burns you out over the years. You are the single guy who has to do everything because no one else can be trusted to handle anything at all. Imagine organizing a communal cooking event in a bone-headed attempt to BUILD COMMUNITY, since youâve read the Wikipedia page on Bowling Alone and are worried about social isolation and so on and so on. Yes, itâs all badly self-inflicted pressure but it still hurt me : I tried to wrangle several severely autistic people to get them to peel potatoes , but due to their lack of functioning, I have to be the person who manages the pot, stays on top of everything, runs errands, and so on, and what should be a community-building event just ends up slowly burning me out over time. Deep down there was a hope here that, maybe, I would be able to lift these people up and form something of a self-sustaining thing. Along with the Jordan B Peterson in the back of my head saying shit like âLook, if you are not going to do it, no one else will. Go and push the boulder up that hill, bucko!â But of course, to me it felt like most of them never changed. They either didnât want to change, didnât know how to change, or didnât even have the language to explain the situation they are in, even if itâs obvious from the outside. I had contempt for them, and was terrified that I was just like them. That Iâd be stuck in stasis for all eternity, and then just die , and I tried to fight that wherever possible. It burned me out. Just a little bit. I carried the torch for a while, then fell, and I am glad my second-in-charge and other friends were able to pick it up for a while when necessary. My second-in-charge grew as a person. He really did. He picked up the torch after me, he helped me carry this stupid-ass boulder up the idiot hill I had decided to die on, and he is a great friend. So, how does any of this relate to a bikeshed? Sorry, this section was supposed to be about the bikeshed . Ah, well. Long story short, the house was supposed to have a fucking bikeshed. What ended up happening is that the German boomer committee that formally owned the house ended up discussing the bikeshed across the span of easily a full year. The meetings on this werenât frequent, rather, this was the situation where every two months or so everyone sat down in a room together. Then, all the same topics were litigated again and again, taking into account anything that had changed over the months. You can imagine my situation, sitting in these meetings while German boomers are discussing a literal bikeshed over and over. Donât get me wrong, it was bearable . It was fine. I didnât even hate it. Yes sure, it was all tedious, but âthis is how you do stuff, right?â. This is how shit gets done, right? And now Iâm here, a few years later after I finally left, and I still feel the shadow of Germany hanging over me, and I howl like a beaten dog. The bikeshed was built. Eventually. After exhaustive, stupid back-and-forths between the association managing the community and the real estate corporation having formal ownership over the property itself. Leaving By the time I slowly approached my last year of university, I knew that Iâd have to figure out what was going to come next. Where was I going to go? What sort of job would I even get with a degree in theoretical mathematics? University had slowly hammered me into shape and transformed me into a barely-functioning adult. I was still living in that German suburb, in the small house for special autistic people. I was doing fine. I had grown stronger over the years somehow, but the prospect of spending any more time in this desolate place was gnawing at me from within. All that was left was my thesis. The bargain was nearing its completion, and my soul was going to be up for grabs. The DĂ€mons were already prowling, waiting and watching. Unwilling to offer any help, knowing that I would come and beg them for a job, for help, for anything at all. Thatâs when they would make me sign a contract in blood, strip my soul of any remaining ambition and Lebenswille, and drag me into the abyss where I would rot for all eternity. A bloated, fat German face wrinkling its forehead and sneering at me, saying shit like âWe donât do zis in Germany.â while asking me to fill in forms and do meaningless busywork for all eternity just to get by, in a city where nothing ever happens, with no people who would ever commit to anything that could compromise their scheduled dinnertime. When I say that I was terrified of staying in that godforsaken suburb, I mean it. I was worried I was going to rot and die there . That I will never escape the gravitational pull of this place, and wake up one morning and realize that there is nothing left of me. I felt like the one guy trying to carry the flame, in a place drowning in committees and lacking in ambition. A place where people never ask what they truly want to do, a place where everyone always chooses the easiest way out, and no one ever wants to bear responsibility or change . A place where even the thought of having fun just exhausts people. I leaped, and threw myself at a few opportunities. I taught myself how to code, back when this was still a reasonable thing to do. I visited a girl in Kyiv, back when this was still a reasonable thing to do. We became a couple, of sorts. She got a job offer in Warsaw (i.e. Poland, i.e. a neighboring country) and I decided to move with her. Yes, itâd be easy to say that I wanted to move âwithâ or âforâ her, but this was not the whole truth. The truth is that I wanted to leave Germany. I had to get away. Anything. I needed a proper job, at any corporation that didnât require you to submit a story of your life and multiple cover letters to apply, and was not rotting from the inside out with German committee boomerslop. Stasis If that sounds like Iâm projecting too much onto the national spirit of Germany⊠Yeah. The truth is that the reason why I feel so strongly about this, why Iâm still rambling like a madman, is that I see myself in them . Itâs my own fear of giving in to the pull of nothingness. The pull of rot. Not the pull of pleasure or hedonism, no, the pull of sloth . The fear that I will never be more than what I am right now. That I, that the people I know could never transcend their limits, and overcome their flaws. If youâve spent any time reading articles I have written, you will know that this is like, a whole recurring theme in my posts. Why? I donât know. The stasis is the end. As I grew up I watched and saw people around me turn into caricatures of themselves. Fluid intelligence slowly crystallizing, until nothing was left. Until a person you liked just turned into an NPC, you know, the type of person who will reliably try to tell the same tired joke every single time a topic is brought up. This is what I saw happening to my parents. They had me rather late, you know? Like, late 30s late, or something like that. I got to watch my father slowly degenerate. Yes, he was a smart man, but his brain slowly crystallized, he spent too much time in his den, he probably had some level of untreated ADHD, and he never managed to do that one trip heâd wanted to do. Instead he just turned into a flanderized puppet, into someone who still knows a few things, but who is still stuck in a world from thirty years ago. You can talk to him, but youâll learn to avoid certain topics. Not because heâs wrong or unpleasant, just because heâs hollow. A caricature. Saying the same shit you already heard several times before. He never kicked his old habit of drinking, he never quite managed to lose weight. And then eventually his health caught up with him. He ended up in a hospital, and died a few months later. All thatâs left is an enormous pile of books and vinyls, old trinkets that were once meaningful but are signs of decay. By that time I was in Warsaw, and about to depart on a flight to London. Some business trip. I had managed to land a job at Google. The moonshot of working my ass off for over a year to learn how to code had, in fact, paid off, and turned out to be the best decision Iâd ever made. Instead of cancelling the trip I just went ahead. Iâd already made peace with my fatherâs death months, if not years before he died, honestly. Or maybe Iâm just cold, and donât know how to feel. Maybe itâs both. I know that it hurts when I remember him. I made it back to Germany in time for the funeral, and I forgot if I cried. But I was there to support my mother, even as the age is slowly and steadily getting to her. Do you understand what I am afraid of? Itâs all of that. Itâs the fear of ending up in stasis, of failing to make the change that you have to make, of failing to overcome your boundaries, of rotting away. The truth is, itâs not that I hate Germany, itâs that Iâm afraid of it. I am afraid of myself, of carrying this curse inside of me, of never being able to escape the same pit that swallowed my father, some of my friends, and so many others. Right now Iâm on a work visa in the United States, and I donât regret it one bit. I love the people I met here. I love my friends. I love bantering with them, I love to spontaneously ride my bike just to hang out, I love to take cold plunges in mountain rivers, playing cards, laughing at tired jokes, and discussing the world. Most of all, I love their ability to just do things . The flame in their eyes, the lively spark, the will to climb a tree for the sake of it or to do anything at all. And I fear that, if I were to ever lose my job, the DĂ€mons would come for me and pull me into the abyss, Iâd end up back in Germany and never escape again, just rot. âCome here! We finally GOT YOU. You thought you could be in control of your life? You thought you could go and meet people? Hah! Down into the pit of doom with you! Nothing but sloth for you, let us quench your fire. No joy, no pain, just emptiness.â More than that, I fear that I will age and turn into a shallow caricature of myself, and not even one anyone would find funny. I fear that my fire will grow small, that I will look at all the things I could be doing and say to myself âAll of this sounds so tiresome. Iâd rather just lie down and sleep.â and then I will lie down and never wake up, or worse, turn into a hollow shell of myself and go through the same motions as I did every day while everyone around me acts like I still have the spark of humanity in my life. Look! Friends donât allow friends to flanderize themselves. Show me your beautiful and delicate soul. Be more than you were yesterday. Suffer, but be honest and real in your suffering, instead of resigned to it. Ask yourself where you want to be tomorrow, then struggle and change . Be someone else. If we make it to the post-scarcity future, this will be all there is to it. A painful infinite climb up a mountain, sculpting yourself along the way, or stagnation and nothingness. Climbing Trees Even knowing how many things Iâm projecting onto Germany, I donât know if I will ever be able to come to terms with it. The country damaged and hurt me with all of its bad, nonsensical habits and tics. Itâs a place with insane hiring expectations, where you are expected to hand in a full history of your life, high school diplomas on top of university paperwork, an application letter, a professional photo of yourself, and so on. Itâs a place where trying to pay for your own prescription at the psychiatrist results in the secretary derisively wrinkling up her nose, telling you that âitâs so much more work to do the paperwork if itâs not via insuranceâ and that âshe has to check with the doctor firstâ, a week after your father died, while you are running out of meds you need to function. (Yes, this really happened to me.) Itâs a place where nothing ever happens . Where everything is late. Where decisions are never made on schedule, and committees run everything. Where the people that had the most positive impact on my life all extensively lived in other countries, and were willing to get shit done without bothering with the small-minded, life-denying German spirit. Despite all of this, if I ever were to move back to G*rmany, I would probably survive. I have grown, and I have changed. I am a different person now, even if that means looking at old friends and faces, and realizing that you have grown apart, and will see each other less frequently than before. Thatâs the cost. If I ever come back, I hope Iâll find a nicer place to live. Maybe Berlin, maybe any big city with an active scene of hackers, do-ers or even party-goers and artists, whatever it is. It just has to feel alive , and have people who are not above climbing random trees.đMONDâTECH MAGAZINE
Pattern Matching for C++29Update from BĂșzios, a tour of P2688R6, and next stepsđMichael Park
How overload resolution picks one functionCopying a non-const int_or_empty gives a non-empty object because a forwarding constructor is a better match than the copy constructor, while copying a const one and moving one both work. How C++ ranks the candidates, which tie-breakers apply and in what order, and how to constrain the template so it leaves copies to the copy constructor.đTrain ITSunday, November 29, 2026
Lightning Talk: Run-time Template Parameters - Sort Of - Braden Ganetsky - C++Now 2026đ„CppNow
Most Valuable std::variant (Part 1)Most tutorials introduce std::variant as a way to store unrelated types in one variable. Ivan ÄukiÄ shows its far more valuable use: modelling program states so that invalid states can't be represented, RAII works again, and hidden coupling between members disappears.đMC++ BLOG
Back to Basics: Abstractions :: Nathanel Ozeriđ„CoreCpp
AI Made a 3D Game Engine from a SINGLE PROMPT... but is it good?đ„The ChernoSaturday, November 28, 2026
Why updating C++ packages is a trap #cpp #programming #developerđ„CppCon
A Declarative Startup Model for Cortex M Microcontrollers - Alexey Karelin - Meeting C++ 2026đ„MeetingCpp
Generating Language Bindings using C++ Reflection - Callum Piper - ACCU 2026đ„ACCUConf
Who cares about the new C++ standard?A new C++ standard gets plenty of attention. But who is waiting for it, and what would make an upgrade worth the effort?đEngineering the Craft
Inkbird IAM-T1, ESPHome and Home AssistantMonitoring CO2 Iâve not been sleeping well recently and realised that, since it got colder, weâve not been leaving the bedroom window open like we used to. A bit of googling suggested that the CO2 level in the bedroom may be contributing to my poor quality sleep and so, as is my way, I decided I needed to measure it. I have been playing with Home Assistant for a while now and so I wanted whatever I decided to use to monitor my CO2 to integrate into my smart home.đRambling Comments - Len Holgate's blogFriday, November 27, 2026
Why I Learn Old APIs Like OpenGLđ„Zed A. Shaw
Lightning Talk: Reflection - The Monad - Ben Deane - C++Now 2026đ„CppNow
Could we use the CoreApplication Properties to manage the lifetime of an object that refuses to be marshaled?It doesn't help with the underlying problem. The post Could we use the CoreApplication Properties to manage the lifetime of an object that refuses to be marshaled? appeared first on The Old New Thing .đThe Old New Thing
Component Based or Monolithic Development for Large C and C++ Projects: Why Not Both? - CppCon 2026đ„CppCon
Webinar Recap: Embedded Debugging With CLion and SEGGERCLion supports debugging embedded targets with SEGGER J-Link. Recently, we extended this integration with one-click access to Ozone and SystemView, as well as the ability to run debug sessions using AI agents. We presented the updated integration together with SEGGER in a joint webinar, and this post summarizes the highlights. You can also watch the [âŠ]đCLion : A Cross-Platform IDE for C and C++ | The JetBrains Blog
AI vs. The Algorithm - Reclaiming "The Scene" through Ethical Vocal Synthesis - Seann Nicolsđ„audiodevcon
std::chrono building a stopwatch for profiling | Modern Cpp Series Ep. 254đ„Mike Shah