nowfound

Life & fun · January 17, 2021

Asymmetric stackful cross-platform Coroutines in pure C

Single header stackful cross-platform coroutine library in pure C. - edubart/minicoro

Asymmetric stackful cross-platform Coroutines in pure C launched on January 17, 2021 with 39 votes, #901 of 3,157 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 5 years on.

In plain words

Asymmetric stackful cross-platform Coroutines in pure C is a library for developers working with C that implements stackful coroutines across multiple platforms. It allows developers to write asynchronous code using coroutine patterns without leaving the C language. The library is written entirely in C, making it portable and suitable for projects that need lightweight concurrency mechanisms without external dependencies.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • Neco – Coroutine Library for C2024 · github.com · ▲145

    Concurrency library for C (coroutines). Contribute to tidwall/neco development by creating an account on GitHub.

  • Libconcurrent – Coroutines in C2016 · github.com · ▲91

    :copyright: Concurrent Programming Library (Coroutine) for C11 - sharow/libconcurrent

  • C discrete event SIM w stackful coroutines runs 45x faster than SimPyFeb 2026 · github.com · ▲69

    Hi all, I have built Cimba, a multithreaded discrete event simulation library in C. Cimba uses POSIX pthread multithreading for parallel execution of multiple simulation trials, while coroutines provide concurrency inside each simulated trial universe. The simulated processes are based on asymmetric stackful coroutines with the context switching hand-coded in assembly. The stackful coroutines make it natural to express agentic behavior by conceptually placing oneself "inside" that process and describing what it does. A process can run in an infinite loop or just act as a one-shot customer…

  • Pure C Asynchronous HTTP Framework2022 · github.com · ▲80

    Asynchronous C networking library with HTTP server, WebSockets, reverse proxy, HTTP/2 gRPC client, TLS and event loop. - Softmotions/iwnet

  • A pure C89 implementation of Go channels, with blocking selects2023 · github.com · ▲271

    A pure C (-std=c89) implementation of Go channels, including blocking and non-blocking selects. - GitHub - rochus-keller/CspChan: A pure C (-std=c89) implementation of Go channels, including blocking and non-blocking selects.

  • IB
    I built a minimal Forth-like stack interpreter library in C2025 · ▲47

    This weekend I created stacklib.h - a single-header library that brings Forth-style stack operations to C. It implements a basic interpreter with: - Stack operations (push/pop/dup/swap/over/drop) - Arithmetic (+, -, *, /) - Output (., emit, cr) - Stack inspection (.s, depth) Example usage: Stack s; stack_init(&s); dict_init(); exec(&s, "10 20 + ."); // Prints "30" exec(&s, "1 2 3 4 .s"); // Shows stack contents The library is self-contained, requires no dependencies, and handles basic error checking. It was inspired by wanting to understand…

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, January 2021

the whole month →