3 ms·
I 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 n
by galangalalgol 13d ago
I 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 13d 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 13d agoHow’s that GCC backend coming along? I could look it up, but I bet others would like to hear about it too.
- vlovich123 13d agohttps://blog.antoyo.xyz/rustc_codegen_gcc-progress-report-43 https://blog.antoyo.xyz/rustc_codegen_gcc-progress-report-43 They’re plugging away at it. A major milestone was getting unwinding to work. I’d say they’re getting quite close and it’s getting better and better. It’s usable for Linux kernel compilation I believe which unlocks Rust to be used for the non-driver components in the kernel.
- kstrauser 12d agoThis is so cool. That's going to be amazing when it lands.
- vlovich123 12d agoIt’s already in rustup for what it’s worth. Not sure what “when it lands” means but I’m sure it’s an ever moving goalpost.
- galangalalgol 13d 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.