Maxwell Katz's Avatar

Maxwell Katz

@maxkatz6.bsky.social

Working with code and collecting teas. At @avaloniaui.net, Seattle WA

44 Followers  |  144 Following  |  22 Posts  |  Joined: 23.11.2024  |  1.9894

Latest posts by maxkatz6.bsky.social on Bluesky

Post image

As I work on Resharper performance, I learn about limitations of .NET (at least, .NET Framework) that I wasn't aware of. Here, I shaved 1 second of CPU time on startup by... removing a call to Array.Empty<T>.

23.07.2025 10:30 โ€” ๐Ÿ‘ 34    ๐Ÿ” 4    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

But not when you decide to check it one more time before bed and itโ€™s red.

08.07.2025 20:08 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

For NativeWebView, .BeginReparenting() method should be useful to keep native element loaded in tree while doing dโ€™nโ€™d and replacing parents ๐Ÿ‘€

08.07.2025 18:49 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

This

github.com/dotnet/rosly...

08.07.2025 01:14 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Old source generators API was much easier, but also much slower.

New incremental generators are difficult. Although roslyn team has a very informative cook book.

08.07.2025 01:14 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Seattle July 4th fireworks

Seattle July 4th fireworks

๐ŸŽ‡๐ŸŽ†๐ŸŽ‡

05.07.2025 06:03 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Because wordpad is dead.

30.05.2025 19:26 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

5,658 miles. Quite a distance.

20.03.2025 04:36 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Right thing for the right task is a good point. And TypeScript team explained well, why did they choose Go.

And yet, C# can be also considered a right tool for this specific task. While also having syntax close enough compared to TS.

In the end, Go is fine too, and job has already been started.

12.03.2025 16:21 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

It was almost ten years ago. Time flies.

08.03.2025 01:57 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
With the Space Needle and a partly cloudy sky as a backdrop, people hold signs at todayโ€™s rally. One says โ€œScience is US.โ€ Another reads โ€œ#StandUp for Science.โ€

With the Space Needle and a partly cloudy sky as a backdrop, people hold signs at todayโ€™s rally. One says โ€œScience is US.โ€ Another reads โ€œ#StandUp for Science.โ€

Two people in chicken costumes hold signs at the science rally. A man in a fuzzy yellow chicken suit with red leggings holds a sign that reads, โ€œUs birds are dying while RFK Jr is lying. #sciencesaveslives.โ€ Next to him, a woman in a white and red chicken suit with yellow leggings holds a sign that reads, โ€œWe have the Flu. Soon you may too. #sciencesaveslivesโ€

Two people in chicken costumes hold signs at the science rally. A man in a fuzzy yellow chicken suit with red leggings holds a sign that reads, โ€œUs birds are dying while RFK Jr is lying. #sciencesaveslives.โ€ Next to him, a woman in a white and red chicken suit with yellow leggings holds a sign that reads, โ€œWe have the Flu. Soon you may too. #sciencesaveslivesโ€

With the Space Needle in the background, here are two more signs at the science rally. The one on the left says, โ€œIgnorance of science is not evidence against itโ€ and the one on the right says, โ€œDonโ€™t silence the science.โ€

With the Space Needle in the background, here are two more signs at the science rally. The one on the left says, โ€œIgnorance of science is not evidence against itโ€ and the one on the right says, โ€œDonโ€™t silence the science.โ€

Two more great signs at the science rally. On the left, โ€œGIRLS just wanna have FUNding for research.โ€ On the right, โ€œMAD SCIENTISTโ€ above a picture of Beaker from the Muppets.

Two more great signs at the science rally. On the left, โ€œGIRLS just wanna have FUNding for research.โ€ On the right, โ€œMAD SCIENTISTโ€ above a picture of Beaker from the Muppets.

A great turnout for #StandUpForScience2025 in Seattle. About 2000 people showed under partly sunny skies, with appearances by Gov. Ferguson and a bald eagle flyover! Plus lots of great signs. ๐Ÿงช

08.03.2025 00:54 โ€” ๐Ÿ‘ 129    ๐Ÿ” 18    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 2

