3 ms·
Very exciting. Since the current rustc is based on a fork of llvm, when can we expect it to be part of the mainline llvm?
by prudhvis 11y ago
Very exciting. Since the current rustc is based on a fork of llvm, when can we expect it to be part of the mainline llvm?
- Sanddancer 11y agoMost likely they won't ever be merged. llvm's a compiler library and is used by a number of outside projects. For example, mono uses llvm in compilation as well.
- kibwen 11y agoI believe what you're asking is when rustc will be using a stable, unpatched version of LLVM? Rust is always working to get its custom patches upstreamed, but as soon as it does it typically comes up with more. :) That said, most of Rust's custom patches are to do with performance improvements due to compile-time information that C and C++ have no equivalent to, so theoretically Rust could probably exist on a stable branch of LLVM with nothing but a performance hit (and this may actually be the case if there exist OS package managers which don't want to package a custom version of LLVM with their Rust distribution, though I don't know if any package repos actually go to this length).
- haberman 11y ago> theoretically Rust could probably exist on a stable branch of LLVM with nothing but a performance hit Do you mean compile-time performance or runtime performance?
- dbaupp 11y agoBoth, there's at least one commit that directly affects the performance of LLVM (improves caching, AIUI), and the patches that improve runtime performance will improve compile time too: the rust compiler is written in Rust and so benefits from the LLVM tweaks. (However, I believe both are relatively small.)
- sanxiyn 11y agoDebian rustc package is built against Debian LLVM 3.6 package. All Rust tests do pass.
- Argorak 11y agoOn FreeBSD, I've seen bugs in release builds using that approach. The compiler works, but the compiling doesn't.
- andoriyu 11y agoRust compiles just fine with llvm36 from FreeBSD ports.