# MLIR

Hacker Approved page: https://hackerapproved.com/p/mlir/

7 people recommended MLIR in Hacker News comments, 3 had mixed feelings and 3 criticized it, November 2025 to October 2026. It was recommended in 6 of 12 months, in 7 threads. It does not meet the Hacker Approved badge rule.

**Verdict:** Widely used LLVM-based compiler infrastructure for building IRs and DSLs; people praise its power, though critics say it adds heavy complexity and requires C++ and TableGen.

Summary written by Claude from 13 comments. It was written before the November 2026 recount, and 12 of those comments still count.

## Why people recommend it

- Best-in-class compiler infrastructure (3 comments in the sample): "MLIR is just genuinely very good at some of this stuff compared to basically anyone else" ([source](https://news.ycombinator.com/item?id=48177666)) "there's nothing that comes close to LLVM and MLIR" ([source](https://news.ycombinator.com/item?id=47068570)) "it's nothing short of magical, in my opinion!" ([source](https://news.ycombinator.com/item?id=50158896))
- Good base for IRs and DSLs (2 comments in the sample): "The benefit is that you focus on designing your IR without also building supporting infrastructure" ([source](https://news.ycombinator.com/item?id=48979307)) "has proven quite valuable to create Python JIT DSL" ([source](https://news.ycombinator.com/item?id=48060590))

## What people warn about

- Adds significant complexity overall (2 comments in the sample): "MLIR pulls in a lot of interface complexity that we don't want or need" ([source](https://news.ycombinator.com/item?id=48969851)) "MLIR added a great deal of complexity on top of designing/implementing an IR" ([source](https://news.ycombinator.com/item?id=48182402))
- C++ and TableGen hard to work with (1 comment in the sample): "writing Julia is a lot nicer than writing C++" ([source](https://news.ycombinator.com/item?id=48970764))

## Other compiler infrastructures people recommend

- [LLVM](https://hackerapproved.com/p/llvm/): 72 recommend, 34 mixed, 86 criticize
- [QBE](https://hackerapproved.com/p/qbe/): 12 recommend, 4 mixed, 9 criticize
- [Roslyn](https://hackerapproved.com/p/roslyn/): 11 recommend, 0 mixed, 1 criticize
- [EDG C++ front-end](https://hackerapproved.com/p/edg-c-plus-plus-front-end/): 11 recommend, 4 mixed, 3 criticize

## The badge

A product earns the Hacker Approved badge when at least 10 people recommend it, recommenders outnumber critics at least 2 to 1 (mixed feelings count toward neither side), it was recommended in at least 4 of the 12 months and in at least 5 different threads, and no single thread supplies more than half of the people who recommend it. Health and money products are never badged.

## Cite as

Hacker Approved, "MLIR", https://hackerapproved.com/p/mlir/ (7 recommend, 3 mixed, 3 criticize; Hacker News comments, November 2025 to October 2026).

Counts updated 2 Nov 2026, with data through October 31, 2026.
