4 ms·
C and say, rust or c++ can interface. You don't need to rewrite, just stop writing extra stuff in C, maybe when you do a really big refactor in C, port it. In
by rocqua 10y ago
C and say, rust or c++ can interface.
You don't need to rewrite, just stop writing extra stuff in C, maybe when you do a really big refactor in C, port it. In the end, we can migrate away from C gradually.
That makes me wonder, is there any chance in hell we get some RUST in the Linux source code?
- viraptor 10y agoUpstream? Likely never. Out of tree? https://github.com/tsgates/rust.ko/blob/master/README.md https://github.com/tsgates/rust.ko/blob/master/README.md
- majewsky 10y agoI recall that Linus once said on the LKML that he could see himself accepting Rust code into the kernel. But I cannot find the source right now.
- pjmlp 10y agoThe problem isn't technical rather political. If you want to fix UNIX security issues related to C, first you need to convince kernel developers across all UNIX variants to move away from C. Then even a fully modernized UNIX kernel needs to provide support to unsafe POSIX APIs.
- 0192380101 10y agoAs we all know, Windows is totally secure, GUIs are awesome and the Burroughs architecture is unique.
- pjmlp 10y agoSee you already know, improving the world one person at a time.
- bluejekyll 10y agoOne issue that would make Rust more likely in Linux would be a GCC toolchain for Rust. I personally don't want to see fragmented development of the language, though. Perhaps a backend for MIR for GCC could be done? But, Linus et al still love C...
- striking 10y agoNo way will Torvalds allow modifying the build process to include Rust. Write your own out-of-tree Rust modules if you like, but they'll never be merged in.