# yann-shi/libcsp

A concurrency C library 10x faster than Golang.

Repository: https://github.com/yann-shi/libcsp
Canonical: https://ross.abutalabs.com/products/libcsp
Homepage: https://libcsp.dev
Language: C
License: MIT
License Family: permissive
Topics: concurrency, c, golang, libcsp, csp
Last push: 2023-06-30T08:22:48+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2340, "days_push": 1160, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1345, forks 76 (observed 2026-08-28T04:04:27.258783+00:00)

## What it is
libcsp is a high-performance concurrency library for C implementing the Communicating Sequential Processes (CSP) model, inspired by Go's goroutines and channels. It provides a multi-core scheduler, lock-free channels, compile-time stack analysis, and netpoll/timer support.

## Use cases
- write concurrent C programs with goroutine-like coroutines
- communicate between tasks using channels in C
- build high-throughput network servers in C
- replace threads with lightweight coroutines for better performance
- implement CSP-style message passing in C applications

## When to choose
- you need Go-style concurrency in a C codebase
- raw scheduling and channel performance is critical
- you want lightweight coroutines across multiple CPU cores

## When to avoid
- your project is in Go, Rust, or another language with native async/concurrency
- you need a battle-tested, widely-adopted concurrency runtime
- you require extensive documentation and community support

## Facets
- artifact type: library
- maturity: active
- function: concurrency
- domain: developer-tools, programming-languages, performance
- platform: cpp, c
- tags: csp, coroutines, channels, lock-free, scheduler, golang-inspired, linux, macos

## Member repositories
- yann-shi/libcsp (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:27.258783+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-30T04:42:47.343715+00:00, confidence not recorded.
  - readme: https://github.com/yann-shi/libcsp (fetched 2026-08-28T04:04:27.258783+00:00, sha c5ba90144329)
- Data as of 2026-08-30T08:39:29.467469+00:00.
