Coros – A Modern C++ Library for Task Parallelism
Hello Hacker News. I’m Martin, a graduate student from Prague, and I’ve been working on Coros, a C++ library for task-based parallelism. After spending some time with OpenMP and oneTBB, I wanted to try building a library using modern features from the C++ standard library. I’ve used coroutines for task encapsulation and C++23 expected for exception handling, while trying to maintain good performance. Additionally, I’ve implemented monadic-like behavior to allow easy chaining of tasks, similar to the monadic operations in std::expected. You can check out the project here:…
Coros – A Modern C++ Library for Task Parallelism launched on September 25, 2024 with 129 votes, #467 of 5,281 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 2 years on.
In plain words
Coros is a C++ library for task-based parallelism built using modern standard library features including coroutines and C++23 expected for exception handling. It provides monadic-like behavior for chaining tasks together. The library is designed for developers working with parallel computing in C++ who want to leverage contemporary language features instead of traditional frameworks like OpenMP or oneTBB. The project is currently experimental and under development.
written from the facts on this page · September 2026
From the sources
An easy-to-use and fast library for task-based parallelism, utilizing coroutines. - mtmucha/coros
In the maker’s words, at launch
Hello Hacker News. I’m Martin, a graduate student from Prague, and I’ve been working on Coros, a C++ library for task-based parallelism. After spending some time with OpenMP and oneTBB, I wanted to try building a library using modern features from the C++ standard library. I’ve used coroutines for task encapsulation…
Does a similar job
all alternatives →
Neco – Coroutine Library for C2024 · github.com · ▲145Concurrency 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
RaftLib – Easy, productive parallel programming in C++2016 · raftlib.io · ▲62Simple, easy to use stream computation library for C++.
Moustique – C++14 coroutine-based non-blocking IO on Linux2018 · github.com · ▲68C++14 high performance non-blocking network IO (based on epoll + boost.context) - matt-42/moustique
Asymmetric stackful cross-platform Coroutines in pure C2021 · github.com · ▲39Single header stackful cross-platform coroutine library in pure C. - edubart/minicoro
CXXStateTree – A modern C++ library for hierarchical state machines2025 · github.com · ▲48Hi HN! I've built [CXXStateTree](https://github.com/ZigRazor/CXXStateTree), a modern C++ header-only library to create hierarchical state machines with clean, intuitive APIs. It supports: - Deeply nested states - Entry/exit handlers - State transitions with guards and actions - Asynchronous transitions with `co_await` (C++20 coroutines) - Optional runtime type identification for flexibility It's ideal for complex control logic, embedded systems, games, robotics, and anywhere you'd use a finite state machine. I’d love feedback, use cases, or contributions from the…
More work this month
the category →
Endless lofi beats composed live in your browser, over pixel-art nights in Paris, Tokyo, New York, Hong Kong, Sydney, San Francisco and more. Free, no sign-up.
Work · 24d ago · loficities.com
Smooth Recorder▲257Mac screen recordings that look edited when you hit stop
Work · 18d ago · smoothrecorder.com


Work · 13d ago · readrare.com
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, September 2024
the whole month →

BeforeSunset AI 2.0▲1,267Personalized AI daily planning that suits your life
AI · 2024 · beforesunset.ai


