Show HN: Coros – A Modern C++ Library for Task Parallelism

129 points by singledigits - 310 Days, 21 Hours ago Hacker News

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: https://github.com/mtmucha/coros

While this library isn’t fully-fledged or production-ready, I’d really appreciate your feedback!

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...