| ▲ | swiftcoder 3 hours ago |
| I feel like this language would really benefit from some sort of 1-pager overview. I just spent a fair bit of time on the official site, and I still don't think I have a very good grasp of what problem this language aims to solve, or why I would select it over other similar languages |
|
| ▲ | totalperspectiv 3 hours ago | parent | next [-] |
| 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 24 minutes ago | parent | next [-] | | I'd assume Mojo does more complex transformations at the MLIR level than Rust does at its MIR level. | | |
| ▲ | afdbcreid 6 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? |
|
|
| ▲ | embedding-shape 3 hours ago | parent | prev | next [-] |
| I felt the same way, even after browsing around on the website, and somehow I got to https://mojolang.org/docs/manual/quickstart/, which brings you to mojolang.org instead, which is the real website of the language it seems, instead of "Modular" which I guess is the business. https://mojolang.org is a lot better as a introduction to the language for a programmer, at least for me, compared to whatever I could find on the modular.com website. |
|
| ▲ | giancarlostoro 3 hours ago | parent | prev | next [-] |
| It's supposed to be (currently) a fully native, Python-like language, but for GPUs primarily. Though I am seeing it as having a future as a fully native Python alternative that might get interesting. I hope with 1.0 (havent fully read the article yet) they stop breaking language features / syntax because they did quite a few different changes over time, their overall goal is to be a fully native superset of Python. I do see this one overtaking Nim over time, which kind of saddens me, because I like Nim for what it is, but Mojo trying to be a superset of Python is a no-brainer for most Python developers. Reminds me of how a lot of Go devs were former Python devs not C++. |
|
| ▲ | efficax 2 hours ago | parent | prev | next [-] |
| i think the main idea is that by using MLIR[1] instead of the usual LLVM path it can target gpus directly 1. https://mlir.llvm.org/ |
|
| ▲ | manojlds 3 hours ago | parent | prev [-] |
| Python, but good. |
| |
| ▲ | steve1977 3 hours ago | parent | next [-] | | So, without significant indentation? | | |
| ▲ | tyre 2 hours ago | parent | next [-] | | Oh nooooo, they fucked it up too. Why would someone make a language that’s whitespace sensitive? It’s confounding. | | |
| ▲ | BeetleB 2 hours ago | parent | next [-] | | To weed out programmers who don't indent. | |
| ▲ | grim_io 22 minutes ago | parent | prev | next [-] | | I never understood this. What kind of special whitespace requirements do people have? | |
| ▲ | 41 minutes ago | parent | prev | next [-] | | [deleted] | |
| ▲ | syrrim 2 hours ago | parent | prev | next [-] | | Why would someone make a language where the programmer and the interpreter have two different ways of figuring out where blocks start and end? | | | |
| ▲ | mplewis 2 hours ago | parent | prev [-] | | It's really not that bad |
| |
| ▲ | Fraterkes 2 hours ago | parent | prev | next [-] | | Significant indentation is why people love python. Can 2 billion people be wrong? | | | |
| ▲ | usef- an hour ago | parent | prev [-] | | I didn't realise people still complained about this in 2026. When has it ever been an issue in use? |
| |
| ▲ | swiftcoder 3 hours ago | parent | prev [-] | | I mean, it feels like "Python, but aiming at a completely different vertical that values native compilation and a borrow checker"? Which is not quite the same thing |
|