Hacker ApprovedDepartments

sokol

Shares rank 8 of 9 c++ libraries by recommenders

Free C library whose code builds to WebAssembly and runs the same way as the native app, which people find convenient.

Free C library whose code builds to WebAssembly and runs the same way as the native app, which people find convenient.

5 people gave an opinion

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

Recommended in 5 of 13 months

  1. November 2025: not 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: recommended
  9. July 2026: 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.
  • Nobody criticizes itNeeds 2 to 1 or better, met.
  • Recommended in 5 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

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.

sokol compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
musl libc342558%10——
glibc297528%10——
Cosmopolitan libc29683%10—Approved
Sp.h standard library for C112729%1——
sokolThis page50100%5——
See all 9 c++ libraries, ranked

What people said

5 of the 6 comments that mention it, newest first. Each links to the original comment.

“While Sokol is more higher level both can be used.”

RecommendsComment from 23 Jul 2026 in “Learn OpenGL, extensive tutorial resource for learning Modern OpenGL”

“Sokol is the best, thank you for your ongoing work”

RecommendsComment from 13 Jul 2026 in “Tiny Emulators”

“we use it at work for some things”

RecommendsComment from 19 Jun 2026 in “Ported my C game to WASM, here's everybug that I hit”

“It's very convenient how it can build to WebAssembly and run the same way as the native app.”

MixedComment from 15 Feb 2026 in “Zed editor switching graphics lib from blade to wgpu”

“it led to my re-learning the C language in the most enjoyable way”

RecommendsComment from 10 Dec 2025 in “Dependable C”

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