Hacker ApprovedDepartments

Cosmopolitan libc

Hacker Approved

Shares rank 2 of 9 c++ libraries by recommenders

Builds single binaries that run across Linux, Windows and Mac on amd64 and arm64, with a portable C library. Caveat: critics note limited adoption and lowest-common-denominator platform support issues.

Builds single binaries that run across Linux, Windows and Mac on amd64 and arm64, with a portable C library. Caveat: critics note limited adoption and lowest-common-denominator platform support issues.

35 people gave an opinion

recommend it
29
criticize it
6
approval share
83%
Each figure is one person. RecommendsCriticizes

Recommended in 10 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: not 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 carries the badge

  • 29 people recommend itNeeds 10 or more, met.
  • 4.8 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 10 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

  • Runs across operating systems

    “being able to write quick little utilities and then pass them around without worrying about what operating system”

    Comment from 15 Jun 2026 in “Show HN: Kage – Shadow any website to a single binary for offline viewing”

    “It combines a polyglot format and a polymorphic libc that works in all major OSes under both amd64 and arm64.”

    Comment from 21 Jan 2026 in “What Is a PC Compatible?”

    “you can compile a single native binary that targets Linux, Windows & Mac OS”

    Comment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”
  • Impressive, admired engineering

    “Very few people in recent decades have achieved anything comparable to αcτµαlly pδrταblε εxεcµταblε and Cosmopolitan libc”

    Comment from 31 May 2026 in “Restartable Sequences”

    “I love that someone is attempting this just because of the tenacity it shows.”

    Comment from 30 Dec 2025 in “Win32 is the stable Linux ABI”

    “jart's cosmopolitan is awesome.”

    Comment from 24 Jul 2026 in “Interview with Matheus Moreira about Lone Lisp and Linux Kernel”
  • Works with OpenGL and GUI packages

    “Cosmopolitan Libc has since integrated the bits to make OpenGL work in cross-platform binaries and it's awesome.”

    Comment from 17 Jun 2026 in “MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C”

    “Cosmopolitan can be used to bundle up any gui package, and your code”

    Comment from 4 Mar 2026 in “Claude is an Electron App because we've lost native”
  • Platform-agnostic static C standard library

    “the core benefit proposition of Cosmopolitan is indeed a platform-agnostic, statically-linked C standard”

    Comment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”

    “it's the secret sauce that powers everything else”

    Comment from 10 Jan 2026 in “Google Co-Founder Sergey Brin's Unretirement Is a Lesson for the Rest of Us”

What people warn about

Each mark is one comment

  • Unclear value and limited adoption

    “Cosmopolitan is great tech, the llamafile command (the "UX for a model" part) is great, but I'm not convinced by the value of Cosmopolitan applied here.”

    Comment from 1 Nov 2025 on Hacker News

    “And it's not like APE and Cosmo libc are seeing massive adoption”

    Comment from 1 Jun 2026 in “Restartable Sequences”
  • Platform hacks and support limits

    “I'd rather have platform specific minimal binaries than a single binary with hacks.”

    Comment from 15 Jun 2026 in “Show HN: Kage – Shadow any website to a single binary for offline viewing”

    “has many lowest common denominator platform support issues”

    Comment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”

Other c++ libraries people recommend

The four most recommended other c++ libraries, 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.

Cosmopolitan libc compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
musl libc342558%10——
Cosmopolitan libcThis page29683%10—Approved
glibc297528%10——
Sp.h standard library for C112729%1——
GLib6367%4——
See all 9 c++ libraries, ranked

What people said

34 of the 36 comments that mention it, newest first. Each links to the original comment.

“used every once in a while as a no-brainer distributable executable format”

RecommendsComment from 27 Oct 2026 in “At 14 Justine Tunney published software. Now she makes AI models run from a file”

“The Cosmo binary was overkill here.”

CriticizesComment from 21 Oct 2026 in “PHP 8.2.35”

“It may be time to revisit cosmopolitan”

RecommendsComment from 11 Oct 2026 in “Unikernels were hard. key word: were”

“Another way to achieve something like this is Cosmopolitan C Compiler”

RecommendsComment from 16 Sep 2026 in “Show HN: Capsule – Single-file web apps that save their data into SQLite”

“shows what's possible, though.”

RecommendsComment from 24 Aug 2026 in “There's no reason for software to be slow anymore”

“For command-line programs, you might try something like Cosmopoliton[2] instead.”

