4 ms·
Somewhat related: Brian Cantrill's "Is it time to rewrite the operating system in Rust?" (https://www.slideshare.net/bcantrill/is-it-time-to-rewrite-the-operati
by masklinn 8y ago
Somewhat related: Brian Cantrill's "Is it time to rewrite the operating system in Rust?" (https://www.slideshare.net/bcantrill/is-it-time-to-rewrite-the-operating-system-in-rust https://www.slideshare.net/bcantrill/is-it-time-to-rewrite-t...), whose conclusion is (following Betteridge's) "no":
> An OS kernel — despite its historic appeal and superficial fit for Rust — may represent more challenge than its worth
However it suggests more hybrid approaches:
* asm/C kernel with Rust kernel components like drivers and filesystems, Rust can be used for new developments and enable an incremental introduction, mentions a prototype example in freebsd
* Rust for non-kernel OS components: an OS is not just a kernel and utilities, daemons, management facilities, debuggers, … bundled as part of the system tend to be more prone to run-time failures than the kernel itself (and more commonly face hostile interactions), making them excellent candidates for Rust
* Rust-based firmwares: firmware is "a sewer of unobservable software with a long history of infamous quality problems", some areas of firmware (and kernel) development are weak in rust (e.g. dealing with allocation failure) but that aside it looks amenable to Rust
- ianlevesque 8y agoNot worth it to him maybe. I wish someone would. Just this week we found out macOS brought back the “ping of death” due to C’s memory unsafety.
- masklinn 8y agoThe issue is in the network layer, which would more than likely fall under hybrid approach 1: kernel modules in rust.
- coldtea 8y agoAnd you think a macOS written in Rust wont waste tons of money, slow down feature development (until it reaches parity), and introduce new bugs (perhaps not memory safety bugs, but functional and business logic bugs)...
- wtetzner 8y agoI mean, sometimes I wish feature development would slow down. Lately it seems like each release of macOS is worse than the last one. Also, it really comes down to whether or not it's a long-term win. Apple certainly has the capital to make it happen if they decided it was worth it.
- mrec 8y ago> I wish someone would https://en.wikipedia.org/wiki/Redox_(operating_system) https://en.wikipedia.org/wiki/Redox_(operating_system)
- ianlevesque 8y agoSuper cool!