News for hackers. Stuff that matters.
Re:We accidentally built an LLVM compiler for Jax by ndesaulniers on Saturday August 01, 2026 @09:41PM (#49140250)
Neat. XLA predates MLIR. Interesting stories there. You'd have to stop by the Bay Area LLVM monthly meetup to hear them. :-X

> So if XLA already uses LLVM, why is our approach different?

Uses MLIR, XLA does not.

> So… what is the point?

> Honestly? We aren’t entirely sure yet.

> Let me be perfectly clear: this is not going to beat XLA for standard deep learning workloads. XLA has years of hyper-specific optimizations for linear algebra on GPUs and TPUs. If you are training a massive transformer, stick to standard JAX.

> But what we do think is cool is what happens when you connect JAX directly to the broader LLVM ecosystem and drop the heavy XLA runtime. (Plus, no need to build XLA using Bazel either! You’re welcome.)

Re:We accidentally built an LLVM compiler for Jax by infinitewalk on Saturday August 01, 2026 @10:16PM (#49140441)
> Neat. XLA predates MLIR. Interesting stories there. You'd have to stop by the Bay Area LLVM monthly meetup to hear them. :-X

I would love to hear those stories! Sadly I'm based in Toronto, so dropping by the Bay Area meetups isn't in the cards anytime soon.

If any of that history ever makes it into a blog post, I'd be first in line to read it.

Re:We accidentally built an LLVM compiler for Jax by gregdaniels421 on Saturday August 01, 2026 @10:54PM (#49140619)
I can't tell what you mean by this comment. Is XLA good? is XLA bad, cuz it doesn't use MLIR? Speak loud, for we are hard of hearing.
Re:We accidentally built an LLVM compiler for Jax by mathisfun123 on Saturday August 01, 2026 @10:57PM (#49140631)
Re:We accidentally built an LLVM compiler for Jax by gregdaniels421 on Saturday August 01, 2026 @11:26PM (#49140778)
Indeed, I am an outgroup member. look at me the dumbfuck. Now how does one become an ingroup member, by learning.

I am an active contributer to MLIR, if you knew my name and you weren't some weirdo, you could know me. This is a pseudonym account of which I have several, since I grew up in an age where you hid your identity. Now how XLA interacts with that I have no clue dude. Maybe help with that and don't be a low effort dick.

Re:We accidentally built an LLVM compiler for Jax by mathisfun123 on Saturday August 01, 2026 @11:36PM (#49140837)
brother i'm trying to tell you that the guy you're asking to be clearer is being vague because he's employing a shibboleth - a "wink wink i'm an og and you can only access me via the secret handshake at our club meeting". not you. i pasted the link because you explicitly say "I can't tell what you mean by this comment" so i'm proposing what they mean.

relax you'll live longer.

Re:We accidentally built an LLVM compiler for Jax by mathisfun123 on Saturday August 01, 2026 @10:23PM (#49140475)
> Uses MLIR, XLA does not.

https://github.com/search?q=repo%3Aopenxla%2Fxla+mlir&type=c...

> 1.5k files

you're behind the times. XLA moved over probably ~2 years ago - "Captain Awesome" eventually relented.

Re:We accidentally built an LLVM compiler for Jax by jax_bro on Saturday August 01, 2026 @11:06PM (#49140678)
lol, good luck to amazon
Re:We accidentally built an LLVM compiler for Jax by mathisfun123 on Sunday August 02, 2026 @03:48AM (#49142089)
indeed
Re:We accidentally built an LLVM compiler for Jax by throwaway647272 on Sunday August 02, 2026 @02:47AM (#49141783)
This happened “despite”. MLIR is definitely a productivity boost and yet, the progress in adoption has been stalled many times by one aforementioned charismatic leader. It’s truly mind boggling that a personal spat would influence roadmap of an entire org for years.
Re:We accidentally built an LLVM compiler for Jax by ndesaulniers on Sunday August 02, 2026 @12:06PM (#49145786)
Yeah, guess I should have used the past tense there.
Re:We accidentally built an LLVM compiler for Jax by steeve on Sunday August 02, 2026 @06:14AM (#49142971)
XLA uses MLIR very much, the interface to it is StableHLO, which is a MLIR dialect.
Re:We accidentally built an LLVM compiler for Jax by ndesaulniers on Sunday August 02, 2026 @12:07PM (#49145794)
Ah, I'm behind the times.