by IshKebab · 2y ago · 0 comments
Like, how hard would it be to go via Java instead? I bet you can bootstrap to Java very easily.
After a little digging, I found a blog post about it, and it does sound denser than the poster's plans to bootstrap Rust: https://www.chainguard.dev/unchained/fully-bootstrapping-jav...
he's not targeting C, he's targeting rust; he's using C
it's an important distinction, because he's not writing the C compilers involved, he's leveraging them to compile his target rust compiler which will be used to compile a rust-on-rust compiler. The C compiler is the compiler he has available, any other solution he would have to write that compiler, but his target is rust.
if he "targetted rust" the way you and GP are using it, he would have to duplicate the entire bootstrappable project as his target (my usage)
Obviously such a compiler would likely be unusably slow, but that's not important here.