Home / type-c
stass/type-c
C11 with the types C is missing: variants, options, generics and exhaustive matching
OCamlCategories: Developer tools
Our summary
Type-C is a language that extends C11 with tagged variants, exhaustive match checking, distinct types, generic types, and errors as values with try and defer. Its compiler, typec, translates Type-C into C and passes the result to a C compiler.
Who it is for: C programmers who want variants, exhaustive matching and related checks in their C code
What the README claims
- Compiler takes the command line of cc and hands generated C to the C compiler
Its compiler, `typec`, takes the command line of `cc`, turns Type-C into C that you can read, and hands that C to your C
Not checked - A C11 file is already a valid Type-C file
A C11 file is already a Type-C file, so a program adopts it
Not checked - Non-exhaustive match is reported as a compile error
Add a `Sub` case to `expr`, and the build stops at the
Not checked - Adds no runtime, with no garbage collector or exceptions
No hidden allocation, garbage collector, exceptions
Not checked - Installable with Homebrew on macOS or Linux
Install `typec` with [Homebrew](https://brew.sh), on macOS or Linux:
Not checked
Written by AI from the project's README on 2026-11-24. It does not affect the verdict.
Watching: no other rule matched yet.
21 stars on GitHub. Last push today.
Verdict
REAL scored 1h ago
- Hype
- 97
- Reality
- 69
- Hype Gap
- +27
- Momentum
- -
- Confidence
- 60%
- Maintained moves Reality +19 points.
- Responsive moves Reality -10 points.
Rule verdict-2.0, scoring score-2.0. How we score. Backtest.
Why now 43 Hacker News points in the last 7 days.
- Stars StarsThe number of GitHub stars on the repository at our latest reading.
- 21
- Gain 7d Gain 7dStars gained since our latest reading from at least 7 days ago.
- n/a
- Pace Velocity (Nx usual pace)This week's star gain divided by the project's usual weekly gain. The usual gain is the average weekly gain over the 4 weeks before (days 8 to 35 ago), counted as at least 10 stars. 2.0x means twice the usual pace. Without a reading from 35 days ago, the ranking assumes 2% of the stars the project had 7 days ago as its usual weekly gain. More on the methodology page
- n/a
- HN points HN pointsHacker News points added up across posts that mention the project, published in the last 7 days.
- 43 7 days
- Downloads DownloadsDownloads per day of the project's package, as the registry (npm or PyPI) reports them.
- n/a
- Contributors Contributors, all timePeople and anonymous contributors who have ever committed to the repository, as GitHub counts them. A small number is context, not a flaw: many solid projects are kept by one or two people.
- 1
- Last release Latest releaseDays since the latest GitHub release was published.
- n/a
Gain 24h Gain 24hStars gained since our latest reading from at least 24 hours ago. n/a. Forks ForksThe number of GitHub forks of the repository at our latest reading. 0. Open issues Open issuesThe number of open issues on the repository at our latest reading, as GitHub counts them. 0. Days since push Days since pushDays since the last push to the repository. 0 days. Archived ArchivedWhether the owner has archived the repository on GitHub. An archived repository is read-only. no. Hacker News posts in 7 days Hacker News postsThe number of Hacker News posts that mention the project, published in the last 7 days.: 1. Watchers WatchersThe number of GitHub users watching the repository for notifications, at our latest reading. 0.
Facts
Nerd stuff
- Docs
- docs/ folder (detected), examples/ folder (detected)
- License
- BSD-2-Clause (detected)
The Receipts
| Source | Evidence | Date |
|---|---|---|
| Hacker News | Thread, 43 points, 20 comments | 22 Nov 2026 |
What changed recently
GitHub release dates we stored. We do not track license changes yet.
Cite this
type-c is a GitHub project at https://github.com/stass/type-c written mainly in OCaml, described there as "C11 with the types C is missing: variants, options, generics and exhaustive matching".
Source: https://midorreal.com/project/stass-type-c, checked 24 November 2026. The same facts as JSON: /project/stass-type-c.json.
Rank history
Hot on Hacker News: #26 today.
New to our radar: #7 today.
Stars
Events in this window
Dated items we stored, last 30 days. They sit near the chart, they do not explain it.
Packages
? We have not checked the package registries for this project yet.
Signals
| Source | What we measured | Checked |
|---|---|---|
| GitHub | 21 stars | 24 Nov 2026 |
| Hacker News | 1 post stored, 43 points in the last 7 days | 24 Nov 2026 |
| Feed mentions | Not tracked yet | - |
| npm | Not tracked yet | - |
| PyPI | Not tracked yet | - |
| Docker Hub | Not tracked yet | - |
| crates.io | Not tracked yet | - |
| Homebrew | Not tracked yet | - |
| deps.dev | Not tracked yet | - |
| Hugging Face | Not tracked yet | - |
| Bluesky | Not tracked yet | - |
| Stack Exchange | Not tracked yet | - |
| YouTube | Not tracked yet | - |
Attention vs adoption
Attention: not enough data to rank
Star velocity against all tracked projects
Adoption: not enough data to rank
Downloads, dependents and pulls
Not enough comparable data yet to set attention against adoption. This describes the numbers; it is not a verdict.
Compared with Developer tools
| Measure | This project | Category median |
|---|---|---|
| Star velocity | no data | 0.4 |
| Days since release | no data | 9.7 |
| Contributors, all time | 1 | 2 |
| Median time to first reply on issues | no data | 12 hours |
| Commits in the last 30 days | 509 | 27 |
Contributors, all time: above 0% of Developer tools projects
Commits in the last 30 days: above 91% of Developer tools projects
Compared with the project's first category only. A percentile line appears only where at least 30 projects in the category have the measure. This describes the numbers; it is not a verdict.
Hacker News
| Post | Points PointsThe points the post has on Hacker News. | Comments CommentsThe number of comments on the post on Hacker News. | Date |
|---|---|---|---|
| Hacker News post | 43 | 20 | 22 Nov 2026 |
Caveats
Repo health
- Languages LanguagesShare of the repository's code by bytes, as GitHub's language detection reports it. The five biggest languages are named and the rest are grouped as Other.OCaml 69%, Perl 14%, Raku 11%, Shell 3%, C 2%, Other 1%
- License LicenseThe SPDX license id GitHub detects, and a class: Open source (OSI) if the license is on the Open Source Initiative approved list, Source-available if the code is readable but the license limits use, Unclear if GitHub cannot match a known license, No license detected if it finds none. A public repository without a license is not open source.BSD-2-Clause, Open source (OSI)
- Repository age Repository ageTime since the repository was created on GitHub. This is the repository, not necessarily the project, which may have existed elsewhere before.10 days, created 14 Nov 2026
Development
- Commits in the last 7 days Commits in the last 7 daysCommits to the repository in the last 7 days, as GitHub counts them.238
- Commits in the last 30 days Commits in the last 30 daysCommits to the repository in the last 30 days, as GitHub counts them.509
- Commits in the last 90 days Commits in the last 90 daysCommits to the repository in the last 90 days, as GitHub counts them.509
- Contributors, all time Contributors, all timePeople and anonymous contributors who have ever committed to the repository, as GitHub counts them. A small number is context, not a flaw: many solid projects are kept by one or two people.1, a small team
- Releases ReleasesThe number of GitHub releases, and how many days ago the latest one was published.0
- Issues in the last 30 days Issues in the last 30 daysIssues opened and issues closed in the last 30 days, as GitHub search counts them.0 opened, 0 closed
- Pull requests merged in the last 30 days Pull requests merged in the last 30 daysPull requests merged in the last 30 days, as GitHub search counts them.0
Maintenance
- Stale open issues Stale open issuesOpen issues with no update in the last 90 days, as GitHub search counts them.0
- Open pull requests Open pull requestsPull requests open now, as GitHub search counts them.0
Hygiene
- Automated tests or builds (CI) Automated tests or builds (CI)Whether the repository has at least one GitHub Actions workflow file in .github/workflows.No
- A tests folder A tests folderWhether the repository has a top-level folder named tests, test, __tests__ or spec.Yes
- A license A licenseWhether GitHub detects a license file in the repository.Yes
- Contributing guide Contributing guideWhether the repository has a contributing guide.No
- Code of conduct Code of conductWhether GitHub finds a code of conduct in the repository.No
- CODEOWNERS file CODEOWNERS fileWhether the repository has a CODEOWNERS file, which names who reviews changes to which files.No
- A Dockerfile A DockerfileWhether the repository has a Dockerfile at its top level.No
Security
- Security policy Security policyWhether the repository has a SECURITY.md or SECURITY.rst file.No
- Unpatched high or critical advisories Unpatched high or critical advisoriesPublished GitHub security advisories rated high or critical on this repository that list a vulnerable version with no patched version.0
Badge
For maintainers: one measured fact, no verdict.
Markdown
[](https://midorreal.com/project/stass-type-c)
HTML
<a href="https://midorreal.com/project/stass-type-c"><img src="https://midorreal.com/badge/stass-type-c.svg" alt="Mid or Real"></a>
Verdict badge: It shows the verdict as this page shows it today.
Markdown
[](https://midorreal.com/project/stass-type-c)
HTML
<a href="https://midorreal.com/project/stass-type-c"><img src="https://midorreal.com/badge/stass-type-c.svg?style=verdict" alt="Mid or Real: REAL"></a>
First tracked 24 Nov 2026 at 8 stars.
- GitHub data 36 min old
- Hacker News data 5 min old
Projects talked about on Hacker News
Is this your project? Claim it
Figures by method 1.0