4 ms·
Hmm, I would have thought that Rust produces standard ELF binaries that will run on Linux as-is. Could someone ELI5 why the kernel needs changes to support Rus
by GordonS 6y ago
Hmm, I would have thought that Rust produces standard ELF binaries that will run on Linux as-is.
Could someone ELI5 why the kernel needs changes to support Rust?
- pta2002 6y agoThis is for writing kernel modules, which ideally need to be integrated in the kernel build system.
- ajb 6y agoBecause this is about allowing parts of the kernel itself to be written in rust.
- deleted 6y ago[deleted]
- dijit 6y agoMostly this is surrounding (as others have mentioned) writing kernel components, such as drivers, in Rust. Context on the post Linus says is: "If rust cannot report an error without aborting when it runs out of memory, then we can't use it". I have never written any rust code which does not abort when it runs out of memory, but I have never written for hardware (only with userland in mind) and my knowledge isn't that great anyway, so I'm not sure if it's possible or not.
- GordonS 6y agoAh, I didn't realise it was about writing bits of the kernel itself in Rust, now it makes sense, thanks!