rswier/c4 resource
C in four functions observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4320
- days_rel: n/a
- days_push: 981
- n_releases_24m: 0
Adoption not part of the score
10785 stars · 1498 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A tiny self-hosting C interpreter/compiler written in about 500 lines of C across four functions. It is an educational exercise in minimalism that can interpret C programs, including itself.
Use cases
- learn how compilers and interpreters work
- study a minimal self-hosting C implementation
- run simple C programs without a full toolchain
- teach compiler internals with readable code
- experiment with a tiny virtual machine in C
When to choose
- you want a small, readable codebase to learn compiler/interpreter fundamentals
- you need a teaching example of self-hosting compilers
- you enjoy minimalist C code
When to avoid
- you need a production C compiler with optimizations and full standards compliance
- you need performance or extensive language features
- you need a supported, actively developed tool
Facets
learning-resource · maturity maintenance
interpreter compiler parser compilers programming-languages education developer-tools cpp cli minimalism self-hosting educational single-file c-compiler linux macos
1 source
- readme: https://github.com/rswier/c4 · fetched 2026-08-28 · 1dc4d39bef83
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rswier/c4 | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem