Our Vision for .NET 9 - .NET Blog (devblogs.microsoft.com)
from morrowind@lemmy.ml to programming@programming.dev on 14 Feb 2024 06:14
https://lemmy.ml/post/11887303

#programming

threaded - newest

TCB13@lemmy.world on 14 Feb 2024 11:37 collapse

Meanwhile Microsoft internally transitions to Rust. Aahaah

porgamrer@programming.dev on 14 Feb 2024 14:05 collapse

Rewriting bits of the kernel makes sense. I can’t imagine them porting much C# to Rust though, beyond very small, self-contained services.

Everyone likes a dramatic headline, but in my estimation there is 0% chance of Microsoft pushing widespread Rust adoption over C#.

In the long-term I’d guess they are more likely to continue extending C# with features that make it possible to optimise hot loops. They already added NativeAoT and ref structs, and they have done a lot of research into memory regions and capabilities (an alternative to Rust’s affine types).

Eventually it may be possible to opt into a clunky language subset that gives Rust-like performance without giving up memory safety.

They are also quite likely to use OS-level intervention to safely sandbox C++ code inside a .NET process without giving up performance. They’ve done a lot of research on this, and now they can steal notes from webassembly too.