Sign In


C++ Coroutines Do Not Spark Joy


  • CppConcurrency

  • blog post

  • opinion

  • with code


Excerpt from the post: C++20 added minimal support for coroutines. I think they’re done in a way that really doesn’t fit into C++, mostly because they don’t follow the zero-overhead principle. Calling a coroutine can be very expensive (requiring calls to new() and delete()) in a way that’s not entirely under your control, and they’re designed to make it extra hard for you to control how expensive they are. I think they were inspired by C# coroutines, and the design does fit into C# much better. But in C++ I don’t know who they are for, or who asked for this…

Posted by NaN_Loss 29 days ago

save post

Sign in or register to leave a comment

No comment yet

Popular topics

  • transformers

  • ConvNets

  • MachineLearningTheory

  • NLP

  • SGD

  • regularization

  • python

  • NeuralNetworks

  • Backpropagation

  • math

  • GANs

  • ReinforcementLearning

  • LSTMs

  • ComputerVision

  • VariationalAutoencoder

Popular tags

  • blog post

  • with code

  • tutorial

  • notebook(s)

  • video playlist

  • graduate course

  • beginner

  • book

  • video

  • advanced

  • opinion

  • free course

  • annotated paper

  • library

  • news