neco
Concurrency library for C (coroutines) (by tidwall)
co
Example implementation of coroutine in C (by liuliu)
neco | co | |
---|---|---|
4 | 1 | |
1,029 | 15 | |
- | - | |
7.2 | - | |
7 days ago | over 3 years ago | |
C | C | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
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.
neco
Posts with mentions or reviews of neco.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-08.
- Neco: Concurrency Library for C (Coroutines)
-
Show HN: Neco – Coroutine Library for C
I don't know where you're getting that impression.
These are stackful, symmetric coroutines with a build-in scheduler. It implements suspend and resume. You can call that a green thread if you want, or a fiber or whatever. They're coroutines.
The API docs make all of this clearer than the README. https://github.com/tidwall/neco/blob/main/docs/API.md
co
Posts with mentions or reviews of co.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-08.
-
Show HN: Neco – Coroutine Library for C
Yeah, at some point, would just say if you want stackful coroutine, go to Go and stackless one, use C++.
BTW, here is my macros for stackless coroutine in C: https://github.com/liuliu/co/blob/master/example.c
What are some alternatives?
When comparing neco and co you can also consider the following projects:
libaco - A blazing fast and lightweight C asymmetric coroutine library 💎 ⛅🚀⛅🌞
libco - libco is a coroutine library which is widely used in wechat back-end service. It has been running on tens of thousands of machines since 2013.
libco - libco is a cooperative multithreading library written in C89.