Beginners Guide to C++'s Best Kept Secret -- std::algorithm - Mike Shah - C++ on Sea 2022

  Рет қаралды 1,823

cpponsea

cpponsea

Күн бұрын

Пікірлер: 8
@MikeShah
@MikeShah 2 жыл бұрын
Thank you again C++ on Sea for having me! It was a truly wonderful event!
@pUrbanNinja
@pUrbanNinja 2 жыл бұрын
Super smooth talk! I was really surprised that you went down the optimization path at all! For some reason, quite some students and non-cs researchers still assume that the STL implementations perform worse than raw loops. My favourite debunking-example is a dot product of 2 large vectors using inner_product, which gets vectorized without issues.
@rohrbold
@rohrbold 2 жыл бұрын
Super important topic. Thanks for the presentation Mike.
@cpponsea
@cpponsea 2 жыл бұрын
Thanks for watching!
@MikeShah
@MikeShah 2 жыл бұрын
Thank you!
@loicballeydier5546
@loicballeydier5546 2 жыл бұрын
I would love some slides about how c++20 ranges can simplify and boost performances of the code you finally get. But great talk !
@MikeShah
@MikeShah 2 жыл бұрын
Great idea! Maybe next year's talk I can do a deep dive or some more shorter videos on my channel in the meantime.
@ABaumstumpf
@ABaumstumpf Жыл бұрын
it is strange seeing somebody saying that "i++" might cause additional copies and being slower - and then changes "[i]" to "at(i)" - which is slower and at that a significantly bigger impact than "i++" can ever be. And i would say that using "at" is a codesmell here: When iterating over a container of known size, and at that iterating over all elements, there is no uscase in which "at" does actually do anything useful. And iterators: They certainly are not easy to maintain. They are already a royal pain just to write out correctly and the introduce pointers on everything. For us if you write an iterator-loop like that it would be rejected in the code-review cause they serve no purpose here, do not make it easier to read, write not maintain and obfuscate the important parts. (And they are also more error-prone if you are doing any element-manipulation). Ranges has (nearly) done what iterators should have from the start (just that the syntax and behaviour has many pitfalls and in C++20 several of the most important functionalities had been "forgotten" ).
Computing in the 1960s - Walter E Brown - C++ on Sea 2022
54:59
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 681 М.
How to OPTIMIZE your prompts for better Reasoning!
21:17
Sam Witteveen
Рет қаралды 14 М.
The Programming Language Guide
24:25
Traversy Media
Рет қаралды 513 М.
Reinforcement Learning - My Algorithm vs State of the Art
19:32
Pezzza's Work
Рет қаралды 154 М.
The Rust Survival Guide
12:34
Let's Get Rusty
Рет қаралды 178 М.