Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does Rust support every architecture that the kernel supports? Seriously asking, not rhetorical.

I get that new Rust code will be limited to modules, but here's my concern:

I do work for embedded systems based on the PPC architecture. I'm not sure if Rust supports PPC, but let's just assume we're talking about an architecture that's not supported.

Suppose some company creates a PCIe Ethernet adapter and writes their driver in Rust. If Rust doesn't support PPC, then I won't be able to use that hardware even though there's no physical or technical reason why it wouldn't work. If it was written in C like everything else, then there's a good chance it would just work (assuming they didn't make any endianness assumptions).

In fact, I'd bet that the majority of the drivers written for the kernel are really written for X86 and ARM, but just so happen to work for PPC as well for free. I'd be concerned about getting left in the dust, so to speak.




Rust works on 64bit little-endian PPC at least, with full standard library support.


That makes sense since that's the big fancy IBM Power chips. Most of the stuff I do is big endian 32 bit though. Some BE 64 (e6500, etc).


I meant big-endian, as the G5 processor I have can use Rust.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: