News for hackers. Stuff that matters.
Re:Rust required to build Gecko by Animats on Friday December 16, 2016 @01:07AM (#13191412)
Looking forward to the day when builds no longer require a C/C++ compiler.
Re:Rust required to build Gecko by Null-Set on Friday December 16, 2016 @09:50AM (#13193568)
Rust itself depends on clang to build the llvm backend it runs on top of, so you can't get away from c++ that easily.
Re:Rust required to build Gecko by lambda on Friday December 16, 2016 @10:58AM (#13194111)
If Gecko is ever able to get rid of all of it's C++, it won't happen for quite a while, that will be an enormous undertaking. I would expect, if Rust is successful enough that that is feasible, then by that time there would be multiple different Rust implementations, and some of them may be written in pure Rust.

There's no fundamental reason that the Rust compiler has to be dependent on LLVM. It's just a good strategic decision as it allows the Rust developers to focus on the parts of the compiler that are unique to Rust, and use a well tested backend with lots of existing optimizations and targets for the parts that aren't particularly unique to Rust. There is actually some discussion already of using a faster, pure-Rust backend for debug builds, and maybe far in the future for release builds as well (https://internals.rust-lang.org/t/possible-alternative-compi...).

Re:Rust required to build Gecko by lmm on Friday December 16, 2016 @11:23AM (#13194289)
The relevant parts of the LLVM toolchain could be ported to Rust. IIRC Rust originally bootstrapped with OCaml.
Re:Rust required to build Gecko by Yoric on Friday December 16, 2016 @01:18AM (#13191454)
That might take some time :)
Re:Rust required to build Gecko by foota on Friday December 16, 2016 @02:41AM (#13191744)
Well first transpile C to rust and then... :)
Re:Rust required to build Gecko by amelius on Friday December 16, 2016 @05:26AM (#13192286)
In that case, please don't put everything in an "unsafe" block, so we actually gain something from it :)
Re:Rust required to build Gecko by aninhumer on Friday December 16, 2016 @09:01AM (#13193254)
I think that could still be useful, because then it can be incrementally replaced with safe code more easily than if you had to interface between languages.
Re:Rust required to build Gecko by tupshin on Friday December 16, 2016 @08:23AM (#13193028)