C Coroutine

Open-source C projects categorized as Coroutine

Top 7 C Coroutine Projects

  1. libaco

    A blazing fast and lightweight C asymmetric coroutine library 💎 ⛅🚀⛅🌞

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. swow

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

  4. 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)

  5. 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

  6. Melang

    A script language of time-sharing scheduling coroutine in single thread

  7. Bunki

    A simple C coroutine library.

  8. lua-eco

    🐛Lua-eco is a Lua interpreter with a built-in event loop for scheduling lightweight coroutines automatically, enabling efficient concurrency in Lua. Build high-performance, scalable applications.

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
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 Coroutine discussion

Log in or Post with

C Coroutine related posts

Index

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

# Project Stars
1 libaco 3,568
2 swow 1,249
3 libfiber 778
4 minicoro 728
5 Melang 407
6 Bunki 225
7 lua-eco 81

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C is
the 6th most popular programming language
based on number of references?