4 ms·
What's the strategy behind this move? Is MS adding some Rust APIs to some of their products?
by vander_elst 6y ago
What's the strategy behind this move? Is MS adding some Rust APIs to some of their products?
- pca006132 6y agohttps://cloudblogs.microsoft.com/opensource/2021/02/08/microsoft-joins-rust-foundation/ https://cloudblogs.microsoft.com/opensource/2021/02/08/micro... They are one of the founding member of Rust Foundation, and from the article it seems that they do use Rust in some of their products.
- yannikyeo 6y agoThey released a while back Rust crate for Windows API: https://github.com/microsoft/windows-rs https://github.com/microsoft/windows-rs
- toyg 6y agoI wouldn’t be surprised to learn that MS see Rust as a strategic “safer C” going forward. They have tons of legacy, dangerous C/C++ code across their traditional products (and Windows in particular), which could be slowly replaced with more robust Rust implementations.
- dsfbjornjaja 6y agoUntil Rust is replaced with something else (perhaps steel-lang or carbon-nanotube-lang). :)
- wongarsu 6y agoRust also fits perfectly into their general desire for robust drivers, for example with the Static Driver Verifier [1]. If a device driver misbehaves people usually blame Windows, so they spend energy on reducing the classes of bugs that can happen. 1: https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/survey-of-verification-tools https://docs.microsoft.com/en-us/windows-hardware/drivers/de...
- iudqnolq 6y agoMicrosoft's c codebase is heavily annotated with custom annotations they check at compile time. It's not as powerful as Rust, but very cool. https://docs.microsoft.com/en-us/cpp/code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects?view=msvc-160 https://docs.microsoft.com/en-us/cpp/code-quality/using-sal-...
- korginator 6y agoAmazon, Google, MS and Huawei are Rust foundation members.
- the_duke 6y agoThey are starting to rewrite Windows components in Rust [1] and are also founding members of the foundation. [1] https://msrc-blog.microsoft.com/2019/11/07/using-rust-in-windows/ https://msrc-blog.microsoft.com/2019/11/07/using-rust-in-win...
- INTPenis 6y agoPartly they probably just want people to be able to use different languages on their OS. They have similar guides for Go and Java for example.