spc476/C-Coroutines
View on GitHub ↗ ★ 77 C
Coroutines for C.
8 mentions on Hacker News by 1 person: 0 stories, 8 comments · first 2017-09-25 · latest 2021-02-22
20082026
-
…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
comment by spc476 · 2021-02-22 · in My tutorial and take on C++20 coroutines -
I did something similar with I implemented coroutines for C (both 32 and 64 bit x86). [1] https://github.com/spc476/C-Coroutines
comment by spc476 · 2020-05-24 · in Implementing simple cooperative threads in C -
…package [1] for x86 and x86-64 by only saving the registers required by the calling convention. [1] https://github.com/spc476/C-Coroutines
comment by spc476 · 2020-02-10 · in A hybrid thread / fiber task scheduler written in C++ 11 -
…work for C++, and I'd be a bit hesitant to use it for production, but it's surprisingly simple. [1] https://github.com/spc476/C-Coroutines Edit: clarification of what language my coroutines are implemented in.
comment by spc476 · 2019-03-29 · in Fibers: An Elegant Windows API -
…the code on Linux and Mac OS-X and it works (although I might not use it for C++ either). [1] https://github.com/spc476/C-Coroutines [2] In my not-so humble opinion, using signals at all is not wise.
comment by spc476 · 2018-05-19 · in Show HN: Minimal Fibers -
…took (by taking advantage of the calling convention, not all registers need to be saved). [1] https://github.com/spc476/C-Coroutines
comment by spc476 · 2018-03-29 · in The Art of Assembly Language (1996) -
…for C [1] requires each coroutine to have its own stack. It simplifies things quite a bit. [1] https://github.com/spc476/C-Coroutines [2] [2] More of a "proof-of-concept" than something really meant for production.
comment by spc476 · 2018-02-06 · in C++ Coroutine Theory (2017) -
…you don't need to save the entire CPU state. For C on the x86-64 bit, this is just six registers: https://github.com/spc476/C-Coroutines/blob/314607cf058352be...
comment by spc476 · 2017-09-25 · in Windows 3.1 All Over Again