Hacker News new | ask | show | jobs
by WorldMaker 68 days ago
Something that stood out in skimming the document was how close to parity the two languages seem to have in general, especially with things like Span<T> filling in a lot of the things that might have been "gaps" earlier in C# history. Knowing Microsoft's historic biases and wars, a part of me is wondering if this document is something of a trojan horse for the opposite conversation, trying to sell more Rust users that C# can be a "system's language" today when a Rust mindset is brought to it.

Especially the "unfair" comparison of the document sticking as much to the BCL as possible and trying to avoid NuGet packages, but needing cargo packages for a lot of the side-by-sides, seems to favor C# for some types of programming.

It's great that C/C++ developers are finally starting to see the light and moving to Rust. Maybe Rust is finally the bridge from C/C++ to C# that Microsoft has historically been missing and has been the source of some internal wars at Microsoft.

2 comments

Span as concept traces back to Xerox PARC influence, in languages like Cedar, Modula-3 and co.

C# is getting its memory model revisited, in a refactoring similar to how Swift 6 went through, both caused by Rust's adoption.

Microsoft has invested in Rust for a very long time, and uses it themselves in production. I really doubt they are trying to get Rust folks to move to C#.
Microsoft has invested in C# for a much longer time, and uses it themselves in production. Why would you doubt Microsoft has at least some vested interest in exploring more cross-over of C# for systems programming that today Rust gets used for, but C# is growing capable of doing?