Lurker News

Comments (137) 32 threads

Earlier comments
OnceMoreUntoThe2 replies#
Yeah, this is just a bunch of AI slop, but, ehhm... I really don't get all the CLR GC hate? Sure, if you're running a 24-months-ago Mono build, and your game performs like crap, I can sort-of sympathize, but otherwise?

Look, I'm all-in on CLR/C#, and one of my 'apps' is a 24/7 industrial camera monitoring system, and it has been running for the past, like, 3 months, on .NET 10 with "GCSettings.LatencyMode = GCLatencyMode.SustainedLowLatency" and "stackalloc" where needed, and...
Its performance, handling 8x ~800Mb/s streams has been... absolutely okay: 0 bytes over-allocated in the past 90 days (which is the last time my CoreOS-deployment auto-rebooted: all nodes are behind a VPN and outbound-only, so the latest OMG-CRITICAL-CVE doesn't really apply), so...
"If it works, it works"

hirvi741 reply#
> * if you're running a 24-months-ago Mono build, and your game performs like crap*

It's always the fault of the arrow and never the archer.

OnceMoreUntoThe1 reply#
I've no idea what that's supposed to mean.
Dwedit#
That's just another way to say "A bad workman blames his tools"
to11mtm#
I have seen a lot of GC unfriendly code.

Hell, I actually wrote one once; it was an Elixir app port to Akka.NET, but for performance and business requirements, due to various large broadcast messages of updates (as well as a policy/setup of killing an IIS worker if it hit over a certain limit,) I actually had to manually set GCHeapHardLimit via runtimeconfig; We would produce a lot of LOH stuff and somehow the way the allocator behaved as far as lack of compaction by default and the way server GC segments work on multicore, well it caused the process to frequently go over the IIS limit and kick the process.
Once we set GCHeapHardLimit (cause that magically enables LOH compaction,) all of those problems went away. Thing was smooth as silk after that (Well, at least until they added Dynatrace APM to the servers which caused a problem on every failover update of the SQL Backend...)

amelius1 reply#
The "without any GC" part has me worrying. Is this advocating to just accumulate your garbage and throw it out only once every blue moon?

Also, does it ship with GUI libraries?

DougN71 reply#
“Memory comes from arenas you free all at once”
amelius1 reply#
Yes, but this means you can only do it at very specific points in your program. E.g. after serving a request. This doesn't work for every type of program.
yodon1 reply#
You can do this today in vanilla C#. Pause garbage collection, then resume it. Done. Even Unity's ancient Mono variants could do this almost a decade ago.

Continue this thread — 1 reply

pipeline_peak#
I’ve always wondered what C# would be like without GC. Yet without Reflection, there really isn’t anything meaningful here. It’s just nice syntax leftover.
exceptione#
It builds on top of bflat, so there is a real non-vibed base there. Nice to see people take those type of bare metal efforts even further.

Load more comments