Conversation

Systems code benefits from memory and type safety even more than most other code because it's often in a position of trust and privilege. Using a language where unsafety can be contained and quickly wrapped into safe APIs is certainly useful advice for newly written systems code.
1
6
The expectations of software robustness and security have increased a lot, and it's simply not realistic to achieve it while using unsafe tools making it much more difficult to write safe code. Writing something complex like an safe ext4 implementation is C is not very realistic.
1
5
i.e. writing the entire thing with zero memory corruption bugs for an attacker to exploit either via an attacker controlled filesystem or an application. Drivers similarly have to be written treating the hardware and code using them as adversarial. Choice of tools is important.
1
2
This Tweet was deleted by the Tweet author. Learn more
Once again, you're making strawman arguments and completely misrepresenting what I said. Let me just quote it for you: twitter.com/DanielMicay/st. This is about minimizing the trusted computing base. The amount of code that needs to do those things in a FS driver is very small.
Quote Tweet
Replying to @filpizlo @RichFelker and 4 others
Systems code benefits from memory and type safety even more than most other code because it's often in a position of trust and privilege. Using a language where unsafety can be contained and quickly wrapped into safe APIs is certainly useful advice for newly written systems code.
1
There are certainly widely used examples of microkernels and memory safe languages. Every single smartphone has multiple microkernel-based operating systems running on it, and there's ever increasing adoption of memory safe language in the main OS too, including for systems code.
1
iOS has been adopting Swift for various core system services and libraries. Android mostly uses Java above the kernel / driver layer (system_server). Their userspace network stack is Go. None of these is a low-level language like Rust, but most systems code doesn't need one.
1