This period
2026-10-12 → 2026-11-11 · rolling 30 daysArticles
49 this periodEvery Craft That Moved Before: What Photography, Compilers, and Looms Teach Us About AI
This article explores the parallels between various crafts, including photography, compilers, and looms, and their implications for understanding AI. It delves into how these crafts have evolved and what lessons they offer for the future of artificial intelligence.
A faster Easter date function
This post is a fun little side quest to kickstart my journey optimising regional calendars. Computing the date of Easter faster is not going to matter in any real application. Even in places where it might seem to matter, like high…
Automatic MSBuild configuration for the Microsoft C++ Language Server in Copilot CLI
This article discusses the automatic configuration of MSBuild-based projects for the Microsoft C++ Language Server in GitHub Copilot CLI, enhancing code intelligence by generating a compilation database at startup. It simplifies the setup process for users familiar with Visual Studio.
Microsoft employee price list from 1987
This article presents the Microsoft employee price list from 1987, showcasing the software catalog from nearly 40 years ago. It invites readers to consider how these prices would translate into today's dollars.
A C++ Quicksort Faster Than std::sort
blqsort is a very fast quicksort algorithm. I am not aware of any other general-purpose comparison-based sorting algorithm that is faster on random data. Only specialized SIMD-based algorithms are generally faster when dealing with small…
If the Windows Update hot patcher checks that the function hasn’t already been patched, does that mean you can’t install two hot-patches?
This article discusses how Windows Update manages hot-patching for binaries that have already been patched. It explains the process and limitations of applying multiple hot-patches in succession.
Herb Sutter: When a language’s creator and its owners strongly disagree: C++26 post-DIS, historical experience, and paths forward
Herb Sutter: When a language’s creator and its owners strongly disagree: C++26 post-DIS, historical experience, and paths forward
Why are we all worked up about atomicity when applying hot-patches if we can just suspend all the threads?
This article discusses the importance of atomicity in the Windows hot-patching system and the potential issues that arise when suspending threads during patching. It highlights the risks of executing half-installed patches and the challenges posed by new threads being created during the process.
You shouldn’t change the style of a Win32 static control after it has been created
This article discusses the behavior of Win32 static controls and the implications of changing their styles after creation. It explains the potential memory leaks and bugs that can arise from such changes and advises against it.
C++26 Disapproved
On October 23, 2026, the unthinkable happened. It was supposed to be a mere formality: C++26 was up for a vote by the ISO National Bodies (NBs). The options are always approval, rejection, or abstention. Comments are also allowed. Since…
C++26: std::constant_wrapper
This article discusses the new std::constant_wrapper feature in C++26, explaining its purpose and usage. It provides insights into how this feature can enhance code clarity and efficiency.
From Token Sequences to operator for
This article explores the concept of operator overloading in C++ and how token sequences can be utilized to implement custom operators. It provides insights into the syntax and semantics of operator functions.
There are things with ranks, but it’s not always clear what the ranks mean
This article discusses the concept of 'rank' in Windows features, particularly in SQL Server and the Windows Package Graph. It highlights the ambiguity in documentation regarding what rank signifies in terms of relevance and match quality.
How do you implement a random-access database when you don’t have random-access external storage?
This article discusses a clever method used in an Apple ][ telephone directory program to manage a database using only cassette storage. It explains how the program utilized self-modifying code to store and retrieve user data.
Sneaking into the auditorium for the Windows 2000 launch rehearsal
This article recounts the author's experience at the Windows 2000 launch event in San Francisco, detailing the preparations and the atmosphere leading up to the event. It includes anecdotes about the rehearsal and the excitement surrounding the celebrity host.
Spooky C++
You want to see something… spooky? Do you want to hear a story, so haunting, so bone-chilling, it keeps you up at night? Well, let’s look at this program that grants permissions: #include <iostream> #include <string> #include…
The Problem with C++ Safety: Modern C++ Is a Mindset, Not a Standard
In the first part of this article, we have taken a look at two attempts to decide whether a given string is a palindrome. Both implementations were written in “Classic C++” and didn’t feel great: the code was difficult to read, hard to…
Pitfalls of bit fields in C++
This article discusses the complexities and potential issues that arise when using bit fields in C++. It highlights how developers can inadvertently create problems due to the language's flexibility.
The support case of a customer who said that all they could see was a black screen
This article discusses a safety feature in PCs that allows users to force a shutdown by holding the power button, and the implications of this action on kernel dumps and black screen failures. It provides insights into the analysis of such failures and the potential causes behind them.
What’s New in vcpkg (Oct 2026)
This blog post summarizes changes to the vcpkg package manager, including updates on binary-cache compression, improved cache reliability, and the addition of new ports. The post highlights significant improvements and bug fixes in the latest releases.
Billion-query-per-second lookup tables in C++
Daniel Lemire is a software performance expert. He ranks among the top 2% of scientists globally (Stanford/Elsevier 2025) and is one of GitHub's top 1000 most followed developers. A lot of software spends its time mapping strings to…
C++/WinRT overcorrection: Using make_self and immediately converting it to the projected interface
This article discusses the two ways of creating objects in C++/WinRT, focusing on the use of make_self and its conversion to the projected interface. It explains the implications of choosing one method over the other based on access needs.
C++26 Ranges: Parallel Algorithms and Safer Filters
This article discusses the new features in C++26 related to ranges, focusing on parallel algorithms and the implementation of safer filters. It provides insights into how these features enhance performance and safety in C++ programming.
Making SIMD Code Scale to Any Vector Width
Search Get started Making SIMD Code Scale to Any Vector Width Leave a Comment / Technical / By Nemi Verploegh I will be using x86 naming throughout this post, but the concepts apply to other architectures too. Basic familiarity with SIMD…
Why don’t we run the taskbar and Task Manager at high priority, so they can remain responsive?
This article discusses the challenges of running the taskbar and Task Manager at high priority in a CPU-starved environment. It explains how priority management can lead to issues with shared resources, making it difficult to maintain responsiveness.
A faster way to compute signed 64-bit floor division by constants
What is signed integer floor division? Signed integer floor division is where you do a/b and get a result that rounds towards − ∞ , whereas standard ( “truncated” ) signed division rounds towards 0 . As stated in Hacker's Delight: “[I…
Puzzling out why a program doesn’t work when run from a batch file, but works when double-clicked from Explorer
This article discusses a common issue where a program fails to run correctly from a batch file due to the current directory not being set properly. It explains how double-clicking a program in Explorer sets the current directory, which can affect how the program locates ancillary files.
The result of the C++26 DIS ballot
Home Workshops Start here For safety-critical teams For embedded teams For low-latency teams All workshops and paths Engagements Learn Online training Upcoming Self-checks Talks Interviews Blog Newsletter Announcements About Contact Get in…
Balloting has completed for C++26. Unfortunately it was Disapproved
By clicking Continue to join or sign in, you agree to LinkedIn’s User Agreement , Privacy Policy , and Cookie Policy . Balloting has completed for C++26. Unfortunately it was Disapproved P-Members voting: 12 in favor out of 20 = 60 %…
The C++26 inplace_vector container
This article discusses the new std::inplace_vector container introduced in C++26, which combines features of std::array and std::vector. It explains how it works and when to use it.
Attention people who think UB is fine
--> Categories About Support on Patreon --> --> Livecount : connecting… This is my personal blog. The views expressed on these pages are mine alone and not those of my employer. This is not AI. All hallucinations are my own human ones.…
Game++. Part 2.2: Types of optimization
This article offers insights into C++, including the algorithms and practices used in game development, and explores the language's strengths and weaknesses, its established workflows, and hands-on techniques.
Why didn’t we use the COM static store to clean up the unmarshalable delegate?
This article discusses the limitations of using the COM static store for managing unmarshalable delegates, particularly in the context of single-threaded apartments in UWP applications.
Why didn’t we use CoRegisterInitializeSpy to clean up the unmarshalable delegate?
This article discusses the challenges and considerations of using CoRegisterInitializeSpy for cleaning up unmarshalable delegates in COM. It highlights issues related to thread management and the unpredictability of the unregistration process.
C++26 Ranges: Better Infrastructure
This article discusses the improvements and infrastructure related to ranges in C++26. It provides insights into the design and implementation aspects of the new features.
Microsoft CppCon 2026 Trip Report
This article provides a recap of Microsoft's participation at CppCon 2026, highlighting discussions with developers and sessions attended. It covers various topics including modern C++ practices and the integration of AI in development.
Why didn’t we use RoRegisterForApartmentShutdown to clean up the unmarshalable delegate?
This article discusses the challenges of using the RoRegisterForApartmentShutdown function in creating an agile wrapper for non-agile objects in COM. It highlights the complexities involved in managing object lifetimes and apartment shutdowns.
EDG is open source
Read John Spicer's note on what's next for EDG, and the transition FAQ → Docs GitHub The EDG open source transition On September 30, 2026, the source for EDG's C++ front end went public, and The C++ Alliance became its nonprofit home.…
Microspeak: Drain the slide, back-up slides
This article discusses the term 'drain the slide' in the context of presentations at Microsoft, explaining its implications and the reasons behind its usage. It highlights the tension between using slides as visual aids and as reference materials.
Why do we need ud2 when int 6 is right there?
This article discusses the architectural differences between the ud2 instruction and the int 6 instruction, highlighting how they handle faults and traps differently in the context of exception handling.
Composite objects and C++26 the std::polymorphic type
This article discusses the C++ std::polymorphic type and its application in implementing composite classes. It explores various strategies for managing class hierarchies and event logging in a smart house context.
The Problem with C++ Safety: Why “It Works” Isn’t Good Enough
Welcome back to the blog of Rainer Grimm! This is the first of hopefully many new C++-related articles in Rainer’s blog. Since you are reading this, you have potentially read many of his articles and have gotten an idea of his passion and…
C++ futures part 5: std::future and std::shared_future
This article wraps up the introduction to the C++ futures library, focusing on std::future and std::shared_future. It explains how std::future is a move-only class designed for a single consumer, while std::shared_future allows multiple consumers to access the same value.
C++ futures part 4: What if I want an immediate on-thread std::async?
This article discusses how to implement an immediate on-thread calculation using std::async in C++. It provides several methods to achieve this, including using promises and packaged tasks.
MSVC Build Tools Version 14.52 Release Candidate Now Available
The release candidate for Microsoft C++ Build Tools version 14.52 is now available, with C++23 ready for production use. This version includes updates across the compiler, linker, and standard library.
C++ futures part 3: The mental model for std::async
This article continues the exploration of C++ futures, focusing on the std::async function. It discusses the complexities of how std::async operates, including its invocation timing and threading behavior.
C++26 Ranges: Four New Views
This article discusses four new views introduced in C++26 ranges, providing insights into their functionality and usage. It serves as the first part of a series exploring the enhancements in C++26 ranges.
Generating Operator Functions
This article discusses the generation of operator functions in C++, exploring the differences between push and pull mechanisms. It provides insights into how these functions can be effectively implemented.
C++ futures part 2: The mental model for std::promise, std::packaged_task
This article explores the usage and management of the 'state' in C++ futures, specifically focusing on std::promise and std::packaged_task. It explains how these components interact and manage the lifetime of the source object.