3 ms·
Span<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" sy
by WorldMaker 4y ago
Span<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.