Re:The end of the kernel Rust experiment
by aw1621107 on Wednesday December 10, 2025 @11:08AM
(#46219453)
The reason you rarely hear that mentioned is because basically every programming language is hard to work with from other languages. The usual solution is to "just" expose a C API/ABI.
Of course, C API/ABIs aren't able to make full use of Rust features, but again, that also applies to basically every other language.
Re:The end of the kernel Rust experiment
by sophacles on Wednesday December 10, 2025 @11:51AM
(#46220060)
Perhaps we can finally stop defining abis in terms of c structs!
If only Rust had a spec to do that with
Re:The end of the kernel Rust experiment
by sophacles on Thursday December 11, 2025 @12:45PM
(#46234558)
I don't think they should be defined in terms of any programming language. They should be defined in terms of the architecture - bits, bytes, words and instructions, along with semantics of use. Like we do with networking protocols and file formats.
Re:The end of the kernel Rust experiment
by steveklabnik on Thursday December 11, 2025 @01:00PM
(#46234722)
It's being worked on! https://github.com/rust-lang/rfcs/pull/3470
If someone writes a popular Rust library, it's only going to be useful to Rust projects.
With Rust I don’t even know if it’s possible to make borrow checking work across a language boundary. And Rust doesn't have a stable ABI, so even if you make a DLL, it’ll only work if compiled with the exact same compiler version. *sigh*