Tech article
Writing a fiber coroutine in C/C3
Community description: I love Go language because of it's simplicity AND the goroutine. I always thinking of having similar...
Dev.to | Mar 11, 2026 | Nomota
Automated excerpt
D language provides a very lightweight simple-minded coroutine, in the name of Fiber, very clean API. There are 4 different way of implementing Fiber coroutine. (1) Calling assembly code for context switching, (2) Using ucontext library on POSIX systems, (3) Using sigsetjmp/siglongjmp on POSIX, (4) Using native Fiber on windows. Calling assembly code is extremely lightweight, but it is not very easy to maintain assembly codes for all architectures.
Selected automatically from source text; not independently written or fact-checked. Read the original for full context.