Remix.run Logo
▲ medler a day ago

The Cranelift compiler is in the same space, has been around for over a decade, and is actively maintained: https://en.wikipedia.org/wiki/Cranelift

▲zamadatix a day ago | parent | next [-]

I'm not sure the Rust JIT feature looks far enough along/well maintained enough to actually work with a typical rust program and when it does it sounds like it's probably slower than AOT anyways https://github.com/rust-lang/rustc_codegen_cranelift/blob/ma...

I think it also only does the backend? I.e. you still need rustc to compiler to do everything but the codegen whereas this seems to be the whole compiler portion of the toolchain "Relax isn't a wrapper around rustc or a plugin for LLVM: it replaces both, and the parts of Cargo and the linker in between."

▲shikck200 21 hours ago | parent | prev | next [-]

Cranelift never took off. Its weirdly bundled inside some adhoc wasm runtime, and is not a replacement for the "real" rust compiler.

▲uqers 21 hours ago | parent | next [-]

Doesn't cargo nightly ship with the cranelift backend? You do need to mess with rustup and cargo a bit, but it's not very difficult to use.

▲dabinat 12 hours ago | parent | prev [-]

I’ll honestly be surprised if Cranelift support ever gets stabilized. TPDE integration seems like something more likely to be eventually stabilized, although it is at an early stage right now.

▲theknarf 16 hours ago | parent | prev [-]

blaze uses Cranelift under the hood, I'm not sure about the other two.