I'm developing a bridge to allow agents to interact with my Windbg session. I tested it with an old dump, the agent ran a bunch of commands and immediately crashed Windbg. So now we're debugging Windbg.
Posts by Kevin Gosse
New issue of .NET R&D Digest is here! Thx to
@simonwillison.net, @birgitta410.bsky.social, @kief.com, @lemire.bsky.social, @kevingosse.net, @andrewlock.bsky.social, @meziantou.net, @stevesanderson.bsky.social & other authors for their g8 content!
#dotnet
olegkarasik.wordpress.com/2026/04/03/n...
I'm still experimenting with exactly how to include it in my workflow, but Claude is so good at reverse engineering that it's really a game changer for advanced debugging.
Everything is open-source if you're fluent in assembly code.
Where does the .NET community live nowadays? Because apparently posting a technical article on reddit is considered self-promotion and forbidden except on Saturday.
Honestly I'm speechless.
Oh I see my wording was ambiguous. It doesn't "use" 2 TB, it just reserves it.
I'm confused about what in this article would cause this reaction.
If it's because of the 2 TB, you might want to re-read the explanation about reserved memory.
Have you ever noticed that a simple .NET Core applications on 64-bit uses more than 2TB of virtual memory?
In a new episode of the series "writing a .NET garbage collector in C#", we discover the kind of problem that it intends to solve: minidump.net/writing-a-ne...
It's exactly for that, yes 🙂
"58.8% left for the month" doesn't speak to me. "51/74 requests used for today" does.
I wish it would run automatically from Copilot, but Copilot-CLI doesn't support global hooks yet. Maybe in the future.
It's a simple CLI tool that tells me how many more requests I can use for the day without worrying, along with a few additional stats.
You can install it with cargo:
cargo install copilot-usage
Source code is available on github: github.com/kevingosse/c...
I like Copilot CLI but the billing model stresses me out a little. Because there's no hourly or daily limit, I worry that I might run out of requests before the end of the month, and use them very conservatively. Then I end the month with a lot of unused quota.
So I built a tool.
I'm trying GPT-5.4 and scratching my head when seeing the generated code.
What reasoning process could lead to explicitly initializing to null a property, _and_ using the null-forgiving operator.
The tool can be installed from Winget:
winget install KevinGosse.ClipPing
Or directly from github: github.com/kevingosse/C...
I rewrote it entirely in C++ because RAM isn't cheap anymore.
ClipPing got a major update!
The tool displays a visual notification whenever the content of the clipboard changes, for all of you who are tired of ctrl+c not working.
I added configurable overlays, and some QoL improvements (like automatically starting the tool with Windows).
It's crazy that Windows will post notifications for the most unsignificant stuff (like the unfamous "Windows Defender Antivirus did not find any threats"), but I had to check my event viewer for completely unrelated reasons to randomly discover that one of my HDDs is dying.
I published part 8 of my "Writing a .NET Garbage Collector in C#" series. The subject this time is interior pointers: what are they, and why are they so challenging for the GC.
minidump.net/writing-a-ne...
I'm surprised that "dotnet tool install -g" uses the local nuget config, if any.
For local tools, I get it. For global tools, I would expect it to always use the userprofile config. Sounds a bit dangerous? Like, if you run the command from your Downloads or temp folder and you have a leftover file.
Pro-tip: even if it's tempting, resist the urge to argue with copilot
I got "tricked" by PerfView when using it to measure the effectiveness of my optimizations, so I decided to write about it: minidump.net/an-unexpecte...
It's not specific to PerfView though, in theory this could happen with any profiler.
I published a new article in my "Writing a .NET GC in C#" series. This time, we implement a better storage for the handles, and we properly mark them during garbage collection. We also see why DependentHandles are annoying to deal with.
minidump.net/writing-a-ne...
After a long wait, I've finally published the sixth part in my "Writing a .NET Garbage Collector in C#" series. Today, we start implementing mark and sweep.
minidump.net/writing-a-ne...
I learned programming on a 80286 with Qbasic. Out of curiosity I checked how this demo would run on that hardware (~1500 cycles/s in dosbox).
Way too slow in QB 1.1 (interpreted), even in CGA. Much better in QB 4.5 (compiled), though it would need some double-buffering to fix the flickering.
If you missed this video, I strongly recommend watching it. It's a great introduction to 3D graphics, short and easy to understand. I had a lot of fun reimplementing it in Winforms and text mode.
Today I ran into a deadlock in VS2026. I debugged it, and it turned out to be a common issue you may run into when writing a profiler.
I wrote a short article about it: minidump.net/investigatin...
Visual Studio 2026 18.1.1 has been released. I strongly recommend upgrading if you're using ReSharper, as it fixes an issue that was making startup significantly slower.
Thanks a lot to the VS team for their reactivity!
Blogged: Creating a .NET CLR profiler using C# and NativeAOT with Silhouette
andrewlock.net/creating-a-d...
In this post I look at how to create a simple .NET profiler. But instead of using C++, the profiler uses C# and NativeAOT with @kevingosse.net's Silhouette library
#dotnet
Anyway, if you're using their backup client, you'll probably want to know that they have hidden exclusion rules, and they exclude .git folders by default: www.reddit.com/r/backblaze/...
I like the peace of mind that @backblaze.bsky.social
is offering, especially after my recent SSD crash. But god, their support is beyond bad. I've contacted them twice, and both times I had to solve the issue myself after a completely unhelpful exchange.
That sounds crazy but honestly I've seen crazier stuff. I'll give it a try, thanks.