4 ms·
I 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 traditiona
by toyg 6y ago
I 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-...