MikeTrendsTrends right now

⬢github OCaml · 25 ★ +22 since we first saw it · pushed 1 d ago · BSD-2-Clause

stass/type-c

C11 with the types C is missing: variants, options, generics and exhaustive matching

Type-C is a C11 superset adding variants with exhaustive match, distinct types, generics, and errors-as-values with try/defer. Its compiler, typec, accepts cc's command line, transpiles Type-C into readable C, and passes it to a normal C compiler. C11 files are already valid Type-C, so codebases can adopt it one file at a time, with no runtime needed.

Why now: It was recently introduced as a 'Show HN' project on Hacker News, drawing attention to its fresh approach of bringing ML-style types into C via transpilation.

Who it is for: C developers who want safer type-level error handling and pattern matching without leaving the C toolchain or adding a runtime.

ccompilertranspilertype-systempattern-matching

Open on GitHub →

Stars over our 137 snapshots: 3 to 25, since 1 d ago.

Where people talked about it

API: https://socialmediatrends-api.osmike.com/v1/repos/stass/type-c