5

C++ Executors: the Good, the Bad, and Some Examples

 2 years ago
source link: http://lucteo.ro/2021/08/06/cpp-executors-the-good-the-bad-and-some-examples/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

C++ Executors: the Good, the Bad, and Some Examples

Executors are one of the most expected features for the upcoming C++ standards. This article tries to cast a critical perspective of some of the main proposals discussed for adoption. Besides briefly explaining the content of the executors proposal and providing a few examples, the article tries to pick on some decisions made in those proposals. It tries to argue about the strong and the weak points by adding simplistic labels of “good” and “bad”.

As with most of the later articles, this was published in Overload.

NOTE: The article contains one major error: I argue that executors do not provide a monadic bind. This is completely wrong. The let_value provides just this functionality. I’ll try to correct the mistake in the next article.

Don’t forget to support nolocks.org by spreading the word.

Keep truthing!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK