# cloudwu/coroutine

A asymmetric coroutine library for C.

Repository: https://github.com/cloudwu/coroutine
Canonical: https://ross.abutalabs.com/products/coroutine
Language: C
License: MIT
License Family: permissive
Last push: 2022-12-16T09:23:01+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": 5154, "days_push": 1356, "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 2522, forks 678 (observed 2026-08-28T04:06:58.400502+00:00)

## What it is
A small asymmetric coroutine library for C, similar to Lua's coroutines. Coroutines in a schedule share a single stack, so many coroutines can be created cheaply, with stack copying on context switch.

## Use cases
- add cooperative multitasking to a C program
- implement lightweight coroutines in C like Lua's
- run many coroutines with low memory overhead
- write asynchronous-style code in a synchronous style in C
- embed coroutines into a game server or engine

## When to choose
- you need simple, dependency-free coroutines in pure C
- memory efficiency matters and shared-stack coroutines fit your workload
- you want a small, readable codebase to embed or study

## When to avoid
- you need symmetric coroutines or goroutine-style scheduling
- you need per-coroutine stacks without copy overhead
- you're working in a language with native async/coroutine support

## Facets
- artifact type: library
- maturity: stable
- function: concurrency
- domain: developer-tools, programming-languages
- platform: c, cross-platform
- tags: coroutines, asymmetric-coroutines, stackful, c-library, context-switching

## Member repositories
- cloudwu/coroutine (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:58.400502+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-30T02:25:47.619463+00:00, confidence not recorded.
  - readme: https://github.com/cloudwu/coroutine (fetched 2026-08-28T04:06:58.400502+00:00, sha 993d9e33c6ed)
- Data as of 2026-08-30T08:39:29.467469+00:00.
