Hacker ApprovedDepartments

Clang

Ranked 2 of 26 compilers by recommenders

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.

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.

124 people gave an opinion

recommend it
74
criticize it
50
approval share
60%
Each figure is one person. RecommendsCriticizes

Recommended in 12 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 74 people recommend itNeeds 10 or more, met.
  • 1.4 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 12 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Works well across platforms and compilers

    “It was a cross-platform project and worked equally well with GCC, Clang and MS Visual C++.”

    Comment from 10 Feb 2026 in “Thoughts on Generating C”

    “Clang is the better alternative to MinGW because it can use standard Windows libraries”

    Comment from 15 Feb 2026 in “I Fixed Windows Native Development”

    “you even still get (mostly complete) MSVC ABI-compatibility if you compile with clang”

    Comment from 15 Feb 2026 in “I Fixed Windows Native Development”
  • Strong optimization and vectorization

    “I was pleasantly surprised by the autovectorization quality with recent clang at work a few days ago.”

    Comment from 6 Nov 2025 in “The state of SIMD in Rust in 2025”

    “Clang is far less ideology-focused and its structure makes implementing optimisations easier”

    Comment from 25 Dec 2025 in “When Compilers Surprise You”

    “Clang pretty readily sees that it can use SIMD instructions and really optimizes this”

    Comment from 11 Feb 2026 in “Both GCC and Clang generate strange/inefficient code”
  • Preferred over MSVC and MinGW

    “Most of the proprietary compilers have been slinking away from using EDG to using clang”

    Comment from 30 Sep 2026 in “EDG C++ front-end goes public”

    “Clang is the better alternative to MinGW because it can use standard Windows libraries”

    Comment from 15 Feb 2026 in “I Fixed Windows Native Development”

    “With modern Clang there really isn't a justifiable reason to use MinGW”

    Comment from 16 Feb 2026 in “I Fixed Windows Native Development”
  • Many features and polish

    “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”

    Comment from 11 May 2026 in “Making your own programming language is easier than you think (but also harder)”

    “C compilers just have everything you can think of because everythin is first implemented there.”

    Comment from 17 Apr 2026 in “30 Years of HPC: many hardware advances, little adoption of new languages”

    “the language extensions Apple and Google have been adding to clang”

    Comment from 11 Aug 2026 in “Tail-call optimization in C is relatively recent”

What people warn about

Each mark is one comment

  • Generates inefficient code in places

    “writing zeros to memory (which are never used thereafter), there's no way that particular code is optimal”

    Comment from 7 Feb 2026 in “Both GCC and Clang generate strange/inefficient code”

    “clang is generating kind of crap code here, and this change gets good codegen out of clang”

    Comment from 14 Jul 2026 in “Quadrupling code performance with a "useless" if”

    “Out of the 6 pieces of Assembly code in the article, 2 of them are definitely inefficient”

    Comment from 11 Feb 2026 in “Both GCC and Clang generate strange/inefficient code”
  • Footguns, hard limits, false warnings

    “Clang has a lot of footguns, and filing bugs about "regression compared to GCC" does not actually get them fixed.”

    Comment from 5 Nov 2025 in “Precompiled headers and why Squid won't be using them (2023)”

    “Clang also complains about perfectly legal compound IF statements and/or complex IF conditions”

    Comment from 3 Apr 2026 in “Big-Endian Testing with QEMU”

    “You really shouldn't be using Clang in production because it has all sorts of hard limitations”

    Comment from 5 Nov 2025 in “Precompiled headers and why Squid won't be using them (2023)”
  • Non-standard extensions hurt conformance

    “Another issue I've had with strict conformance in gcc/clang even with regular C is that it will always replace #include with its own copy”

    Comment from 19 Jul 2026 in “Neither GCC nor Clang are compliant with standard C++”

    “their mutually compatible, but completely standards non-conformant extensions that make writing for embedded reasonable”

    Comment from 20 Jul 2026 in “Neither GCC nor Clang are compliant with standard C++”

Other compilers people recommend

The four most recommended other compilers, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Clang compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
GCC13812353%1215 yrs9 owners—
ClangThis page745060%12——
Free Pascal compiler38784%11—Approved
GraalVM Native Image31978%11—Approved
.NET Native AOT261367%10—Approved
See all 26 compilers, ranked

What people said

40 of the 164 comments that mention it, newest first. Each links to the original comment.

“for each individual user defecting to clang must be looking very attractive right now”

RecommendsComment from 1 Oct 2026 in “EDG C++ front-end goes public”

“Most of the proprietary compilers have been slinking away from using EDG to using clang”

MixedComment from 30 Sep 2026 in “EDG C++ front-end goes public”

“Some compilers are better than others (Clang>MSVC for example)”

RecommendsComment from 27 Sep 2026 in “Writing Efficient C++ Code (2013)”

“the language extensions Apple and Google have been adding to clang”

RecommendsComment from 11 Aug 2026 in “Tail-call optimization in C is relatively recent”

“clang is driving C extensions for safety that should have long been part of the language”

RecommendsComment from 10 Aug 2026 in “Tail-call optimization in C is relatively recent”

“their mutually compatible, but completely standards non-conformant extensions that make writing for embedded reasonable”

MixedComment from 20 Jul 2026 in “Neither GCC nor Clang are compliant with standard C++”

“Another issue I've had with strict conformance in gcc/clang even with regular C is that it will always replace #include with its own copy”

CriticizesComment from 19 Jul 2026 in “Neither GCC nor Clang are compliant with standard C++”

“clang is generating kind of crap code here, and this change gets good codegen out of clang”

MixedComment from 14 Jul 2026 in “Quadrupling code performance with a "useless" if”

