C++ Coroutines and Structured Concurrency in Practice - Dmitry Prokoptsev - C++Now 2024

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 8

  • @ElementaryWatson-oxo
    @ElementaryWatson-oxo 2 месяца назад +4

    About 15 years ago I was developing a simulation library in C++. There were no coroutines back then, so it was all fibers and threads. It's a lot of fun designing event-driven programs, but it's also a chore debugging them, because execution isn't linear and jumping from place to place, and you definitely don't want to step into scheduler if you want to keep your sanity. Add to that asynchronous threads and it's a nightmare to debug that code, especially if it fails only in optimized build.

  • @Voy2378
    @Voy2378 2 месяца назад

    Example at 29:00 would benefit from a bit more explanation, maybe because IDK what exactly that macro does code is not obvious.

  • @palashdas7006
    @palashdas7006 2 месяца назад

    Real programmers want a solution which will allow them to make 1000s of syscalls in parallel with little bit of stack memory, not a new syntactical sugar to use heap as stack and easy code writing. Where are the concurrency powers of coroutine?

    • @llothar68
      @llothar68 Месяц назад

      It is not really for concurrency but non blocking and reverse of control flow. Try to write iterator over complex datastructure

  • @sheeftz
    @sheeftz 2 месяца назад

    All good, but..
    22:40 Forget about the word "macro" in c++, please. Forever.

    • @llothar68
      @llothar68 Месяц назад +1

      If you don't know the benefit of macros please forget about professional programming

    • @emko8037
      @emko8037 23 дня назад

      I agree that the goal for the future should be to move away from MACROS. However, as of today, we still 'need' them.
      For example, to use __LINE__ (though C++20 offers std::source_location) etc.