CppCon 2017: Toby Allsopp “Coroutines: what can't they do?”

preview_player
Показать описание


Coroutines are coming. They're coming for your asynchronous operations. They're coming for your lazy generators. This much we know. But once they're here, will they be satisfied with these offerings? They will not. They will require feeding, lest they devour our very souls. We present some fun ways to keep their incessant hunger at bay. I, for one, welcome our new coroutine overlords.

The Coroutines Technical Specification is an experimental extension to the C++ language that allows functions to be suspended and resumed, with the primary aim of simplifying code that invokes asynchronous operations. We present a short introduction to Coroutines followed by some possibly non-obvious ways they can help to simplify your code.

Have you ever wanted to elegantly compose operations that might fail? Coroutines can help. Have you ever wished for a zero-overhead type-erased function wrapper? Coroutines can help. We show you how and more.

Toby Allsopp: Senior Software Engineer, WhereScape Software Limited

Toby Allsopp has been using C++ for over 20 years and hasn't given up yet. His interests include cutting edge language features, functional programming, and solving the hard problems. Toby lives in Auckland, New Zealand, where he organizes the Auckland C++ Meetup.


*-----*
*-----*
Рекомендации по теме
Комментарии
Автор

To me, the speaker did a good job. He presented the info logically, spoke clearly, and discussed important concepts. This is exactly what I look for in a presentation.

OptimusVlad
Автор

This is great talk for somebody who has some coroutine basics.

voidtcloudy
Автор

I think this presentation is good to me. I want know how coroutine works in source code level. Gor also takes several nice presentationa about how compiler implement couroutine. They are all great. Thanks for the speaker.

gaoge
Автор

I would change the title of the talk, because it describes the coroutines very well.

BartoszBielecki
Автор

So, I think with just a bit of confidence and energy this could be a really good presentation. Amazing how nerves can just make it feel like he is speaking in an anechoic chamber.

maninalift
Автор

Why not use coroutines to apply it to different components to Hetergenous Accelerators { SIMD CPU/GPU/TPU/FPGA etc etc}

axe
Автор

Some of the comments below is a bit harsh, as I think the video is exactly what I'm looking for. It could probably be better titled though, seems most of the criticism go in expecting this video to be something else

kronek
Автор

Unfortunately I had I hard time following the presenter. I wished to learn about coroutines from this presentation, but unfortunately I will have to find another way. Suggestions to the presenter for improving the presentation and own presentation skills: practice presenting to give a more relaxed impression (presenter seemed nervous), just going through the coroutines features was had to follow for me, a much better approach would be to use examples as the features are presented and provide visual code flow representation as each feature is introduced (just saying what each feature does takes time to understand and follow, a visual queue with and example would improve the understanding significantly).

Eugen-C
Автор

it is not only soft skills that this presenter lacks. He focuses too much on WHAT are the coroutines, not WHY do we need them and WHAT problems do they solve. If he started with a specific problem and the previous solutions to it, we could relate better.

roilev