On Sun, Oct 14, 2012 at 10:39 AM, Joe Groff <[email protected]> wrote:

> On Sun, Oct 14, 2012 at 10:20 AM, John Mija <[email protected]> wrote:
> > This email is related to one sent to the Go mailing list[1] about the
> > great difference in compiling time between Rust which took 50 minutes,
> > and Go with a time of 2 minutes in build compiler, all libraries, all
> > commands and testing.
> >
> > It looks that it is possible because it has been written in C, instead
> > of use C++. It is also interesting to know that the Go compiler has been
> > based in the Plan9 C compilers[2].
> >
> >
> > [1]:
> >
> https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/bKDfVp0dzKw
> > [2]: http://doc.cat-v.org/bell_labs/new_c_compilers/
> >      http://doc.cat-v.org/plan_9/4th_edition/papers/compiler
> >
> > Note: do not take this email like negative, I only hope that Rust can go
> > to better in time.
>
> One factor is that Rust includes its own branch of LLVM as a
> submodule, and LLVM takes quite a long time to compile on its own.
>

The build includes not only all of LLVM, but Clang as well.

Also note that the Rust compiler compiles itself 3 times, to ensure that
the self-bootstrap process is stable.

So your 50 minutes includes 1 build of a commercial grade C/C++ compiler,
and 3 builds of the Rust compiler itself.

-- 
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to
predict the future is to invent it." - Alan Kay
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to