News for hackers. Stuff that matters.
Re:What .NET 10 GC Changes Mean for Developers by elmigranto on Sunday October 05, 2025 @03:48AM (#45479681)
Use managed language, it will handle memory stuff for you, you don’t have to care.

But also read these 400 articles to understand our GC. If you are lucky, we will let you change 3 settings.

Re:What .NET 10 GC Changes Mean for Developers by phito on Sunday October 05, 2025 @03:49AM (#45479696)
It works just fine out of the box. The articles/manuals are just if you want to really understand how it works and get the most out of it. What's the issue with that?
Re:What .NET 10 GC Changes Mean for Developers by samus on Sunday October 05, 2025 @04:19AM (#45479857)
You need these settings when you drive your application hard into circumstances where manual memory allocation arguably starts making sense again. Like humongous heaps, lots of big, unwieldy objects, or tight latency (or tail latency) requirements. But unless you're using things like Rust or Swift, the price of memory management is the need to investigate segmentation faults. I'd prefer to spend developer time on feature development and benchmarking instead.
Re:What .NET 10 GC Changes Mean for Developers by pjmlp on Sunday October 05, 2025 @05:14AM (#45480136)
Dr. Dobbs and The C/C++ Users Journal archives are full of articles and ads for special memory allocators, because the ones on the standard library for C or C++ also don't work in many cases, they are only good enough as general purpose allocation.
Re:What .NET 10 GC Changes Mean for Developers by bob1029 on Sunday October 05, 2025 @05:15AM (#45480144)
Re:What .NET 10 GC Changes Mean for Developers by JaggerJo on Sunday October 05, 2025 @07:43AM (#45480797)
Interesting!
Re:What .NET 10 GC Changes Mean for Developers by CharlieDigital on Sunday October 05, 2025 @07:59AM (#45480883)
In my 20+ years using C#, there's only been one instance where I needed to explicitly control some behavior of the GC (it would prematurely collect the managed handle on a ZMQ client) and that only required one line of code to pin the handle.

It pretty much never gets in your way for probably 98% of developers.