Rust in the Linux kernel: part 2
1–10 of 73 posts
Re: Rust in the Linux kernel: part 2
#2This is the actual useful one since so little of the kernel has Rust bindings. When I tried to implement a filesystem driver in rust I spent most of my time trying to write bindings instead of trying to write a filesystem.
Re: Rust in the Linux kernel: part 2
#3>The next article in this series will look at the design of the interface between the C and Rust code in the kernel, as well as the process of adding new bindings when necessary. This is the actual useful one since so little of the kernel has Rust bindings. When I tried to implement a filesystem driver in rust I spent most of my time trying to write bindings instead of trying to write a filesystem.
https://arxiv.org/abs/2506.03876
https://github.com/asterinas/asterinas
The reasons we encounter pattern issues forcing Linux into a polyglot is not a new phenomena:
https://en.wikipedia.org/wiki/Second-system_effect
Best regards =3
Re: Rust in the Linux kernel: part 2
#4Re: Rust in the Linux kernel: part 2
#5[flagged]
[1] https://github.com/capnproto/capnproto/blob/v2/kjdoc/tour.md
Re: Rust in the Linux kernel: part 2
#6[flagged]
A language that makes it impossible to introduce 70% of the security bugs is appealing.
Re: Rust in the Linux kernel: part 2
#7[flagged]
That is really all there is to it - it is just the better option for systems programming by almost all available metrics, and I say this as someone who has been coding C and C++ professionally for coming up on 25 years.
Re: Rust in the Linux kernel: part 2
#8[flagged]
Re: Rust in the Linux kernel: part 2
#9[flagged]
Re: Rust in the Linux kernel: part 2
#10[flagged]
The general spike in interest from 2021 onwards (the language has been around for a while so it's not like people just found out) is due to a large hangover from crypto folks who become jobless after the bust. Super savvy in general being online and evangelism. The safety stuff is overblown (small subset of applications primarily OS and browsers) and full rewrite is not possible or advisable.