Back to Basics: Lambdas from Scratch - Arthur O'Dwyer - CppCon 2019

  Рет қаралды 77,681

CppCon

CppCon

Күн бұрын

Пікірлер: 54
@ZhaoWeiLiew
@ZhaoWeiLiew 3 жыл бұрын
Thanks so much for the back to basics series! As a beginner, it has helped me immensely in learning C++. I especially love Arthur’s talks!
@CppCon
@CppCon 3 жыл бұрын
Great to hear!
@kamilziemian995
@kamilziemian995 2 жыл бұрын
I think that everyone can learn something important from "Back to Basics" talks. Even speakers themselfs. 😉
@alexkfridges
@alexkfridges 2 жыл бұрын
This is an EXTREMELY good talk. What an absolute legend
@ChrisOffner
@ChrisOffner 2 жыл бұрын
31:45 C++ in a nutshell: "... and we can collapse it all down and replace it with one pair of every kind of brackets, and we get something called a generic lambda. Notice that our template parameter T has disappeared, and instead I'm just writing "auto". This is special syntactic sugar, this is not necessarily obvious but "auto" has something to do with type deduction, type inference. So here, when I write "auto" in the parenthesis, it's not the same "auto" that you would see somewhere else ... This is just a shorthand indicating that this lambda's call operator that takes an argument named "x" is actually a template." 😂😭
@bhaskyOld
@bhaskyOld 3 жыл бұрын
As a embedded C programmer, I find it is very interesting. Great effort to reduce the size of code segment. But I feel intimidated by the varity and vastness of coding syntax to remember in C++. C syntaxes are still very small and easy to remember. I am not sure if it is only me feeling this way.
@prem9501
@prem9501 2 жыл бұрын
No, you’re not alone. I am also an embedded C programmer. I feel the same. C++ is vast and confusing.
@vercolit
@vercolit Жыл бұрын
I agree, I came to C++ from C, since my company used it extensively. But imo, you don't need to know every single detail of C++ to use it pretty effectively. It gives a lot of freedom in designing your solution to a problem, and you generally are able to find several, which all use different features.
@hsubyron2277
@hsubyron2277 4 жыл бұрын
Friendly to c++ to a newbie!
@edinetgrunhed6000
@edinetgrunhed6000 Жыл бұрын
finally a clear and concise explanation
@jvsnyc
@jvsnyc 3 жыл бұрын
At 22:30 I understand the eye rolls some emit when they hear others say "Aren't lambdas just new syntax for function pointers?" -- maybe approximately if no captures take place, otherwise, no.
@asifrizwan42
@asifrizwan42 2 жыл бұрын
Nicely explained, especially for c programmers. Clear and simple way to understand lambdas.
@佐邱鸣
@佐邱鸣 5 жыл бұрын
Loud and clear!
@strakhov
@strakhov 3 жыл бұрын
Excellent talk, thank you!
@CppCon
@CppCon 3 жыл бұрын
Glad it was helpful!
@dayumnson9769
@dayumnson9769 4 жыл бұрын
great talk, finally somewhat understanding lambdas. thank you!
@idanbismut2954
@idanbismut2954 3 жыл бұрын
Awesome talk !! good explaining, very clear
@CppCon
@CppCon 3 жыл бұрын
Glad it was helpful!
@tysontakayushi8394
@tysontakayushi8394 3 жыл бұрын
Wow! Thanks a lot! Now I understand lambdas.
@CppCon
@CppCon 3 жыл бұрын
You are most welcome
@27harishvk
@27harishvk 11 ай бұрын
crisp.. no nonsense... just what is required to know lambda.
@ArpitAgarwal1
@ArpitAgarwal1 4 жыл бұрын
this was an excellent talk. Thanks
@vadymsenkiv6087
@vadymsenkiv6087 2 жыл бұрын
Great talk, thanks!
@CppCon
@CppCon 2 жыл бұрын
Glad you enjoyed it!
@rastaarmando7058
@rastaarmando7058 4 жыл бұрын
bro, you're incredible!
@kamilziemian995
@kamilziemian995 2 жыл бұрын
23:25 This explains well, why I abhor implicit conversion in C++.
@flyer0014
@flyer0014 3 жыл бұрын
Great talk
@raviayyagari9718
@raviayyagari9718 10 ай бұрын
Question - why Recursive Lambdas was left out ? Another excellent talk Arthur. I have been using Plusme analogy whenever I get stuck
@chrissherlock1748
@chrissherlock1748 3 ай бұрын
C++ 23 will likely allow them
@dacodastrack7271
@dacodastrack7271 5 жыл бұрын
Awesome thanks!!
@ifay1
@ifay1 4 жыл бұрын
excellent talk!
@jonnyabatti5120
@jonnyabatti5120 2 жыл бұрын
they seem quite useful but incredibly hard to read or interpret sometimes.
@anoopsrana
@anoopsrana 2 жыл бұрын
Errata @22:01 . The code shown at 22:01 is ill-formed.
@kamilziemian995
@kamilziemian995 2 жыл бұрын
20:30 Why this code is written using stdio.h and printf, that are taken stright from C?
@numv2
@numv2 4 жыл бұрын
Excellent
@heater5979
@heater5979 4 жыл бұрын
Are people really expected to be able to write code with all this syntactic/semantic complexity ? How many years are they expected to study C++ before they can do anything?
@jvsnyc
@jvsnyc 3 жыл бұрын
Having watched some other Arthur O'Dwyer cppcon talks I thought you were being defeatist, but dang, this is for sure a "watch three times" video. Hats off to anyone who didn't know this already that learns everything on one viewing.
@jorenheit
@jorenheit 3 жыл бұрын
Need... to.... resist...
@bharat101976
@bharat101976 5 жыл бұрын
There are type error at 13:28. vector v is undefined. This is shelf.
@LemonChieff
@LemonChieff 5 жыл бұрын
It's slideware but yeah… Guess it's an oversight. It happens.
@milan_shah
@milan_shah 3 жыл бұрын
0:15 could someone please share the feedback site? I can't see it in the description. Thank you!
@SamWhitlock
@SamWhitlock 3 жыл бұрын
I think this was just for the conference attendees
@kamilziemian995
@kamilziemian995 2 жыл бұрын
11:35 As person whoes learn lambdas in Lisp, when I hear something like "Lambda is conceptualy like instance of the class" I cringe.
@JohnWasinger
@JohnWasinger 3 жыл бұрын
18:04 Many redundant shorthands
@pruibiebehastoet1914
@pruibiebehastoet1914 3 жыл бұрын
At 39:00, you mention [this,&] and [this,=], but it does not compile on a recent gcc compiler (11)
@animetexture7564
@animetexture7564 2 жыл бұрын
well that's expected
@jeffreyli1871
@jeffreyli1871 3 жыл бұрын
the puzzle is not correct,g value is 11 all along
@kamilziemian995
@kamilziemian995 2 жыл бұрын
I enjoyed Arthur O'Dwyer's talk, but I think lamdas design in C++ is mediocre at best.
@kamilziemian995
@kamilziemian995 2 жыл бұрын
This talk is great, but lambdas notation in C++ is awful. For me it is such a big step back from the Lisp family.
@zzzXopHeTzzz
@zzzXopHeTzzz 3 жыл бұрын
Great talk!
@huang2004
@huang2004 2 жыл бұрын
great talk! Thanks!
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
C++ Lambda Idioms - Timur Doumler - CppCon 2022
1:04:45
CppCon
Рет қаралды 53 М.
CppCon 2019: Jason Turner “The Best Parts of C++"
58:36
CppCon
Рет қаралды 92 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 341 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН