From STL to Ranges: Using Ranges Effectively - Jeff Garland - CppCon 2019
ฝัง
- เผยแพร่เมื่อ 26 ส.ค. 2024
- CppCon.org
Discussion & Comments: / cpp
Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/Cpp...
-
From STL to Ranges: Using Ranges Effectively
This course provides a survey of C++20 ranges and their application. Ranges are the largest revamp of the Standard Template Library (STL) in 20 years and will impact daily C++ programming dramatically. Some of the changes seem minor, but full utilization of ranges is much more transformational to coding practice.
The tutorial goes beyond the basics to explore what's behind the library. For example, understand the key differences between algorithms and views and when to apply them. Chock full of example code this tutorial will bootstrap programmer's usage of std::ranges.
-
Jeff Garland
Jeff Garland has worked on many large-scale, distributed software projects over the past 25+ years. The systems span many different domains including telephone switching, industrial process control, satellite ground control, ip-based communications, and financial systems. He has written C++ networked code for several large systems including the development high performance network servers and data distribution frameworks.Mr. Garland’s interest in Boost started in 2000 as a user. Since then he has developed Boost.date_time, become a moderator, served as a review manager for several libraries (including asio and serialization), administered the Boost wiki, and served as a mentor for Google Summer of Code. Mr. Garland holds a Master’s degree in Computer Science from Arizona State University and a Bachelor of Science in Systems Engineering from the University of Arizona. He is co-author of Large Scale Software Architecture: A Practical Guide Using UML. He is currently Principal Consultant for his own company: CrystalClear Software, Inc.
-
Videos Filmed & Edited by Bash Films: www.BashFilms.com
*-----*
Register Now For CppCon 2022: cppcon.org/reg...
*-----*
very great talk!!!!
In case the slide at 24:12 is confusing, the 7 is NOT printed, the slide is incorrect. I typed in the code into VS 2019, because I could not think of a reason for the 7 being printed, and wanted to make sure I understood. Great video, I am learning a lot. Going to try out some of these in VS. Kind of exciting to have more power in C++20. Just a bit of learning curve on some of the stuff. But simpler than a lot of online examples, which did a poor job of showing the elegance of C++20 ranges.
Thanks!
Good talk. For the last question, if you take a moment to think about it instead of trying to answer instantly, like if everything had to be rushed out in that circumstance, and which never works out, I think the answer is not join_view but rather the pipe operator on filter views.
Seems a span is a bit like a Python slice via subspan()?
Starts at 10:20
Coding guideline: Disregard coding guidelines.
That pipe syntax is a horrible idea. We're finally getting some progress toward putting the horrible template syntax behind us and now we're introducing new departures from the conventional syntax for no reason whatsoever.