News for hackers. Stuff that matters.
Re:Mrustc: a Rust compiler written in C++ by mitchty on Thursday September 21, 2017 @07:51PM (#15308261)
This is true of a lot of languages, go, haskell (even more once shake becomes the build system for it) etc...

It makes porting things... interesting.

Re:Mrustc: a Rust compiler written in C++ by steveklabnik on Thursday September 21, 2017 @08:11PM (#15308373)
Usually you port by cross compiling an initial compiler, and bootstrapping from there.
Re:Mrustc: a Rust compiler written in C++ by binarycrusader on Friday September 22, 2017 @12:00AM (#15309303)
Speaking from personal experience, that can be quite painful. Being able to build rust and cargo, even if only for bootstrapping when porting, would truly be a wondrous thing.
Re:Mrustc: a Rust compiler written in C++ by fmap on Friday September 22, 2017 @04:30AM (#15310305)
Why, we could always use emscripten to compile rustc to JavaScript and use that for bootstrapping!

On a more serious note, ghc at least solved this problem by allowing you to compile Haskell to C (-fvia-C). Writing a naive C code generator from whatever your backend is using is probably not that hard.

Re:Mrustc: a Rust compiler written in C++ by mitchty on Friday September 22, 2017 @07:50AM (#15311268)
I actually did steveklabnik said porting ghc to alpine linux. Lets just say, ghc's cross compilation can be frustrating.
Re:Mrustc: a Rust compiler written in C++ by mitchty on Friday September 22, 2017 @09:55AM (#15312169)
Forgot a what in there, just woke up me can not english.
Re:Mrustc: a Rust compiler written in C++ by pjmlp on Friday September 22, 2017 @09:07AM (#15311789)
Or by making use of an interpreter as first stage.
Re:Mrustc: a Rust compiler written in C++ by Kubuxu on Friday September 22, 2017 @04:31AM (#15310309)
Go bootstrap uses Go1.4 which compiler is written in C. So: compile Go1.4 and use that to compile the Go 1.X compiler (I don't know but multiple steps might be necessary).