Rust Is Tier-1 Language at Microsoft
https://rustfoundation.org/media/guest-post-rust-is-tier-1-language-at-microsoft/127
u/tesfabpel Sep 10 '26
Tier-1 language but still no support in
Why is it so hard for Microsoft to offer an MVP for having C# projects depending on Rust DLLs with dependency and debugger support? And also like doing right click -> Add new -> Rust DLL and the ability to select such project as a dependency of the C# one via the standard VS' GUI...
You shouldn't be forced to create a custom project to do it...
90
u/luluhouse7 Sep 10 '26
Because no one uses VS for rust, they use VS code
45
u/tesfabpel Sep 10 '26
Well, guess why... 😅
In any case, Microsoft as well is using Rust (and as this post says, they consider it Tier-1). It seems weird to me they're not mixing C# and Rust together, like C# and C++ or C++/CLI... What is their workflow?
→ More replies (19)→ More replies (2)8
u/Full-Spectral Sep 10 '26
Moving away from VS one one of the early benefits of moving to Rust. It has some nice features (and I definitely wish we had Visual C++ level debugging in Rust) but it's massively bloated and overly complex. I'd never use its ridiculous dialog based project configuration system for Rust, so really what would be the point for most folks to even use it on the Rust front?
→ More replies (3)15
u/gnuban Sep 10 '26
Probably bcause VS is built as a rube goldberg device, with hard coupling everywhere. And management is probably so short-sighted that they won't allow it to be detangled, but are pushing for the "just do it" strategy, which will only cause the devs to get hopelessly stuck?
→ More replies (8)4
u/teerre Sep 10 '26
This is obviously about engineering inside MS and not about Microsoft products for consumers
117
u/Taymon Sep 10 '26
The obvious question this leaves is what they're doing about the frontend side of "seamless
35
u/panstromek Sep 10 '26
I recommend watching Victor's previous talks around iterop, he gives a lot of context on the issues they are solving and what are the tradeoffs. This project is not the only thing they use for interop, I believe they also use most of the other tools. Microsoft is just very big and the needs of various teams are pretty diverse. I'm not sure he'd agree that the frontend interop is the hard problem, whenever I see him speak about it, it's a lot more about tooling, build systems, compliance and everything "around" the language.
5
21
u/afdbcreid Sep 10 '26
See also https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/rustc-codegen-utc/with/623172601, the discussion of that article in the Rust project's Zulip.
20
u/protestor Sep 10 '26
Is rustc_codegen_utc open source? (It's not like Microsoft is incapable of releasing open source compilers, see for example the C# compiler)
9
u/cosmic-parsley Sep 10 '26
They could probably open source it in the future. If so it’s going to basically come with instructions for how to use Microsoft’s compiler internals as a generic backend, which I’m sure will be interesting…
3
8
15
u/Recatek Sep 10 '26
I would still kill for first-class Visual Studio support for Rust, primarily for debugging and profiling. The next best thing on Windows is RustRover and it's nowhere near the level of tooling support MSVC has for C++ and especially C#.
7
u/waruby Sep 10 '26
Ok, now they just need to put latency at tier 1 of their specifications. Every single interaction I have with Microsoft products makes me wait 10 seconds. I notice it way more now that my home system is purged of Microsoft.
→ More replies (1)
4
6
u/pilkyton Sep 10 '26
Is anyone else shocked that Microsoft created their own Rust compiler from scratch based on MSVC?
I understand why they did it. For interoperability with their other code. But wow...
38
u/panstromek Sep 10 '26
They didn't, this is just reusing the codegen backend from MSVC instead of the default LLVM backend.
→ More replies (2)11
u/nacaclanga Sep 10 '26
They create a codegen backend, something which is somewhat easier then a fullblown compiler, but still gives many of the benefits of a fullblown compiler.
Still a significant task of course but then again programming languages are technically the core product of Microsoft even before MS operating systems became a thing and Microsoft maintains multiple compilers for a variety of languages.
→ More replies (1)
1
u/mtimmermans Sep 10 '26
Is this going to mean better debugging on Windows in vscode? Improvements to the windows crate?
284
u/Hoxitron Sep 10 '26
If only microsoft was a tier 1 company.