Conversation

So, basically, the only issue is they haven't yet forked liballoc to delete the methods doing panic on OOM. It's the same reason they need other placeholder stubs doing panic to fill in APIs used by stdlib code they've included via libcore, etc. Could fork libcore and delete it.
2
They use a very extended version of C supported by GCC/Clang and they use their own memory model not truly implemented by GCC/Clang rather than the C11 memory model. They don't use the C standard library. For Rust, they don't need a special dialect of the language in the kernel.
1
The real challenge is coming up with safe APIs for all the common functionality needed by drivers, etc. People have been using Rust to write proof of concept Linux kernel modules since years ago. It's not very interesting without making the safe APIs for the stuff you need to do.
1
Show replies