“in gcc and clang one must use "-ffp-contract=fast", for enabling FMA instructions.”

MixedComment from 31 May 2026 in “Floor and Ceil versus Denormals on CPU and GPU”

“there is even a bug report from QEMU to Clang because it failed to optimize in -O0”

CriticizesComment from 25 May 2026 in “C extensions, portability, and alternative compilers”

“If you passed the actual '__m128' down the function call chain instead, clang and gcc would then do the right thing.”

RecommendsComment from 17 May 2026 in “C++26 Shipped a SIMD Library Nobody Asked For”

“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”

RecommendsComment from 11 May 2026 in “Making your own programming language is easier than you think (but also harder)”

“C compilers just have everything you can think of because everythin is first implemented there.”

RecommendsComment from 17 Apr 2026 in “30 Years of HPC: many hardware advances, little adoption of new languages”

“For low runtime footprint you are probably better off with one of those two compilers”

RecommendsComment from 6 Apr 2026 in “LÖVE: 2D Game Framework for Lua”

“The facility doesn't seem to have really gone anywhere even if it technically works; I wonder why.”

MixedComment from 6 Apr 2026 in “Baby's Second Garbage Collector”

“Clang also complains about perfectly legal compound IF statements and/or complex IF conditions”

CriticizesComment from 3 Apr 2026 in “Big-Endian Testing with QEMU”

“They should adopt maintenance of clang and bless it as the reference compiler.”

RecommendsComment from 11 Mar 2026 in “Zig – Type Resolution Redesign and Language Changes”

“With modern Clang there really isn't a justifiable reason to use MinGW”

RecommendsComment from 16 Feb 2026 in “I Fixed Windows Native Development”

“you even still get (mostly complete) MSVC ABI-compatibility if you compile with clang”

RecommendsComment from 15 Feb 2026 in “I Fixed Windows Native Development”

“Clang is the better alternative to MinGW because it can use standard Windows libraries”

RecommendsComment from 15 Feb 2026 in “I Fixed Windows Native Development”

“Out of the 6 pieces of Assembly code in the article, 2 of them are definitely inefficient”

CriticizesComment from 11 Feb 2026 in “Both GCC and Clang generate strange/inefficient code”

“both compilers have done quite heroic and spectacular jobs of optimizing code”

RecommendsComment from 11 Feb 2026 in “Both GCC and Clang generate strange/inefficient code”

“Clang pretty readily sees that it can use SIMD instructions and really optimizes this”

RecommendsComment from 11 Feb 2026 in “Both GCC and Clang generate strange/inefficient code”

“It was a cross-platform project and worked equally well with GCC, Clang and MS Visual C++.”

RecommendsComment from 10 Feb 2026 in “Thoughts on Generating C”

“Clang's solution (presented at the end of the Wikipedia article you linked) seem much better”

RecommendsComment from 9 Feb 2026 in “Claude's C Compiler vs. GCC”

“writing zeros to memory (which are never used thereafter), there's no way that particular code is optimal”

CriticizesComment from 7 Feb 2026 in “Both GCC and Clang generate strange/inefficient code”

“GCC and Clang are worth much much more because they are battle-tested compilers that we understand and know work, even in a multitude of corner cases, over decades.”

RecommendsComment from 5 Feb 2026 in “We tasked Opus 4.6 using agent teams to build a C Compiler”

“That feels like the right abstraction and it was very easy to set up a VPN with zerotier like that”

RecommendsComment from 31 Jan 2026 in “Guix System First Impressions as a Nix User”

“Clang and gcc do a lot of the heavy lifting regarding optimisation”

RecommendsComment from 12 Jan 2026 in “Zen-C: Write like a high-level language, run like C”

“sooner or later one will need both `clang` and `gcc`, because they're equivalent only in theory”

MixedComment from 11 Jan 2026 in “A Year of Work on the Arch Linux Package Management (ALPM) Project”

“So far I think using clang instead of MSVC compiler is a strict win?”

RecommendsComment from 25 Dec 2025 in “Python 3.15's interpreter for Windows should be 15% faster”

“Clang is far less ideology-focused and its structure makes implementing optimisations easier”

RecommendsComment from 25 Dec 2025 in “When Compilers Surprise You”

“Maybe they are not the right solution, but they are working on the right problem.”

MixedComment from 23 Dec 2025 in “Towards a secure peer-to-peer app platform for Clan”

“Clang is the better model because it results in more innovation and more software that I can enjoy”

RecommendsComment from 16 Dec 2025 in “Rust GCC backend: Why and how”

“I like that you can at least compile Linux with Clang and GCC”

RecommendsComment from 11 Dec 2025 in “Rust in the kernel is no longer experimental”

“in normal C++ there are GCC or Clang (I forget which) extensions for detecting threading issues”

MixedComment from 6 Dec 2025 in “Show HN: Walrus – a Kafka alternative written in Rust”

“I find gcc and clang can inline functions, but can't decide to break apart a struct”

CriticizesComment from 3 Dec 2025 in “You can't fool the optimizer”

“I was pleasantly surprised by the autovectorization quality with recent clang at work a few days ago.”

RecommendsComment from 6 Nov 2025 in “The state of SIMD in Rust in 2025”

“Clang has a lot of footguns, and filing bugs about "regression compared to GCC" does not actually get them fixed.”

CriticizesComment from 5 Nov 2025 in “Precompiled headers and why Squid won't be using them (2023)”

“You really shouldn't be using Clang in production because it has all sorts of hard limitations”

CriticizesComment from 5 Nov 2025 in “Precompiled headers and why Squid won't be using them (2023)”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.