libfiber
libco
libfiber | libco | |
---|---|---|
1 | 4 | |
718 | 119 | |
0.6% | 0.8% | |
6.7 | 3.5 | |
7 months ago | 12 months ago | |
C | C | |
GNU Lesser General Public License v3.0 only | GNU General Public License v3.0 or later |
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.
libfiber
-
Any C Asynchronous libraries I can translate to?
Consider https://github.com/iqiyi/libfiber (and not the same-name https://github.com/brianwatling/libfiber, which isn't active, nor https://github.com/evanj/libfiber, which has a nice article that goes with it: https://www.evanjones.ca/software/threading.html).
libco
- Show HN: Neco – Coroutine Library for C
-
Cycle Accurate Multithreaded Console Emulator Architecture
Higan's coroutines library libco is low-overhead cooperative multi-tasking that avoids OS context switches. As it says in the readme:
-
A Game Boy Color Emulator, Rust, and a COVID fever dream
Don't know about other systems, but bsnes/higan is probably the most widely known SNES emulator that operates at the cycle level. It uses libco to implement green threads. More details here, but afaik the basic idea is to emulate one subsystem for as long as possible until it touches another subsystem (like the CPU reading a register of the PPU), and at that point the other subsystem catches up.
-
Any C Asynchronous libraries I can translate to?
Not sure exactly what you're looking for/what you mean by 'asynchronous/coroutine', but you probably want either libco or libuv (or both?)
What are some alternatives?
PhotonLibOS - Probably the fastest coroutine lib in the world!
libuv - Cross-platform asynchronous I/O
libfiber - A demonstration thread library for Linux
Claper - The ultimate tool to interact with your audience
libfiber - A User Space Threading Library Supporting Multi-Core Systems
twisted-iocpsupport - `twisted-iocpsupport` is an extension module for the Twisted `iocp` reactor to use the Windows I/O Completion Ports (IOCP) networking API. You should not need to install it directly or interact with its API; it is a dependency of Twisted on Windows platforms.
portable_coroutines - portable coroutine library for C++
libcsp - A concurrency C library 10x faster than Golang.
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.
gb-emulator