Skip to content

Details

Note the date is the 3rd Wednesday of September, instead of our usual 2nd Wednesday.

Last month, we looked at the basics of coroutines in C++20. This month, Richard Thomson will give us an introduction to the Boost.Cobalt library that aims to make using coroutines simpler.

Boost.Cobalt by Klemens Morgenstern was released in December, 2023 as part of the 1.84 version of the Boost Libraries. Klemens describes the motivation for Cobalt here:

"Many languages programming languages like node.js and python provide easy to use single-threaded concurrency frameworks. While more complex than synchronous code, single threaded asynchronicity avoids many of the pitfalls & overhead of multi-threading. [...] This library is meant to provide this to C++: simple single threaded asynchronicity akin to node.js and asyncio in python that works with existing libraries like boost.beast, boost.mysql or boost.redis. It based on boost.asio."

We'll start by taking a look at the basics of Cobalt using the examples provided in the documentation. We'll finish off by switching to Cobalt for our JSON comics database.

Boost.Cobalt docs

This will be an online meeting, so drinks and snacks are on you!

Join the meeting here: https://meet.xmission.com/Utah-Cpp-Programmers

Watch previous topics on the Utah C++ Programmers YouTube channel:
https://www.youtube.com/@UtahCppProgrammers

Future topics: https://utahcpp.wordpress.com/future-meeting-topics/
Past topics: https://utahcpp.wordpress.com/past-meeting-topics/

Related topics

C & C++
Programming Languages
Computer Programming
Mobile Development
Software Development

You may also like