Hacker ApprovedDepartments

Boehm GC

Shares rank 3 of 4 garbage collectors by recommenders

Free library that adds automatic memory management to existing C and C++ programs with minimal changes. Critics say its conservative scanning is slow, especially with large heaps.

Free library that adds automatic memory management to existing C and C++ programs with minimal changes. Critics say its conservative scanning is slow, especially with large heaps.

10 people gave an opinion

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

Recommended in 4 of 13 months

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

Why it doesn’t carry the badge

  • 5 people recommend itNeeds 10 or more, not met.
  • 1 recommender for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 4 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

  • Drop-in automatic memory management for C/C++

    “you can just replace your #include. Cutting-edge automatic memory management forever.”

    Comment from 13 Feb 2026 in “D Programming Language”

    “makes any random C/C++ program not only still work but also run faster”

    Comment from 2 Nov 2025 in “Notes by djb on using Fil-C”
  • Long-term use by experienced developers

    “I write a lot of my C/C++ code using Boehm GC, have my own libraries designed knowing GC is there”

    Comment from 7 Nov 2025 in “A Note on Fil-C”

    “I've been using Boehm GC with my C/C++ programs for decades”

    Comment from 18 Apr 2026 in “A simplified model of Fil-C”

What people warn about

Each mark is one comment

  • Slow because it scans too much memory

    “Boehm is a conservative GC so when it triggers it needs to scan a lot more memory for pointers than .NET's GC”

    Comment from 29 Dec 2025 in “Unity's Mono problem: Why your C# code runs slower than it should”

    “which is notorious to be slow, since it is a conservative GC”

    Comment from 15 Feb 2026 in “I'm building a clarity-first language (compiles to C++)”
  • Production problems with large heaps

    “Its biggest downside was the use of Boehm GC that had some issues with large heaps.”

    Comment from 10 Sep 2026 in “JEP 544: Ahead-of-Time Code Compilation”

    “using Boehm in production is the worst of all worlds”

    Comment from 26 Jun 2026 in “Gossamer: a Rust-flavoured language with real goroutines and pause-free memory”

Other garbage collectors people recommend

The three most recommended other garbage collectors, 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.

Boehm GC compared with 3 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
ZGC garbage collector17771%10—Approved
G1 garbage collector6186%5——
Boehm GCThis page5550%4——
Parallel GC (OpenJDK)5271%4——
See all 4 garbage collectors, ranked

What people said

12 of the 15 comments that mention it, newest first. Each links to the original comment.

“it seems very Boehm specific and yes quite uesless”

CriticizesComment from 16 Sep 2026 in “High-performance garbage collection for C++”

“Boehm has taken so much mindshare since it's lacking in many respects and has given GC's a bad reputation”

CriticizesComment from 15 Sep 2026 in “High-performance garbage collection for C++”

“Its biggest downside was the use of Boehm GC that had some issues with large heaps.”

CriticizesComment from 10 Sep 2026 in “JEP 544: Ahead-of-Time Code Compilation”

“using Boehm in production is the worst of all worlds”

CriticizesComment from 26 Jun 2026 in “Gossamer: a Rust-flavoured language with real goroutines and pause-free memory”

“I've been using Boehm GC with my C/C++ programs for decades”

RecommendsComment from 18 Apr 2026 in “A simplified model of Fil-C”

“which is notorious to be slow, since it is a conservative GC”

CriticizesComment from 15 Feb 2026 in “I'm building a clarity-first language (compiles to C++)”

“you can just replace your #include. Cutting-edge automatic memory management forever.”

RecommendsComment from 13 Feb 2026 in “D Programming Language”

“Boehm is a conservative GC so when it triggers it needs to scan a lot more memory for pointers than .NET's GC”

CriticizesComment from 29 Dec 2025 in “Unity's Mono problem: Why your C# code runs slower than it should”

“because it is using the Boehm GC”

CriticizesComment from 28 Dec 2025 in “Unity's Mono problem: Why your C# code runs slower than it should”

“I write a lot of my C/C++ code using Boehm GC, have my own libraries designed knowing GC is there”

RecommendsComment from 7 Nov 2025 in “A Note on Fil-C”

“makes any random C/C++ program not only still work but also run faster”

RecommendsComment from 2 Nov 2025 in “Notes by djb on using Fil-C”

“it's been useful in leak detection mode on occasion”

RecommendsComment from 2 Nov 2025 in “Notes by djb on using Fil-C”

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