# Clang

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

54 people recommended Clang in Hacker News comments, 14 had mixed feelings and 43 criticized it, November 2025 to October 2026. It was recommended in 12 of 12 months, in 56 threads. It does not meet the Hacker Approved badge rule.

**Verdict:** Recommended for a polished, feature-rich C and C++ compiler with strong optimization and wide platform support. Common caveat: it sometimes generates poor code and has footguns.

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

## Why people recommend it

- Works well across platforms and compilers (5 comments in the sample): "It was a cross-platform project and worked equally well with GCC, Clang and MS Visual C++." ([source](https://news.ycombinator.com/item?id=46956606)) "Clang is the better alternative to MinGW because it can use standard Windows libraries" ([source](https://news.ycombinator.com/item?id=47023548)) "you even still get (mostly complete) MSVC ABI-compatibility if you compile with clang" ([source](https://news.ycombinator.com/item?id=47026678))
- Strong optimization and vectorization (5 comments in the sample): "I was pleasantly surprised by the autovectorization quality with recent clang at work a few days ago." ([source](https://news.ycombinator.com/item?id=45835744)) "Clang is far less ideology-focused and its structure makes implementing optimisations easier" ([source](https://news.ycombinator.com/item?id=46382059)) "Clang pretty readily sees that it can use SIMD instructions and really optimizes this" ([source](https://news.ycombinator.com/item?id=46975020))
- Preferred over MSVC and MinGW (3 comments in the sample): "Most of the proprietary compilers have been slinking away from using EDG to using clang" ([source](https://news.ycombinator.com/item?id=49914393)) "So far I think using clang instead of MSVC compiler is a strict win?" ([source](https://news.ycombinator.com/item?id=46385681)) "Some compilers are better than others (Clang>MSVC for example" ([source](https://news.ycombinator.com/item?id=49871735))
- Many features and polish (3 comments in the sample): "Clang is better than anything I have used in terms of the amount of options and features it has and also how polished it is" ([source](https://news.ycombinator.com/item?id=48095350)) "C compilers just have everything you can think of because everythin is first implemented there." ([source](https://news.ycombinator.com/item?id=47806042)) "the language extensions Apple and Google have been adding to clang" ([source](https://news.ycombinator.com/item?id=49253912))

## What people warn about

- Generates inefficient code in places (4 comments in the sample): "clang is generating kind of crap code here, and this change gets good codegen out of clang" ([source](https://news.ycombinator.com/item?id=48904189)) "Out of the 6 pieces of Assembly code in the article, 2 of them are definitely inefficient" ([source](https://news.ycombinator.com/item?id=46977824)) "I find gcc and clang can inline functions, but can't decide to break apart a struct" ([source](https://news.ycombinator.com/item?id=46134163))
- Footguns, hard limits, false warnings (3 comments in the sample): "Clang has a lot of footguns, and filing bugs about "regression compared to GCC" does not actually get them fixed." ([source](https://news.ycombinator.com/item?id=45819531)) "Clang also complains about perfectly legal compound IF statements and/or complex IF conditions" ([source](https://news.ycombinator.com/item?id=47630314)) "You really shouldn't be using Clang in production because it has all sorts of hard limitations" ([source](https://news.ycombinator.com/item?id=45817477))
- Non-standard extensions hurt conformance (1 comment in the sample): "their mutually compatible, but completely standards non-conformant extensions that make writing for embedded reasonable" ([source](https://news.ycombinator.com/item?id=48974439))

## Other compilers people recommend

- [GCC](https://hackerapproved.com/p/gcc/): 90 recommend, 37 mixed, 106 criticize
- [Free Pascal compiler](https://hackerapproved.com/p/free-pascal/): 30 recommend, 6 mixed, 7 criticize
- [GraalVM Native Image](https://hackerapproved.com/p/graalvm-native-image/): 16 recommend, 11 mixed, 8 criticize
- [Cython](https://hackerapproved.com/p/cython/): 15 recommend, 4 mixed, 7 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, "Clang", https://hackerapproved.com/p/clang/ (54 recommend, 14 mixed, 43 criticize; Hacker News comments, November 2025 to October 2026).

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