4 ms·
How would this work? And why would it be a better idea?
by anon25783 3y ago
How would this work? And why would it be a better idea?
- mustache_kimono 3y ago> How would this work? Don't know exactly what you're asking. > And why would it be a better idea? Poorly written device drivers are a significant attack vector. It's one of the reasons Linux is now exploring using Rust for its own device drivers.[0] You may be asking -- why Rust and not some other language? Rust has many of the performance and interoperability advantages of C and C++, but as noted, makes certain classes of memory safety issues impossible. Rust also has significant mindshare among systems programming communities. [0]: https://rust-for-linux.com https://rust-for-linux.com
- anon25783 3y agoYeah okay but device drivers in C#? That sounds very impractical when you could pick any other language. C, C++, Rust, D, Zig, Objective-C, all seem more suitable than C#. I agree with all that stuff you said about Rust; I was asking how drivers in C# would work
- pjmlp 3y agoLike this, for a possible example, https://github.com/WildernessLabs/Meadow.Foundation https://github.com/WildernessLabs/Meadow.Foundation