News for hackers. Stuff that matters.
Re:Rust support in the Linux kernel by xxpor on Wednesday December 08, 2021 @03:21PM (#29489966)
FWIW Linux does support s390 (n.b., not to be confused with s390x), which is a 31 bit arch. Rust does not support it (and I'd guess LLVM doesn't either). So Linux does support some "weird" arches still.

This is partially what caused the shitstorm when the python Cryptography library took a hard dependency on rust to compile:

https://github.com/pyca/cryptography/issues/5771

Re:Rust support in the Linux kernel by woodruffw on Wednesday December 08, 2021 @04:50PM (#29490986)
Linux has not had mainline support for s390 since Linux 4.1 (6 years ago). Only s390x is left.

You can still run 31-bit s390 usermode binaries on an s390x kernel, but that's a different beast.

Re:Rust support in the Linux kernel by xxpor on Wednesday December 08, 2021 @09:25PM (#29493089)
>You can still run 31-bit s390 usermode binaries on an s390x kernel

Ah thanks, I didn't realize that was possible. I'm no where near rich and/or old enough to have ever encountered an s390 machine IRL :)

Re:Rust support in the Linux kernel by lokedhs on Thursday December 09, 2021 @01:16AM (#29494413)
You can emulate it using Hercules. When searching I found plenty of guides showing how to set it up. I'm not linking to any in particular, because frankly I have never tried them so I don't know which one you should follow.
Re:Rust support in the Linux kernel by cesarb on Wednesday December 08, 2021 @04:06PM (#29490510)
AFAIK, s390 also has 8-bit bytes. The "31 bits" is the pointer size; IIRC, it's actually 32 bits, but with one bit reserved for compatibility with its even older predecessors.
Re:Rust support in the Linux kernel by dralley on Wednesday December 08, 2021 @07:48PM (#29492542)
Linux does not support running on s390, it only supports running s390 binaries in userspace. So using Rust in the kernel would be fine.