The Imperatives Must Go! [Functional Programming in Modern C++] - Victor Ciura - CppCon 2022

CppCon October 19, 2022
CppCon Logo

CppCon

@cppcon

About

Visit cppcon.org for details on next year's conference. CppCon sponsors have made it possible to record and freely distribute over 1000 sessions from the first CppCon in 2014 to the present. We hope you enjoy them!

Video Description

https://cppcon.org/ --- The Imperatives Must Go! [Functional Programming in Modern C++] - Victor Ciura - CppCon 2022 https://github.com/CppCon/CppCon2022 Can a language whose official motto is “Avoid Success at All Costs” teach us new tricks in modern C++ ? If Haskell is so great, why hasn't it taken over the world? My claim is that it has. But not as a Roman legion loudly marching in a new territory, rather as distributed Trojan horses popping in at the gates, masquerading as modern features or novel ideas in today’s mainstream languages. Functional Programming ideas that have been around for over 40 years will be rediscovered to solve our current software complexity problems. Indeed, modern C++ has become more functional. From mundane concepts like lambdas & closures, std::function, values types and constants, to composability of STL algorithms, lazy ranges, folding, mapping or even higher-order functions in STL. Did I mention Rust yet? In this session we’ll analyze a bunch of FP techniques in C++ and see how they help make our code shorter, clearer and faster, by embracing a declarative vs. an imperative style. We’ll visit the functional parts of current STL, use algebraic data types (ADT) and learn about the new FP stuff coming in the next C++ standard, like ranges or monadic extensions to std::future, std::optional and std::expected. Brace yourselves for a bumpy ride including composition, lifting, currying, partial application, pure functions, maybe even pattern matching and lazy evaluation. --- Victor Ciura Victor Ciura is a senior software engineer on the Visual C++ team, helping to improve the tools he’s been using for years. Before joining Microsoft, he programmed C++ professionally for 20 years, designing and implementing several core components & libraries of Advanced Installer, improving the virtualization and repackaging technologies for MSI/MSIX. One of his hobbies is tidying-up and modernizing aging codebases and has been known to build open-source tools that help this process: Clang Power Tools. He’s a regular guest at Computer Science Department of his Alma Mater, University of Craiova, where he gives student lectures & workshops on using modern C++, STL, algorithms and optimization techniques. More details: @ciura_victor & https://ciura.ro & linkedin.com/victor-ciura __ Work at Hudson River Trading (HRT): https://tinyurl.com/safxfctf --- Videos Filmed & Edited by Bash Films: http://www.BashFilms.com Videos Streamed, Edited, and YouTube Channel Managed by Digital Medium: http://online.digital-medium.co.uk #cppcon #programming #cpp

You May Also Like

Craft Your Perfect Phone Stand

AI-recommended products based on this video

Loading...
Yuyul 100Pcs Harry Stickers, Vinyl Waterproof Cartoon Stickers for Skateboard, Laptop, Scrapbook, Luggage, Phone, Gift for Boys, Teens, Adults DIY Decor

Yuyul 100Pcs Harry Stickers, Vinyl Waterproof Cartoon Stickers for Skateboard, Laptop, Scrapbook, Luggage, Phone, Gift for Boys, Teens, Adults DIY Decor

(29)
$9.88
FREE delivery Sat, Jun 14 on your first order
Loading...
Paint Your Own Moon Lamp Kit, DIY 3D Moon Night Light with Space Figurines & Wooden Stand, Art Supplies Creativity Arts & Crafts Kit for Kids, Toys Girls Boy Birthday Easter Gift Ages 3 4 5 6 7 8 9 10 11 12+

Paint Your Own Moon Lamp Kit, DIY 3D Moon Night Light with Space Figurines & Wooden Stand, Art Supplies Creativity Arts & Crafts Kit for Kids, Toys Girls Boy Birthday Easter Gift Ages 3 4 5 6 7 8 9 10 11 12+

(2,309)
$19.99
FREE delivery Sat, Jun 14 on your first order
400+ bought in past month
Loading...
Lamicall Adjustable Phone Stand for Desk - 360 Rotating Foldable Cell Phone Holder Desktop Portable Cellphone Stand, Office Desk Accessories for iPhone 17 16 15 14 Pro Max, 4-10”Smartphones, iPad Mini Global Recycled Standard

Lamicall Adjustable Phone Stand for Desk - 360 Rotating Foldable Cell Phone Holder Desktop Portable Cellphone Stand, Office Desk Accessories for iPhone 17 16 15 14 Pro Max, 4-10”Smartphones, iPad Mini Global Recycled Standard

(1,781)
$13.99
FREE delivery Sat, Apr 11 on your first order
300+ bought in past month
Loading...
PlusAcc Vacuum Magnetic Car Phone Holder - Suction Cup Phone Mount 360° Rotatable Foldable Portable Strong Magnet Stand for iPhone 16/15/14/13 & Samsung in Gym, Mirror,Smooth Surface, All Vehicles

PlusAcc Vacuum Magnetic Car Phone Holder - Suction Cup Phone Mount 360° Rotatable Foldable Portable Strong Magnet Stand for iPhone 16/15/14/13 & Samsung in Gym, Mirror,Smooth Surface, All Vehicles

(966)
$32.99
FREE delivery Sat, Sep 20 on your first order
500+ bought in past month
Loading...
ZSCMALLS Portable Monitor, 15.6" FHD 1080P IPS Laptop Screen Extender with Adjustable Stand, USB-C HDMI Portable Screen, Portable Monitor for Laptop Mac PC Phone Xbox PS4/5 Switch

ZSCMALLS Portable Monitor, 15.6" FHD 1080P IPS Laptop Screen Extender with Adjustable Stand, USB-C HDMI Portable Screen, Portable Monitor for Laptop Mac PC Phone Xbox PS4/5 Switch

(748)
$105.59
FREE delivery Mon, Aug 11
100+ bought in past month
Loading...
InnoView Portable Monitor Touchscreen 15.6" 1080P 10-Point Touch Screen Monitor Portable with Protective Sleeve Built-in Stand, 1200:1 HDMI USB C Travel Monitors for Laptop, PC, Mac, Phone, Switch

InnoView Portable Monitor Touchscreen 15.6" 1080P 10-Point Touch Screen Monitor Portable with Protective Sleeve Built-in Stand, 1200:1 HDMI USB C Travel Monitors for Laptop, PC, Mac, Phone, Switch

(2,004)
$169.99
FREE delivery Mon, Aug 11
100+ bought in past month
Loading...
ScandiCasis for Samsung Galaxy S25 Protective Case, Heavy Duty [Shockproof] [Dropproof] [Dustproof] Phone Case 3-Layer Rugged Hard Cover, Purple/Pink

ScandiCasis for Samsung Galaxy S25 Protective Case, Heavy Duty [Shockproof] [Dropproof] [Dustproof] Phone Case 3-Layer Rugged Hard Cover, Purple/Pink

(101)
$12.15
FREE delivery Sat, Jun 14 on your first order
Loading...
JoyGeek 3-in-1 Magnetic Wireless Charging Station for iPhone 16/15/14/13/12 Series & Apple Watch Ultra 2/SE; 360° Adjustable Phone Stand with 18W Adapter, Compatible with AirPods Pro/3/2 Recycled Claim Standard Blended

JoyGeek 3-in-1 Magnetic Wireless Charging Station for iPhone 16/15/14/13/12 Series & Apple Watch Ultra 2/SE; 360° Adjustable Phone Stand with 18W Adapter, Compatible with AirPods Pro/3/2 Recycled Claim Standard Blended

(959)
$19.99
FREE delivery Sat, Jun 14 on your first order
Loading...
Lamicall Adjustable Phone Stand for Desk - 360 Rotating Foldable Cell Phone Holder Desktop Portable Cellphone Stand, Office Desk Accessories for iPhone 17 16 15 14 Pro Max, 4-10”Smartphones, iPad Mini Global Recycled Standard

Lamicall Adjustable Phone Stand for Desk - 360 Rotating Foldable Cell Phone Holder Desktop Portable Cellphone Stand, Office Desk Accessories for iPhone 17 16 15 14 Pro Max, 4-10”Smartphones, iPad Mini Global Recycled Standard

(1,781)
$13.99
FREE delivery Sat, Apr 11 on your first order
300+ bought in past month
Loading...
Nulaxy Dual Foldable Phone Stand for Desk, Fully Adjustable Desktop Cell Phone Holder Accessories for Office Kindle Compatible with 4-8" Mobile Devices iPhone Pro/Max/Plus, iPad Pro/Air/Mini, Black

Nulaxy Dual Foldable Phone Stand for Desk, Fully Adjustable Desktop Cell Phone Holder Accessories for Office Kindle Compatible with 4-8" Mobile Devices iPhone Pro/Max/Plus, iPad Pro/Air/Mini, Black

(65,351)
$14.99
FREE delivery Sat, Sep 20 on your first order
1K+ bought in past month
Loading...
Furiet Argyle Wallet Case for Samsung Galaxy S24 Plus/S25 Plus S24+ S25+ 5G Wrist Strap Shoulder Strap, Card Slots Zipper Purse Stand Phone Cover for S24Plus 24S + S 24 24+ S25Plus 25S 25+ White

Furiet Argyle Wallet Case for Samsung Galaxy S24 Plus/S25 Plus S24+ S25+ 5G Wrist Strap Shoulder Strap, Card Slots Zipper Purse Stand Phone Cover for S24Plus 24S + S 24 24+ S25Plus 25S 25+ White

(8)
$95.53$95.03
FREE delivery Jun 13 - 18
Loading...
Furiet Argyle Wallet Case for Samsung Galaxy S24 Plus/S25 Plus S24+ S25+ 5G Wrist Strap Shoulder Strap, Card Slots Purse, Stand Phone Cover for S24Plus 24S + S 24 24+ S25Plus 25S 25+ Women Men Black

