5 ms·
Wouldn't a good cross-compilation story work for bootstrapping? Once you've got the system to run on platform A, you can cross-compile for B and use those artef
by masklinn 10y ago
Wouldn't a good cross-compilation story work for bootstrapping? Once you've got the system to run on platform A, you can cross-compile for B and use those artefacts to bootstrap B.
- justincormack 10y agoYes that's very useful. Go has that, NetBSD has that, its getting more common at last. It doesn't solvevall the problems but has other benefits.
- Nullabillity 10y agoThat doesn't really work for a system like Nix (or derivatives like Guix), where binary packages are only considered an optimization, and packages are always rebuilt without having the old version, or other user state, available.
- oneplane 10y agoBut Nix and Guix need a base compiler to start with, right?
- vertex-four 10y agoIndeed, though the goal is to keep the closure of base dependencies as small as possible. They don't really want to be depending on anything other than a C/C++ compiler and a shell.
- Ericson2314 10y agoActually, criss compiling is a solution here. Hydra should be able to deal with packages on one platform depending on packages from another.
- davexunit 10y agoHow does cross compiling help? How do you build the first Java from source?
- JoshTriplett 10y agoCross-compiling allows you to just have one binary of the compiler, for a fast architecture like x86-64, and then bootstrap binaries for every architecture from there. Without cross-compiling, you need to have a bootstrap binary of the compiler for every architecture you want to support.
- kryptiskt 10y agoHow do they handle GHC or Rust which must have a compiler to build?
- Ericson2314 10y agoBinaries. But we could in principle go back to them being written in other languages.
- masklinn 10y agoThe initial installation becomes ridiculously painful though, and even that might not work if the original language as itself self-bootstrapped, or cross-compiled with something not available anymore (e.g. something on a different architecture)