cppcoro VS C-Coroutines

Compare cppcoro vs C-Coroutines and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
cppcoro C-Coroutines
24 2
3,235 72
- -
0.0 0.0
4 months ago about 7 years ago
C++ C
MIT License GNU Lesser General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cppcoro

Posts with mentions or reviews of cppcoro. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-13.

C-Coroutines

Posts with mentions or reviews of C-Coroutines. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-22.
  • Does anyone here actually UNDERSTAND coroutines?
    1 project | /r/cpp_questions | 3 Jun 2021
    A coroutine is an execution context + all necessary data for restoring the execution context. This includes a place for saving/restoring the stack and the registers. I always loved the simplicity and beauty of the coroutine_yield32: assembly implementation of this library. It's literally just swapping out stack and registers with another context in userspace. Async-await patterns are an abstraction around this to decide when to switch and when not to switch. Note that at no point a thread is started or stopped, or communicated with other threads/cores. Yielding is literally a series of unconditional moves.
  • David Mazieres' tutorial and take on C++20 coroutines
    5 projects | news.ycombinator.com | 22 Feb 2021
    Or take advantage of the ABI of the runtime, and use assembly. [1] Yeah, not portable. But using setjmp()/longjmp() has issues as well (way too easy to mess it up because it doesn't do what you think it's doing).

    [1] https://github.com/spc476/C-Coroutines

What are some alternatives?

When comparing cppcoro and C-Coroutines you can also consider the following projects:

libunifex - Unified Executors

asyncly - C++ concurrent programming library

drogon - Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows

coro-chat - Playing with the C++17 Coroutines TS to implement a simple chat server

Folly - An open-source C++ library developed and used at Facebook.

Flow - Flow is a software framework focused on ease of use while maximizing performance in closed closed loop systems (e.g. robots). Flow is built on top of C++ 20 coroutines and utilizes modern C++ techniques.

coproto - A protocol framework based on coroutines

uvloop - Ultra fast asyncio event loop.

cppcoro - A library of C++ coroutine abstractions for the coroutines TS

libos - Cross-platform OS features in C++

coro - Coroutine library and toolkit for C++20