6 ms·
It won't work in those cases. Do you have explicit examples? I suspect this won't come up much as Rust has, IME, much broader target support. (Including platfor
by the__alchemist 3d ago
It won't work in those cases. Do you have explicit examples? I suspect this won't come up much as Rust has, IME, much broader target support. (Including platforms without a GPOS)
- galangalalgol 3d agoI can't come up with any cases where cpython would compile that rustc can't target. There are some more niche interpreters that can run on embedded stuff with no rustc support, but they are also subsets of python so it isn't like you can just pull a wheel file and expect it to work
- vlovich123 3d agoFor what it’s worth the GCC backend for rustc is making progress and rustc more generally supports a lot of embedded stuff already
- kstrauser 3d agoHow’s that GCC backend coming along? I could look it up, but I bet others would like to hear about it too.
- galangalalgol 3d agoIt does, and rustc nostd already supports a lot of places cpython can't run, but the other way around is just non existent. Rustc can't and will likely never support ti dsps because they own the compiler and a long is 48bits. Dreamcast and other things with weird data sizes also are out.
- 3eb7988a1663 3d agoThe Python cryptography library switched out C for Rust which invalidated some platforms[0]. 2021 story, so not sure if anything has changed. ...Since the Gentoo Portage package manager indirectly depends on cryptography, ""we will probably have to entirely drop support for architectures that are not supported by Rust"". He listed five architectures that are not supported by upstream Rust (alpha, hppa, ia64, m68k, and s390) and an additional five that are supported but do not have Gentoo Rust packages (mips, 32-bit ppc, sparc, s390x, and riscv). [0] https://news.ycombinator.com/item?id=26097153 https://news.ycombinator.com/item?id=26097153