Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2018 (3)
20082026
  1. …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
  2. I did something similar with I implemented coroutines for C (both 32 and 64 bit x86). [1] https://github.com/spc476/C-Coroutines
  3. …package [1] for x86 and x86-64 by only saving the registers required by the calling convention. [1] https://github.com/spc476/C-Coroutines
  4. …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
  5. …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
  6. …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)
  7. …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)
  8. …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