4 ms·
> Performance wise it's the first language in long time that isn't just an LLVM wrapper Why? Because it uses MLIR? Rust has its own MIR, it's even more not-LLV
by afdbcreid 2mo ago
> Performance wise it's the first language in long time that isn't just an LLVM wrapper
Why? Because it uses MLIR? Rust has its own MIR, it's even more not-LLVM-wrapper.
- giancarlostoro 2mo agoProbably because the creator created both LLVM and MLIR.
- skavi 2mo agoI'd assume Mojo does more complex transformations at the MLIR level than Rust does at its MIR level.
- afdbcreid 2mo agoFirst, I'm not sure. Rust has MIR optimizations and also other transformations. But even if yes, MLIR is part of the LLVM project, so it's technically still "just an LLVM wrapper".
- skavi 2mo agoMLIR is more a library for building a compiler than a compiler itself IIUC. LLVM can be thought of similarly, but IMO, it's more self contained.