My personal rule with using AI is simple.

Any cloud-AI solution must be explicit, where I control what to send. Like a llm chat or similar.

For implicit stuff like autocomplete, it should be a local model or no AI at all.

27.02.2025 22:12 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

You hate XAML? Then write our app in JavaScript React CSS HTML Electron **insert more buzzwords**

27.02.2025 22:02 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Screenshots of four different editions of CrystalDiskInfo. Three of them have Japanese anime characters featured prominently in the UI for absolutely no reason other than the author thinks they look nice.

Screenshots of four different editions of CrystalDiskInfo. Three of them have Japanese anime characters featured prominently in the UI for absolutely no reason other than the author thinks they look nice.

Isn't it nice living in a world where the de facto hard drive diagnostic tool for WIndows, CrystalDiskInfo, comes in four different editions - which are identical other than featuring a different anime character as the background to the main window?

26.02.2025 19:00 โ€” ๐Ÿ‘ 21    ๐Ÿ” 4    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Screen mirroring to your Samsung TV You can mirror your phoneโ€™s screen to your Samsung TV using the Smart View feature.

Looks like it's possible www.samsung.com/us/support/a...

04.02.2025 08:19 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I can cast from my mac to apple tv. No idea about windows, I use hdmi there.

04.02.2025 08:18 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

I bought S90B in 2023, and use it with apple tv and sometimes direct hdmi from my pc for some games. No issues so far.

04.02.2025 08:10 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Aside from tv size, you should decide on the panel. Something like QD-OLED or WOLED is cutting-edge tech, with benefits of HDR and color quality. Leaders are Samsung and LG, but any tv with these panels should be at least decent.

04.02.2025 08:08 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I guess it makes more sense if I had to move my plex/jellyfin server outside of the local network.

19.01.2025 00:25 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Whatโ€™s the benefit of using tailscale for local home network? They even mention Plex and Jellyfin as an example, but I can connect to these directly via official clients.

19.01.2025 00:23 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 0
Preview
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.

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

07.01.2025 09:35 โ€” ๐Ÿ‘ 28    ๐Ÿ” 11    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Screenshot of a hex editor with a PE file open, on the left there's a tree with the headers, sections and other parts of the file format. On the right there's a typical table of bytes in hex.

Screenshot of a hex editor with a PE file open, on the left there's a tree with the headers, sections and other parts of the file format. On the right there's a typical table of bytes in hex.

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...

29.12.2024 20:08 โ€” ๐Ÿ‘ 244    ๐Ÿ” 65    ๐Ÿ’ฌ 8    ๐Ÿ“Œ 2

Tea is โ€œAlishan High Mountain Oolongโ€, from Floating Leaves Seattle.

20.12.2024 05:23 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Dry tea leaves, pretty small.

Dry tea leaves, pretty small.

Wet tea leaves after brewing. Surprisingly they have expanded in size a lot.

Wet tea leaves after brewing. Surprisingly they have expanded in size a lot.

Never stops to surprise me how much tea leaves can expand in size after brewing. #tea

20.12.2024 05:21 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I only used OxyPlot and LiveCharts2 with Avalonia. No issues with either of them.

LiveChats is especially good with bigger graphs updating every second.

15.12.2024 01:00 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Did you know that you can define a DebuggerDisplayAttribute for a type from another assembly? Just add an assembly-level attribute to your code and specify the Target type:

[assembly: DebuggerDisplay(@"\{Color = {Color}}", Target = typeof(Pen))]

11.12.2024 07:30 โ€” ๐Ÿ‘ 73    ๐Ÿ” 23    ๐Ÿ’ฌ 6    ๐Ÿ“Œ 0

I wonder if there is a library that can parse these expressions and visualize debugger info based on a context or .net reflection. Could be useful.

11.12.2024 10:46 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Feels like โ€œDynamicDependencyโ€ attributes is the only reasonable workaround there, while keeping templates controls approach.

05.12.2024 21:08 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

@maxkatz6 is following 20 prominent accounts