logoalt Hacker News

simonaskyesterday at 1:17 PM2 repliesview on HN

Rust uses LLVM because it's pretty great, not because you couldn't implement LLVM in Rust.

Maybe cranelift will eventually surpass LLVM, but there isn't currently much reason to push for that.


Replies

estebankyesterday at 2:38 PM

If anything, making cranelift an LLVM replacement would likely go counter to its stated goals of being a simple and fast code generator.

pjmlpyesterday at 3:09 PM

Thus Rust cannot really replace C++ when its reference toolchain depends on it.

show 1 reply