# sustrik/libdill

Structured concurrency in C

Repository: https://github.com/sustrik/libdill
Canonical: https://ross.abutalabs.com/products/libdill
Language: C
License: MIT
License Family: permissive
Topics: structured-concurrency
Last push: 2024-04-09T07:25:09+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3882, "days_push": 876, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1931, forks 172 (observed 2026-08-28T04:05:56.191731+00:00)

## What it is
libdill is a C library that brings structured concurrency to the language, providing coroutines and concurrency primitives. It allows writing concurrent C code where coroutines have well-defined lifetimes and clean error propagation.

## Use cases
- write concurrent C programs with structured concurrency
- use lightweight coroutines in C
- manage coroutine lifetimes and cancellation safely
- build network servers with concurrent handlers in C
- avoid callback-based concurrency in C

## When to choose
- you need structured concurrency primitives in plain C
- you want lightweight coroutines without a runtime dependency like Go
- you are building C network or systems software with concurrent flows

## When to avoid
- you are working in a higher-level language with native async support
- you need a full-featured async runtime with extensive ecosystem
- your project requires Windows-first support or heavy community activity

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency
- domain: developer-tools
- platform: bsd, cpp, c
- tags: structured-concurrency, coroutines, c-library, algorithms, linux, macos

## Member repositories
- sustrik/libdill (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:56.191731+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:08:42.745211+00:00, confidence not recorded.
  - readme: https://github.com/sustrik/libdill (fetched 2026-08-28T04:05:56.191731+00:00, sha 3b24b415883d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
