libmobile
Bunki
libmobile | Bunki | |
---|---|---|
1 | 5 | |
34 | 225 | |
- | 0.0% | |
2.9 | 6.8 | |
7 months ago | about 1 year ago | |
C | C | |
GNU Lesser General Public License v3.0 only | MIT License |
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.
libmobile
-
Coroutines in C
The "switch" method isn't too uncommon, but usually people have an init function and "state" pointer that's passed into the coroutine function. I've used this method a lot in embedded projects, where one coroutine was handling motor acceleration/deceleration while the other would simply tell it what direction to go, but I've also used it for networked libraries[1].
You don't really need to introduce macro hell for it to be manageable, though I've never found reading switch/case flow to be very enjoyable.
[1]: https://github.com/REONTeam/libmobile/blob/master/relay.c#L3...
Bunki
-
Coroutines in C
I honestly like stackful coroutines if you don’t mind allocating memory for a stack.
https://github.com/Keith-Cancel/Bunki
-
A simple C coroutine library, with multithreading and more, Go and C++20 style
Like you mention other libraries, but how does this compare to something like this?
https://github.com/Keith-Cancel/Bunki
when compared to context switches having just giving things a cursory glance.
Also it seems to be trying to handle a lot of styles/handling of co-routines. Is there a reason for not really just choosing one style
- Bunki, a C Coroutine Library
What are some alternatives?
Mongoose - Embedded web server, with TCP/IP network stack, MQTT and Websocket
minicoro - Single header stackful cross-platform coroutine library in pure C.
rfcs - RFCs for changes to Rust
Tina - Tina is a teeny tiny, header only, coroutine and job library.
libco - Mirror of http://byuu.org/library/libco/
ares - ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation.