Hacker ApprovedDepartments

The best compilers, according to hackers

26 compilers were recommended on Hacker News between November 2025 and November 2026. We rank them by how many separate people recommend each one, and 8 earn the Hacker Approved badge.

Top picks

The three most recommended compilers with the badge. Each figure is 2 people. RecommendsCriticizes One comment

  1. Free Pascal compiler

    38 recommend, 7 criticize, 84% approval

    Ranked 3 of 26 by recommenders

    Lazarus IDE for building GUIs

    Recommended for a fast compiler, small binaries, easy cross-compilation and the Lazarus IDE for building GUIs. Most common caveat: documentation is weak.

  2. GraalVM Native Image

    31 recommend, 9 criticize, 78% approval

    Ranked 4 of 26 by recommenders

    Fast startup times

    Compiles Java and JVM code into standalone binaries with fast startup and low memory use. Main caveat: long build times and library or reflection compatibility problems.

  3. .NET Native AOT

    26 recommend, 13 criticize, 67% approval

    Ranked 5 of 26 by recommenders

    Binary size comparable to Go

    People recommend .NET Native AOT for compiling C# into small, self-contained native executables that do not need the .NET runtime installed, with binaries comparable to Go. The common caveat is that reflection and some language features are restricted.

All 26 compilers, ranked

Select a column heading to sort. Approval share is recommenders out of everyone who gave an opinion; the tick on each bar marks the 2 to 1 line the badge needs. Months counts the months, out of 13, in which someone recommended it.

Compilers ranked by the number of people who recommend them
Rank
1GCC13812353%1215 yrs9 owners—
2Clang745060%12——
3Free Pascal compiler38784%11—Approved
4GraalVM Native Image31978%11—Approved
5.NET Native AOT261367%10—Approved
Tied 6Cython22776%8—Approved
Tied 6GHC (Glasgow Haskell Compiler)221559%7——
8TinyGo20677%8—Approved
Tied 9Emscripten181456%11——
Tied 9Jolt Clojure compiler18482%5—Approved
11OxCaml17385%7—Approved
Tied 12Blaise Pascal compiler11379%3——
Tied 12Borland Turbo BASIC110100%3——
14Intel ISPC10471%6—Approved
15rustc9950%8——
Tied 16gccrs8373%4——
Tied 16Hoot Scheme to WebAssembly compiler8280%3——
Tied 16Minikotlin8562%1——
Tied 19Xc compiler70100%56 mo4 owners—
Tied 19mypyc7464%5——
21Ferrocene6367%4——
Tied 22C# compiler50100%4——
Tied 22Go compiler5183%4——
Tied 22LDC (LLVM D Compiler)50100%3——
Tied 22javac5271%3——
Tied 22avr-gcc50100%3——

How we rank

Rank is the number of separate people who recommend a product in a Hacker News comment over the past year. Someone who praises the same compiler in five threads counts once.

The badge goes to compilers that at least 10 people recommend, with recommenders outnumbering critics at least 2 to 1, recommended in at least 4 of the 13 months.

Rankings are never for sale. We may earn a commission when you buy through our links. It never changes the order.