Тёмный

C++ Coroutines From Scratch - Phil Nash - ACCU 2023 

ACCU Conference
Подписаться 15 тыс.
Просмотров 4,5 тыс.
50% 1

ACCU Membership: tinyurl.com/ydnfkcyn
Sponsored By think-cell: www.think-cell.com/accu
accu.org
C++ Coroutines From Scratch - Phil Nash - ACCU 2023
Slides: accu.org/conf-previous/accu2023/
I'll show a worked example with a "before" and "after" using C++ coroutines.
C++ 20 introduces coroutines into the language. Coroutines have the potential to greatly simplify some types of code - particularly, but not limited to, anything asynchronous in nature. But early adoption has been hindered by both the lack of library support in the standard and the inherent complexity of the feature itself (which, due to that lack of library support, you are typically more exposed to).
Now we have a bit of a “Blind men and an elephant” problem - where we’re getting disjointed glimpses of what coroutines, supposedly, are - without the big picture. I can’t claim to be able to give you a comprehensively big enough picture in a 90 minute talk, but my aim is to plot a journey through it by starting with a motivating example (a typical multiple async task problem), looking at how we might approach this without coroutines, then seeing what coroutines can do for us - and finally looking at what that might look like with library support, too.
---
Phil Nash
Phil is the original author of the C++ test framework, Catch2. As Developer Advocate at Sonar he's involved with SonarQube, SonarLint and SonarCloud, particularly in the context of C++. He's also a member of the ISO C++ standards committee, organiser of C++ London and C++ on Sea, as well as co-host and producer of CppCast.
More generally he's an advocate for good testing practices, TDD and using the type system and functional techniques to reduce complexity and increase correctness. He's previously worked in Finance and Mobile offers training and coaching in TDD for C++.
---
www.accuconference.org/
RU-vid Videos Filmed, Edited & Optimised by Digital Medium: events.digital-medium.co.uk
#accuconf #programming #coroutines

Наука

Опубликовано:

 

5 июл 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 5   
@Dino-Kupinic
@Dino-Kupinic 11 месяцев назад
what theme does he use
@antonmakeyenko4018
@antonmakeyenko4018 11 месяцев назад
There was a talk "C++ Coroutines, from Scratch - Phil Nash - CppCon 2022", where everyone complained about bringing this irrelevant domain-specific information to the talk, which obscures an understanding of coroutines and how they work. One year later and the same situation: 30 minutes are spent on this irrelevant abstractions over some financial data processing. Why?
@philnash3269
@philnash3269 10 месяцев назад
Sorry it didn't work for you. I did warn that it wouldn't work for everyone. I have had reports from people that this really helped it to click for them, so I think it was worthwhile - and in this version I did try to minimise the less universally relevant parts. To be fair the "financial data processing" specific parts took about 3.5 minutes. It was the two non-coroutine implementations that took 30 minutes. But a lot of that was common with the coroutines implementation - the point being that much of the complex part of coroutines that most people complain about was always there - but coroutines give us the opportunity to attract that further and push it into common libraries (albeit the std library is not there, yet).
@karltraunmuller7048
@karltraunmuller7048 Год назад
Although, frankly, I can no longer warm up to the notion that C++ offers more because of its lower-levelness or flexibility. I think it's just a dinosaur, really.
@sjswitzer1
@sjswitzer1 5 месяцев назад
6 minutes of intro is a bit much
Далее
C++ Coroutines, from Scratch - Phil Nash - CppCon 2022
59:22
Это спасёт камеру iPhone
0:32
Просмотров 453 тыс.
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Просмотров 27 тыс.
Blackview N6000SE Краш Тест!
1:00
Просмотров 30 тыс.