Constructing Generic Algorithms: Principles and Practice - Ben Deane - CppCon 2020

  Рет қаралды 8,348

CppCon

CppCon

Күн бұрын

cppcon.org/
github.com/Cpp...
---
"You have all these algorithms at your disposal. *Learn them.*"
-- Sean Parent, GoingNative 2013.
Great advice, and the algorithms can do a lot. But they can't do everything, and the fixed set in the standard was never meant to be the last word in every problem. Sometimes we do need to write our own solutions. What are the best practices for that?
This talk examines how to build our own algorithms. We'll start with a raw loop that solves a nontrivial problem, and turn it into a generic algorithm capable of supporting a wide variety of use cases without loss of expressivity or efficiency.
Along the way we'll consider algorithmic patterns, how to structure the
interface, how the types interact, iterator category concerns, testing, and
more. We'll look at how ranges and concepts help us to refine and focus things.
We'll also see where the existing algorithms fall short, and take a look at some non-obvious use cases, including some minor modifications or wrappings that give us extra flexibility.
---
Ben Deane
Quantlab
Denver, CO
Ben was in the game industry for 23 years, at companies like EA and Blizzard. For the last couple of years he's been working in the finance industry at Quantlab. He's always looking for useful new techniques in C++, and he geeks out on algorithms, APIs, types and functional programming.
---
Streamed & Edited by Digital Medium Ltd - events.digital-medium.co.uk
events@digital-medium.co.uk
*-----*
Register Now For CppCon 2022: cppcon.org/reg...
*-----*

Пікірлер
Back to Basics: Pointers and Memory - Ben Saks - CppCon 2020
1:00:56
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 9 МЛН
Is Functional Programming DEAD Already?
21:07
Continuous Delivery
Рет қаралды 69 М.
Why I Use C | Prime Reacts
13:00
ThePrimeTime
Рет қаралды 179 М.
Pacific++ 2018: Sean Parent "Generic Programming"
1:19:57
Pacific++
Рет қаралды 18 М.
Back to Basics: Exceptions - Klaus Iglberger - CppCon 2020
1:01:45
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 219 М.
NVIDIA’s New AI: Stunning Voice Generator!
6:21
Two Minute Papers
Рет қаралды 84 М.
IPC: To Share Memory Or To Send Messages
14:15
Core Dumped
Рет қаралды 78 М.
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН