Back to browse
GitHub Repository

Generic and TypeSafe Programming In C

71 starsC

Sum Type and Type Matching in C

by brightprogramer·Jun 10, 2026·1 point·1 comment

AI Analysis

●●●BangerWizardryBig BrainNiche Gem

Sum types and compile-time type matching in plain C11 without a custom compiler.

Strengths
  • Type-safe tagged unions with zero runtime cost via _Generic and macro metaprogramming.
  • Freestanding support with direct syscalls produces libc-free binaries on all three platforms.
  • Six allocator types including debug allocator catching leaks, double frees, and use-after-free.
Weaknesses
  • Niche audience limits adoption—most C developers won't need sum types or freestanding builds.
  • No package manager integration; manual compilation required for each enabled feature.
Target Audience

Systems programmers, embedded developers, C enthusiasts

Similar To

GLib · Apache APR · stb libraries

Similar Projects

Developer Tools●●●Banger

Gala – Sealed types, pattern matching, and monads for Go

Sealed types + exhaustive pattern matching compile to flat Go interop—no runtime overhead.

Big BrainZero to One
mmcodes
313mo ago