C Coroutines

Open-source C projects categorized as Coroutines

Top 12 C Coroutine Projects

  1. tbox

    🎁 A glib-like multi-platform c library

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. swow

    Coroutine-based cross-platform concurrent I/O engine.

  4. umka-lang

    Umka: a statically typed embeddable scripting language

  5. zpl

    📐 Pushing the boundaries of simplicity

  6. felix

    The Felix Programming Language (by felix-lang)

  7. libfiber

    The high performance c/c++ coroutine/fiber library for Linux/FreeBSD/MacOS/Windows, supporting select/poll/epoll/kqueue/iouring/iocp/windows GUI. (by iqiyi)

  8. minicoro

    Single header stackful cross-platform coroutine library in pure C.

    Project mention: Philosophy of Coroutines (2023) | news.ycombinator.com | 2025-03-27

    I share the author's enthusiasm for coroutines. They're nice abstractions for all sorts of state-machine-like code and for concurrency (without parallelism).

    > You could allocate a piece of memory for a coroutine stack; let the coroutines on it push and pop stack frames like ordinary function calls; and have a special ‘yield’ function that swaps out the stack pointer and switches over to executing on another stack. In fact, that’s not a bad way to add coroutines to a language that doesn’t already have them, because it doesn’t need the compiler to have any special knowledge of what’s going on. You could add coroutines to C in this way if you wanted to, and the approach would have several advantages over my preprocessor system.

    In C minicoro is a nice library that provides just that: https://github.com/edubart/minicoro

    In Zig there's zigcoro: https://github.com/rsepassi/zigcoro

    Another source I found enlightening on coroutines is "Coroutines in Lua": https://www.lua.org/doc/jucs04.pdf

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. QuarkTS

    An open-source OS for embedded applications that supports prioritized cooperative scheduling, time control, inter-task communications primitives, hierarchical state machines and CoRoutines.

  11. Tina

    Tina is a teeny tiny, header only, coroutine and job library.

  12. Bunki

    A simple C coroutine library.

  13. lua-resty-ffi

    lua-resty-ffi provides an efficient and generic API to do hybrid programming in openresty/envoy with mainstream languages (Go, Python, Java, Rust, Nodejs, etc.).

  14. pyawaitable

    Call asynchronous code from an extension module.

    Project mention: Show HN: PyAwaitable – Asynchronous code from Python's C API | news.ycombinator.com | 2024-11-01
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C Coroutines discussion

Log in or Post with

C Coroutines related posts

Index

What are some of the best open-source Coroutine projects in C? This list will help you:

# Project Stars
1 tbox 4,996
2 swow 1,254
3 umka-lang 1,164
4 zpl 1,022
5 felix 815
6 libfiber 781
7 minicoro 736
8 QuarkTS 327
9 Tina 284
10 Bunki 227
11 lua-resty-ffi 112
12 pyawaitable 52

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com