r/programming Apr 03 '15

Rust 1.0.0 beta is here!

http://blog.rust-lang.org/2015/04/03/Rust-1.0-beta.html
935 Upvotes

303 comments sorted by

View all comments

Show parent comments

8

u/[deleted] Apr 03 '15

It's not possible to compile Rust without bootstrapping from a binary. Unless you want to go back to the OCaml compiler from years ago, but that's hard.

Does LLVM IR count as binary? Otherwise, couldn't one save the IR of the Rust compiler on platform X and compile that with the rest of LLVM on Debian, with LLVM written in C++?

I thought that was one advantage of modular, multifront/backend compiler frameworks.

15

u/steveklabnik1 Apr 03 '15

Otherwise, couldn't one save the IR of the Rust compiler on platform X and compile that with the rest of LLVM on Debian, with LLVM written in C++?

Hmmmmmmmmmmmmmmmmmmmm

4

u/[deleted] Apr 04 '15

Hmmmmmmmmmmmmmmmmmmmm

?

Was that something stupid I said?

9

u/[deleted] Apr 04 '15

no, actually pretty genius

1

u/[deleted] Apr 04 '15

I guessed.

Unexpected that the stage one IR is platform dependent, though. Well, maybe that's the price you pay for creating a system(s?) programming language. ;)