News for hackers. Stuff that matters.
Re:Improving C# Memory Safety by pjmlp on Saturday May 23, 2026 @10:37AM (#48248111)
Many of us use it in scenarios where others would write a blog post about a rewrite in Rust, C++ or whatever.

CLR was designed to support languages like C++, yet many don't learn the knobs.

Re:Improving C# Memory Safety by Weebs on Saturday May 23, 2026 @12:48PM (#48249136)
Any lesser known knobs one should know? I'm considering a .NET backend for my compiler
Re:Improving C# Memory Safety by pjmlp on Saturday May 23, 2026 @01:00PM (#48249235)
If on Windows, one is to see what C++/CLI would generate, with ildisam or similar tool.

You can also emit MSIL for what you actually want to do, with low-level bytecodes.

Then there is unsafe, ref structs, stack allocation, fixed buffers, scoped types, manual memory management, array pools, memory pipelines, the various span variants.