CppCon 2017: David Sackstein “Boost Your Program’s Health by Adding Fibers to your Coroutine”

Sdílet
Vložit
  • čas přidán 30. 05. 2024
  • CppCon.org
    -
    Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/CppCon/CppCon2017
    -
    This session is intended to help the advanced programmer to understand what coroutines and fibers are, what problems they solve and how they should be applied in practice.
    The session begins with an overview of these concepts, comparing them with threads, and demonstrating how they are exposed by the Boost libraries.
    Apart from being clean and succinct as Boost libraries typically are, the authors of these libraries have gone to great lengths to ensure that fibers and coroutines expose a programming model consistent with that of threads. This will make them seem very familiar.
    During the session I will demonstrate how fibers and coroutines can be used together with the powerful Boost.Asio library to solve some commonly occurring problems.
    To conclude, I will provide some practical tips and guidelines for those who are adding fibers and coroutines to their programming diet.
    -
    David Sackstein: codeprecise. Developer, Consultant, Trainer
    David is an experienced C++ and .Net developer and lectures on advanced topics in these languages. He is a great believer in the need to apply good engineering practices and clean code and assists his customers to implement them. He delivered a 90 minute session at ACCU 2015 on the topic of coroutines in C++ and C#.
    -
    Videos Filmed & Edited by Bash Films: www.BashFilms.com
    *-----*
    Register Now For CppCon 2022: cppcon.org/registration/
    *-----*

Komentáře • 4

  • @Rathori
    @Rathori Před 5 lety +4

    I think the asker at around 57:00 meant that thread_local storage is shared between all fibers on a given thread, as opposed to being unique per fiber, so we would need something like a fiber_local storage in order to use thread_local semantics with fibers. A quick google search tells me that Boost.Fiber library has this kind of fiber local storage in form of fiber_local_ptr.
    Link to Boost doc: www.boost.org/doc/libs/1_68_0/libs/fiber/doc/html/fiber/fls.html

  • @HiAdrian
    @HiAdrian Před 6 lety +1

    Mr. Sackstein is an excellent speaker/presenter, wish this was more common. 👍

  • @dirtbikersteve
    @dirtbikersteve Před 6 lety +4

    I like this guys rhythm of talk

  • @jobo-tv
    @jobo-tv Před 6 lety +1

    Hats off !