I'll be speaking at the .NET Developers meetup in Tokyo on June 9th!
Michal Strehovský
@migeel.sk
I help building the .NET runtime at Microsoft. My tweets are my own opinions and/or shitposts, not the official party line.
1/N I vibe-coded a C compiler that targets .NET IL. It can build unmodified PureDOOM into a .NET app that runs on both .NET 10 and desktop framework.
Found Sokol.NET - C# bindings for the Sokol crossplat gfx framework. If you haven't heard about Sokol, it's a C header-only library to build crossplat gfx/audio apps (games). Sokol.NET wraps it for C# (Win/Linux/Mac/Android/iOS/WASM). Tons of samples. Also native AOT: github.com/elix22/Sokol...
GitHub - elix22/Sokol.NET: Cross-platform graphics framework for C# with .NET NativeAOT | Desktop • Mobile • Web | Direct3D • Metal • OpenGL • WebGL
Cross-platform graphics framework for C# with .NET NativeAOT | Desktop • Mobile • Web | Direct3D • Metal • OpenGL • WebGL - elix22/Sokol.NET
github.com
Nice article on the state of native AOT with the release of .NET 10: code.soundaranbu.com/state-of-nat...
State of Native AOT in .NET 10
After 3 years since my previous article on Native AOT, let’s find out how far AOT compilation in .NET has come.
code.soundaranbu.com
Sorry but the off-color corner of the new Word icon looks like a compression artifact when taskbar is set to small (and sorry but small & never combine & show labels is the only correct taskbar configuration on Windows, this is not macOS).
After #flareon11 challenge 7, I got inspired to build tooling for #dotnet Native AOT reverse engineering. As such, I built a #Ghidra Analyzer that can automatically recover most .NET types, methods and frozen objects (e.g., strings). 👉https://blog.washi.dev/posts/recovering-nativeaot-metadata/
A small template to write self-contained Win32 services in C# with NativeAOT: gist.github.com/jbevain/b295...
Service.cs
GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
I've published the third part of my series of articles about writing a .NET garbage collector in C#. In this one, we add a helper method to inspect the objects in memory, learning about thread modes and the DAC. minidump.net/writing-a-ne... #dotnet
Writing a .NET Garbage Collector in C# - Part 3
Using NativeAOT to write a .NET GC in C#. The third part adds some tooling to inspect the objects stored on the heap.
minidump.net
After writing a profiler in C#, I've now published the first of a series of articles about how use C# to... write a .NET Garbage Collector. #dotnet minidump.net/2025-28-01-w...
Writing a .NET Garbage Collector in C# - Part 1
First part of a series of articles about writing a .NET Garbage Collector in C# using NativeAOT. This part sets the expectations and setups the project, dealing with the first difficulties.
minidump.net
Cool project: a hypervisor-based emulator for Windows x64 user-mode executables. One of my first thoughts upon seeing it - "I wonder if it's also possible to call the Windows hypervisor APIs from C#". github.com/x86matthew/W...
GitHub - x86matthew/WinVisor: WinVisor - A hypervisor-based emulator for Windows x64 user-mode executables using Windows Hypervisor Platform API
WinVisor - A hypervisor-based emulator for Windows x64 user-mode executables using Windows Hypervisor Platform API - x86matthew/WinVisor
github.com
I published part 5 of my "Writing a .NET profiler in C#" series. All the foundations built in the previous articles have been moved to a library named Silhouette. In this new article, we finally have everything we need to write an actual profiler. minidump.net/writing-a-ne... #dotnet
Writing a .NET profiler in C# - Part 5
Part 5 of the series about using NativeAOT to write a .NET profiler in C#. We have all the foundations, we’re finally writing an actual profiler.
minidump.net
Finally had time over the holidays to realize a long-standing dream of mine: a hex editor that knows about the PE file and .NET metadata format. You can click any byte and it will show you which data structure it is in the tree. Every byte is covered. The parser is at github.com/KirillOsenko...
got my custom sokol-backed c# game engine zinc compiling to wasm using nativeaot-llvm! and for anyone else headed in a similar direction, I spent some time writing up what it took, what bugs I encountered, etc! give it a read here #gamedev #zinc #csharp kylekukshtel.com/csharp-wasm-...
So You Want To Compile Your C# Game Engine To The Web With WASM - k-hole
Diving into the NativeAOT-LLVM compile chain to make my game engine work on the web
kylekukshtel.com
Forgot that the docs are here: www.nuget.org/packages/siz.... To install, simply `dotnet tool install sizoscope --global` but you'll want to read the docs to find out how to create the files this tool operates on.
sizoscope 1.1.0
.NET tool to analyze size of Native AOT binaries.
nuget.org
1/3 New version of sizoscope, my tool to analyze size of .NET native AOT executables, is out! It can now show you sizes of some of the blobs within the executable just to give a more complete picture.
1/3 New version of sizoscope, my tool to analyze size of .NET native AOT executables, is out! It can now show you sizes of some of the blobs within the executable just to give a more complete picture.
Invoke Mechanism for the .NET CLR, etc. - George Bosworth - 2001/09 www.youtube.com/watch?v=Uimh...
.NET Workshop - Invoke Mechanism for the .NET CLR, etc. - George Bosworth, Nick Benton - 2001/09
YouTube video by WalkingCat
youtube.com
Thanksgiving is approaching in the US and that means time with family. People in your family were presented with this dialog in the past and probably just clicked the button Google wanted them to click. Ask them if they want to browse the web, or if they want web to browse them.
If you're into low level .NET, you should give @xoofx.mastodon.social.ap.brid.gy a follow!
JIT compiled .NET will often be faster than AOT compiled .NET thanks to dynamic PGO. But AOT compilation has some tricks up the sleeve too. In .NET 9, the TechEmpower JSON benchmark ends up a bit faster with AOT.
The C# Community Discord is putting on another virtual conference, and I'll be talking performance. SIMD content guaranteed. Nov 24 @ 17:30 UTC www.youtube.com/watch?v=T4Ao...
Solution2: C# Is Faster Than C++!!!!!1!!! with Clinton Ingram
YouTube video by .NET Foundation
youtube.com
1/4 Life hack: uninstalling the Notepad app in Windows 11 gives you back old notepad.exe that starts faster and uses less memory. This Notepad is going to be a bit cursed and registry hacks are needed to uncurse it. 👇
Last time I got free stuff from Microsoft as an employee was when I got a T-shirt for shipping .NET 6.
Microsoft created a unique purple and blue Surface colorway for employees that worked on the Copilot+ PC launch. This won’t be available to purchase, just something for some Microsoft employees. It looks great in person 👍
The .NET native AOT compiler used to have an unsupported mode where it broke all reflection for size savings. I added the mode in 2019 when Hello World was 4 MB and with broken reflection only 1 MB. It was a good goalpost. In .NET 9 they're both ~1 MB: goalpost reached! github.com/dotnet/runti...
Game Engine Black Book: DOOM v1.2 Game Engine Black Book: WOLFENSTEIN 3D v2.2 The Book of CP-System v1.0 Free pdfs, high-quality 80g premium color prints, PlayStore, and source code are now available. fabiensanglard.net/three_books_...
My Deep dive on native AOT talk is now available for on-demand viewing! www.youtube.com/watch?v=Gmn-...
Deep dive on native AOT
YouTube video by dotnet
youtube.com
Starting in 10 hours from now here, available on-demand later: www.youtube.com/watch?v=Gmn-...
Deep dive on native AOT
YouTube video by dotnet
youtube.com
.NET conf 2024 is this week and I'll go deep into native AOT on Friday!
1/N When the .NET native AOT compiler compiles your app to native code, it needs to perform whole program analysis to figure out all parts of your program. Reflection kind of throws a wrench in that because some reflection is really hard to reason about statically.
CALLING .NET DEVS: Solution2 is the 2nd conference organized by the C# community discord server. Follow us from Nov 18th to Nov 24th for some great talks with great people about .NET and C#! Join on Discord: discord.gg/csharp & YT: www.youtube.com/c/NETFoundat...) (P.S. .NET peeps please repost!)