Furiet Argyle Wallet Case for Samsung Galaxy S24 Plus/S25 Plus S24+ S25+ 5G Wrist Strap Shoulder Strap, Card Slots Purse, Stand Phone Cover for S24Plus 24S + S 24 24+ S25Plus 25S 25+ Women Men Black

(1)
$81.93
FREE delivery Jun 25 - 30
Loading...
Lamicall Adjustable Phone Stand for Desk - 360 Rotating Foldable Cell Phone Holder Desktop Portable Cellphone Stand, Office Desk Accessories for iPhone 17 16 15 14 Pro Max, 4-10”Smartphones, iPad Mini Global Recycled Standard

Lamicall Adjustable Phone Stand for Desk - 360 Rotating Foldable Cell Phone Holder Desktop Portable Cellphone Stand, Office Desk Accessories for iPhone 17 16 15 14 Pro Max, 4-10”Smartphones, iPad Mini Global Recycled Standard

(1,781)
$13.99
FREE delivery Sat, Apr 11 on your first order
300+ bought in past month
Loading...
Nulaxy Dual Foldable Phone Stand for Desk, Fully Adjustable Desktop Cell Phone Holder Accessories for Office Kindle Compatible with 4-8" Mobile Devices iPhone Pro/Max/Plus, iPad Pro/Air/Mini, Black

Nulaxy Dual Foldable Phone Stand for Desk, Fully Adjustable Desktop Cell Phone Holder Accessories for Office Kindle Compatible with 4-8" Mobile Devices iPhone Pro/Max/Plus, iPad Pro/Air/Mini, Black

(65,351)
$14.99
FREE delivery Sat, Sep 20 on your first order
1K+ bought in past month
Loading...
Lamicall Adjustable Phone Stand for Desk - 360 Rotating Foldable Cell Phone Holder Desktop Portable Cellphone Stand, Office Desk Accessories for iPhone 17 16 15 14 Pro Max, 4-10”Smartphones, iPad Mini Global Recycled Standard

Lamicall Adjustable Phone Stand for Desk - 360 Rotating Foldable Cell Phone Holder Desktop Portable Cellphone Stand, Office Desk Accessories for iPhone 17 16 15 14 Pro Max, 4-10”Smartphones, iPad Mini Global Recycled Standard

(1,781)
$13.99
FREE delivery Sat, Apr 11 on your first order
300+ bought in past month
Loading...
JoyGeek 3-in-1 Magnetic Wireless Charging Station for iPhone 16/15/14/13/12 Series & Apple Watch Ultra 2/SE; 360° Adjustable Phone Stand with 18W Adapter, Compatible with AirPods Pro/3/2 Recycled Claim Standard Blended

JoyGeek 3-in-1 Magnetic Wireless Charging Station for iPhone 16/15/14/13/12 Series & Apple Watch Ultra 2/SE; 360° Adjustable Phone Stand with 18W Adapter, Compatible with AirPods Pro/3/2 Recycled Claim Standard Blended

(959)
$19.99
FREE delivery Sat, Jun 14 on your first order
Loading...
MRGLAS 2025 Upgraded Magsafe Car Mount Vacuum Suction Magnetic Phone Holder Car, 360° Foldable Adjustable Suction Cup Phone Stand [89+LBS Suction & 2800gf Magnetic] for Car Accessories iPhone17/16

MRGLAS 2025 Upgraded Magsafe Car Mount Vacuum Suction Magnetic Phone Holder Car, 360° Foldable Adjustable Suction Cup Phone Stand [89+LBS Suction & 2800gf Magnetic] for Car Accessories iPhone17/16

(1,124)
$27.19
1K+ bought in past month
Loading...
Nulaxy Dual Foldable Phone Stand for Desk, Fully Adjustable Desktop Cell Phone Holder Accessories for Office Kindle Compatible with 4-8" Mobile Devices iPhone Pro/Max/Plus, iPad Pro/Air/Mini, Black

Nulaxy Dual Foldable Phone Stand for Desk, Fully Adjustable Desktop Cell Phone Holder Accessories for Office Kindle Compatible with 4-8" Mobile Devices iPhone Pro/Max/Plus, iPad Pro/Air/Mini, Black

(65,351)
$14.99
FREE delivery Sat, Sep 20 on your first order
1K+ bought in past month
Loading...
eazpower for Magsafe Power Bank 10000mAh, Magnetic Battery Pack Wireless, 20W PD Fast Charging, Compact Portable Charger with Built-in Cables and Stand for iPhone 16/15/14/13/12/ Apple Watch/Airpods

eazpower for Magsafe Power Bank 10000mAh, Magnetic Battery Pack Wireless, 20W PD Fast Charging, Compact Portable Charger with Built-in Cables and Stand for iPhone 16/15/14/13/12/ Apple Watch/Airpods

(330)
$39.99
PrimeFREE delivery Sat, Jun 14
200+ bought in past month