4 ms·
Rust is pretty darn portable as it is though. It runs on the major platforms. Are you thinking its Assembly or something? Everywhere FireFox is compiled to Rust
by giancarlostoro 8y ago
Rust is pretty darn portable as it is though. It runs on the major platforms. Are you thinking its Assembly or something? Everywhere FireFox is compiled to Rust has to run on, which is a lot of platforms.
Maybe it wont run on your toaster but if you are making git commits through your toaster you got other issues.
- nindalf 8y agoI agree with the sentiment behind your comment. Rust is very portable, but isn't portable to all platforms. Obviously it works on the big ones like Windows, macOS, most variants of Linux, BSD etc. but it doesn't on Alpine Linux. IIRC there was an issue compiling it without glibc (which Alpine lacks). Edit - apparently rustc can now be linked to musl instead of glibc in nightly. Cool!
- vbarrielle 8y agoRust can be compiled without glibc, by statically linking to musl, but it looks like it's still experimental as the only distribution of it is on the nightly channel: https://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-musl.tar.gz https://static.rust-lang.org/dist/rust-nightly-x86_64-unknow...
- steveklabnik 8y agoCompiling most Rust programs with MUSL is fine, and available on stable. But the rust compiler itself with MUSL had some issues, and this were worked out very recently, and so it hasn’t totally ridden the trains to stable yet. https://github.com/rust-lang/rust/issues/59302 https://github.com/rust-lang/rust/issues/59302
- giancarlostoro 8y agohttps://pkgs.alpinelinux.org/package/edge/community/x86_64/rust https://pkgs.alpinelinux.org/package/edge/community/x86_64/r... Is this not a successful build? At that point it seems like the OS is just not providing the necessary tooling, but Rust will run on the architecture.
- MisterTea 8y agoMaybe he's a plan 9 user.
- kbknapp 8y ago> if you are making git commits through your toaster you got other issues. This made me snort out some coffee on a Monday. Thank you! I think your point is also a good one I don't see represented often, portability for portability's sake is kinda silly. It's use that's important.