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

  Рет қаралды 5,724

CppCon

CppCon

Күн бұрын

Пікірлер: 12
@ladnir
@ladnir 20 күн бұрын
37:11 is untilCanceledAnd a macro? Otherwise you have a typo as f will close immediately.
@hosein9157
@hosein9157 14 күн бұрын
Shouldn't the recursive call at 13:11 be co_await allOf(...)? It both makes more sense logically and is referenced as such in the following slide.
@BigLongRandomNumberNameM-kf9vy
@BigLongRandomNumberNameM-kf9vy 6 күн бұрын
You're probably right, it looks like a typo to me too.
@codures
@codures 16 күн бұрын
Awkwardly, I find the nursery concept quite inspiring as I pulled this kind of a stunt in Delphi 15 years ago when I wrote a middleware. However, and contrary to what was said, there are quite a few methods to deal with thread creation overhead, at nursery level. The concept of "unsafe nursery" might work faster but, it should be isolated - also experimented: spawning child nurseries until resource exhaustion, checked.
@andreaspokorny3089
@andreaspokorny3089 7 күн бұрын
I do not see yet the difference to the role the "io_context" / "executor" fulfills when building applications with asio. You need it with coroutines and continuation style code..
@jaybny
@jaybny 20 күн бұрын
this is nice
@TheNovakon
@TheNovakon 19 күн бұрын
Why you guys didn't inspire in Javascript. Adopt promise-future concept and problem solved
@Kitsmena
@Kitsmena 18 күн бұрын
We do have promise-future
@lombeelo8780
@lombeelo8780 14 күн бұрын
Because the concept is too simple for the inteded use-cases
@dororofied
@dororofied 11 күн бұрын
There is no need for futures and promises with the existence of coroutines. Promise and futures were made to overcome the limitation of a thread-based task system where a task could not suspend mid execution to allow a child task to complete. Hence why there was the "promise" where some task promises to feed its outputs to another task. With coroutines, all we have to do is suspend the current coroutine, co_await on a subroutine and once the subroutine is done, the suspended coroutine immediately resumes execution while receiving the outputs from the subroutine.
@lefteriseleftheriades7381
@lefteriseleftheriades7381 20 күн бұрын
the pacing of the presenter is too fast
@alx9r
@alx9r 18 күн бұрын
Yup. I’m watching at 0.75x. That works ok.
Java Structured Concurrency - a Comprehensive Guide
45:49
Rock the JVM
Рет қаралды 2,8 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН
One day.. 🙌
00:33
Celine Dept
Рет қаралды 80 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 14 МЛН
So You Think You Can Hash - Victor Ciura - CppCon 2024
59:08
Project Loom - Structured Concurrency
36:24
Java
Рет қаралды 17 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19