RecommendsComment from 12 Aug 2026 in “I hate packaging my software for Linux”

“jart's cosmopolitan is awesome.”

RecommendsComment from 24 Jul 2026 in “Interview with Matheus Moreira about Lone Lisp and Linux Kernel”

“would be a pretty go-like experience, I'd think”

RecommendsComment from 25 Jun 2026 in “LuaJIT 3.0 proposed syntax extensions”

“Cosmopolitan Libc has since integrated the bits to make OpenGL work in cross-platform binaries and it's awesome.”

RecommendsComment from 17 Jun 2026 in “MicroUI – A tiny, portable, immediate-mode UI library written in ANSI C”

“to make a binary that runs in many places including bare metal”

RecommendsComment from 15 Jun 2026 in “Boot Naked Linux”

“being able to write quick little utilities and then pass them around without worrying about what operating system”

RecommendsComment from 15 Jun 2026 in “Show HN: Kage – Shadow any website to a single binary for offline viewing”

“I'd rather have platform specific minimal binaries than a single binary with hacks.”

CriticizesComment from 15 Jun 2026 in “Show HN: Kage – Shadow any website to a single binary for offline viewing”

“make sure to check out the portable C library used to create it, which is also fascinating”

RecommendsComment from 6 Jun 2026 in “Zeroserve: A zero-config web server you can script with eBPF”

“the portable C library used to create it, which is also fascinating”

RecommendsComment from 6 Jun 2026 in “Zeroserve: A zero-config web server you can script with eBPF”

“but this is at another level because it's all production-ready”

RecommendsComment from 1 Jun 2026 in “Restartable Sequences”

“And it's not like APE and Cosmo libc are seeing massive adoption”

MixedComment from 1 Jun 2026 in “Restartable Sequences”

“Very few people in recent decades have achieved anything comparable to αcτµαlly pδrταblε εxεcµταblε and Cosmopolitan libc”

RecommendsComment from 31 May 2026 in “Restartable Sequences”

“Cosmopolitan libc is legendary”

RecommendsComment from 20 May 2026 in “Freelang – a Libc-free, direct sys/kernel call language with weird concurrency”

“It looks like this may be a way to actually accomplish that”

RecommendsComment from 17 May 2026 in “XS: A programming language. Anywhere, anytime, by anyone”

“Cosmopolitan can be used to bundle up any gui package, and your code”

RecommendsComment from 4 Mar 2026 in “Claude is an Electron App because we've lost native”

“has many lowest common denominator platform support issues”

CriticizesComment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”

“the core benefit proposition of Cosmopolitan is indeed a platform-agnostic, statically-linked C standard”

RecommendsComment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”

“allows a compile once execute anywhere style type of C++ binary”

RecommendsComment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”

“Clearly a joke if it uses the .lol tld.”

CriticizesComment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”

“if you disable Windows Defender”

CriticizesComment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”

“you can compile a single native binary that targets Linux, Windows & Mac OS”

RecommendsComment from 26 Jan 2026 in “The Holy Grail of Linux Binary Compatibility: Musl and Dlopen”

“And produces binaries that are smaller than a typical single-OS build.”

RecommendsComment from 21 Jan 2026 in “What Is a PC Compatible?”

“It combines a polyglot format and a polymorphic libc that works in all major OSes under both amd64 and arm64.”

RecommendsComment from 21 Jan 2026 in “What Is a PC Compatible?”

“it's the secret sauce that powers everything else”

RecommendsComment from 10 Jan 2026 in “Google Co-Founder Sergey Brin's Unretirement Is a Lesson for the Rest of Us”

“I love that someone is attempting this just because of the tenacity it shows.”

RecommendsComment from 30 Dec 2025 in “Win32 is the stable Linux ABI”

“the best I found was https://github.com/jart/cosmopolitan/releases/tag/3.1”

RecommendsComment from 15 Dec 2025 in “Go is portable, until it isn't”

“For a single binary that will actually run across both architectures, see”

RecommendsComment from 13 Dec 2025 in “Go is portable, until it isn't”

“Cosmopolitan libc implements pledge on Linux on top of seccomp-bpf”

MixedComment from 16 Nov 2025 in “Why use OpenBSD?”

“Cosmopolitan is great tech, the llamafile command (the "UX for a model" part) is great, but I'm not convinced by the value of Cosmopolitan applied here.”

MixedComment from 1 Nov 2025 on Hacker News

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