What we’ve been awaiting for Hana Dusíková

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • How do you download a file from the internet in C++? In JavaScript it's really easy: just call the fetch function and await on the result.
    In this talk I show how to gradually build a coroutine type, and how to make it as user friendly as possible. I will show you how to implement some async algorithms: waiting for all promises to finish, or waiting only for the first one to finish.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 2

  • @Roibarkan
    @Roibarkan 2 หลายเดือนก่อน

    31:16 I think some people use the term “continuation” to describe the handle of “someone awaiting for my result”.

  • @Roibarkan
    @Roibarkan 2 หลายเดือนก่อน

    45:09 I think adjacent_transform needs to receive an argument (the callable that will receive 3 arguments and ‘transform’ them). Probably caused due to slide-conversion. I assume there was something like this lambda: [](args…){return string{args,…};}
    Alternatively, I believe std::views::adjacent can be used to create the tuple