Core C++ 2021 :: Generators, Coroutines and Other Brain Unrolling Sweetness

Поділитися
Вставка
  • Опубліковано 21 вер 2021
  • By Adi Shavit, presented at Core C++ 2021 conference.
    C++20 brings us coroutines and with them the power to create generators, iterables and ranges. We'll see how coroutines allow for cleaner code, easier abstraction and genericity, composition and avoiding callbacks and inversion of control.
    We'll discuss the pains of writing iterator types with distributed internal state and old-school co-routines. Then we'll look at C++20 coroutines and how easy they are to write clean linear code. Coroutines prevent inversion of control and reduce callback hell. We'll see how they compose and see examples from image processing and data structures.
    This is an introductory talk that will focus more on co_yield and less on co_await and async related usages.
    =====
    Adi Shavit is Chief Science Officer at Swapp. He is an entrepreneur, speaker, experienced software architect and a computer vision, image processing, and machine learning expert with an emphasis on real-time applications. He specializes in building cross-platform, high-performance software combined with high production quality and maintainable code-bases. Adi is the founder of the Core C++ users group and the organizer of the Core C++ conference in Israel.
  • Наука та технологія

КОМЕНТАРІ • 1