3 ms·
Start by removing Rust's dependency in GCC and LLVM, both written in C++.
by pjmlp 2y ago
Start by removing Rust's dependency in GCC and LLVM, both written in C++.
- tialaramex 2y agoRust doesn't "depend" on LLVM in the sense you seem to imagine, you can instead lower Rust's MIR into Cranelift (which is written in Rust) if you want for example. LLVM's optimiser is more powerful, and it handles unwinding, so today most people want LLVM but actually I think LLVM's future might involve more Rust.
- pjmlp 2y agoIt can, but until that becomes the reference implementation backend, it hardly matters. Similar to how much Python folks disregard PyPy's existence. I doubt LLVM project would start accepting polyglot contributions, beyond what they already do for language specific frontends. Also, the ongoing GCC support is dependent on C++ as well.