3 ms·
Now, if they would also introduce a way to disable GC and do manual memory management, C# could tackle more systems programming, too, becoming the supreme Jack
by DeathArrow 4y ago
Now, if they would also introduce a way to disable GC and do manual memory management, C# could tackle more systems programming, too, becoming the supreme Jack of All Trades. It's used for: backend, desktops, frontend (with Blazor), desktop, mobile and even microcontrollers.
- WorldMaker 4y agoSpan<T> and friends is having manual memory management cake and eating it in a GC managed world too. So far as I'm aware they weren't directly "designed for" systems programming, but there's a growing impressive body of work that a lot of the benefits to raw memory management and "pointer arithmetic" you can get from type safe stack-only "borrowable" functors in a GC language/environment. Span<T> and its friends don't cover every scenario you might wish for "serious" systems programming, yet, but I wouldn't be surprised if the slow weird convergence with Rust borrow mechanics eventually makes C# look like a good option for systems programming, too.
- pjmlp 4y agohttps://www.wildernesslabs.co/netduino https://www.wildernesslabs.co/netduino https://www.wildernesslabs.co/ https://www.wildernesslabs.co/ https://docs.microsoft.com/en-us/dotnet/api/system.gc.trystartnogcregion?view=net-6.0 https://docs.microsoft.com/en-us/dotnet/api/system.gc.trysta... https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.nativememory.alloc?view=net-6.0 https://docs.microsoft.com/en-us/dotnet/api/system.runtime.i... https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.marshal?view=net-6.0 https://docs.microsoft.com/en-us/dotnet/api/system.runtime.i... Go have fun!
- SemanticStrengh 4y agoalways has been