Hacker News new | ask | show | jobs
by afdbcreid 116 days 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.

2 comments

Probably because the creator created both LLVM and MLIR.
I'd assume Mojo does more complex transformations at the MLIR level than Rust does at its MIR level.
First, 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".

MLIR 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.