Michal Strehovský
banner
migeel.sk
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.
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).
November 7, 2025 at 2:17 PM
3/3 There is also a dark mode now if your system is set to dark mode.
December 19, 2024 at 8:13 AM
2/3 Despite being a dotnet tool (that are not supposed to be native) I compile sizoscope with native AOT now. It starts visibly faster. It will also thunk to Wine if you're not on Windows so installing the tool on non-Windows works great (provided you installed Wine). Looks like this on my Ubuntu:
December 19, 2024 at 8:13 AM
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.
December 19, 2024 at 8:13 AM
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.
November 27, 2024 at 10:01 PM
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.
November 26, 2024 at 8:18 AM
3/4 Windows will not allow you to choose this notepad in the "Open with" dialog. If you choose it, you'll be presented with the below window. To fix it, Regedit to HKEY_CLASSES_ROOT\Applications\notepad.exe and delete the NoOpenWith value.
November 20, 2024 at 8:53 PM
2/4 Typing notepad<enter> in PowerShell is going to have a ~1 in 10 chance of opening notepad.exe in notepad instead of a blank document (wtf). The fix is to delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe
November 20, 2024 at 8:53 PM
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. 👇
November 20, 2024 at 8:53 PM
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...
November 18, 2024 at 7:30 AM
6/N Now look at the same program compiled with TrimmerRootAssembly. Since we told the compiler SomeField could be a target of reflection, this no longer optimizes to zero.
November 13, 2024 at 10:45 PM
5/N Whole program view that the compiler builds requires knowing what things are targets of reflection. Take this program for example. We know SomeField is not target of reflection, we know nothing assigns it. We know it will always be 0 and compile it as such.
November 13, 2024 at 10:45 PM
.NET conf 2024 is this week and I'll go deep into native AOT on Friday!
November 11, 2024 at 7:28 AM
September 18, 2024 at 4:35 AM
Different ways .NET makes sure your code is done fast.
September 12, 2024 at 6:56 AM
1/ There is now a 4 MB portable ZIP version of my Sizoscope tool (built with C# and WinForms) that runs on Windows and Linux. While WinForms in the .NET 9 nightlies is still not fully trim-safe or AOT-safe it didn't require too many hacks to get native AOT working with Sizoscope.
May 21, 2024 at 7:36 AM
For my next trick I'm going to build a 64 MB self-contained game in C# and then shrink it to 1936 bytes in 10 steps. Read all about it in my latest article: migeel.sk/blog/2024/01...
January 2, 2024 at 11:59 PM
Made a bare metal bootable maze "game" in C# as a demo of what's possible with bflat's zerolib. Anyone interested in reading a write-up of how I did it? Source here: github.com/MichalStreho...
November 25, 2023 at 9:27 AM
New version of Sizoscope, my tool to inspect size of .NET native AOT binaries is out. If you're on .NET 9, the tool will now show you "frozen objects", a frozen part of the GC heap that the compiler generated ahead of time. They're the result of executing your code ahead of time.
November 15, 2023 at 10:57 PM