4 ms·
> Rust can selfbootstrap by compiling the rust code for the compiler. Compiling the rust code for the compiler how? The whole point is that we don't have rustc
by yjftsjthsd-h 1y ago
> Rust can selfbootstrap by compiling the rust code for the compiler.
Compiling the rust code for the compiler how? The whole point is that we don't have rustc.
- charcircuit 1y ago>The whole point is that we don't have rustc. This is a made up restriction.
- yjftsjthsd-h 1y agoOkay, yes, if you declare the exercise pointless then you can skip it. That's not very interesting, though.
- neilv 1y agoI think one of the reasons that we sometimes think about different ways of compiler bootstrapping is that someone decided to spend their Turing Award lecture on the topic. Ken Thompson, "Reflections on Trusting Trust". https://dl.acm.org/doi/10.1145/358198.358210 https://dl.acm.org/doi/10.1145/358198.358210