Remix.run Logo
totalperspectiv 3 hours ago

Having written a lot of Mojo over the last two year, just for fun, it's a really cool language. Ownership model adjacent to Rust, comptime in the realm of Zig, rich type system, first class SIMD support, etc. Performance wise it's the first language in long time that isn't just an LLVM wrapper. LLVM is still involved, but they are using it differently than say, Rust or Zig.

Very excited for Mojo once it's open sourced later this year.

cpeterso 3 hours ago | parent | next [-]

> LLVM is still involved, but they are using it differently than say, Rust or Zig.

Chris Lattner said in a Developer Voices podcast interview:

"Swift in a way was syntactic sugar for LLVM, at the very bottom of the stack it could talk directly to LLVM primitives. Mojo does basically that same trick, but it supercharges it by moving to this MLIR world."

afdbcreid 2 hours ago | parent | prev | next [-]

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

skavi 26 minutes ago | parent | next [-]

I'd assume Mojo does more complex transformations at the MLIR level than Rust does at its MIR level.

afdbcreid 8 minutes ago | parent [-]

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

giancarlostoro 2 hours ago | parent | prev [-]

Probably because the creator created both LLVM and MLIR.

nu11ptr 3 hours ago | parent | prev [-]

How are compile times compared to Rust? Zig? Go?