eb3yr.bsky.social
@eb3yr.bsky.social
TIL System.Drawing.Color in .NET is 24 bytes rather than the expected 4. Turns out it has a string name, Int64 used to store a 32 bit number, and some flags for name validation? Found this out when discussing poor performance with large struct properties, of which this was probably the culprit.
February 19, 2025 at 6:57 PM
Tried to outsmart the .NET team with my own string.IndexOf(char) implementation. Turns out they're pretty hard to beat, even when you take advantage of SIMD. Hoping to improve it over the next few days. Code can be found [here](github.com/Eb3yr/Eb3yrL...)
February 18, 2025 at 12:53 AM
November 17, 2024 at 12:26 AM
November 5, 2024 at 10:55 PM
Just earlier I was messing around with a basic particle sim using C# and Monogame, and watching the result move around, yeah. I'd say there's art in that, if nothing else than for how enjoyable it is to watch and was to make.
October 12, 2024 at 10:28 PM