Skip to content
0:00 / 0:00

#c++20#ranges#views

Understanding the Filter View to Use It Right - Nicolai M. Josuttis - ACCU 2024

ACCU Conference

20K subscribers • 33 videos on Hallway • Conference channel

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Nicolai M. Josuttis, C++ standards committee member
  • An opinion. It argues one side of a question engineers disagree on.

Advanced. Deep dive for people who know the field.

4.5K views2 years ago1 recommendation

Programming languagesC++Language design and type systems

Nicolai Josuttis details the surprising pitfalls, compile-time errors, and runtime issues of the C++20 filter view design.

ACCU Membership: tinyurl.com/ydnfkcyn --- Understanding the Filter View to Use It Right - Nicolai M. Josuttis - ACCU 2024 --- Filtering the elements of a collection is one of the most important applications of dealing with ranges and views. Unfortunately, the filter view (available since C++20) is one of the most suprising C++ standard views. Even with simple use cases you can easily have: - Unexpected functional behavior - Suprising compile-time errors with cryptic error messages - Fatal runtime errors (without even noticing them) There are (more or less) good reasons for the design of the filter view. However, for a successful filtering of elements knowing all these pitfalls is key. Listen and learn things you would not expect but have to know when using the filter views and views in general. The talk will demonstrate all the issues with simple real-work examples and also explain the (more or less wise) motivation for the design. Slides: accu.org/conf-previous/accu2024/ Sponsored By think-cell --- Nicolai M. Josuttis Nicolai Josuttis (www.josuttis.com) is well-known in the community for his authoritative books and talks. For more than 20 years he has been a member of the C++ Standard Committee. He is the author of several worldwide best-sellers, including: - C++20: The Complete Guide - C++17: The Complete Guide - C++ Move Semantics: The Complete Guide - The C++ Standard Library: A Tutorial and Reference - C++ Templates: The Complete Guide (w/ David Vandevoorde & Doug Gregor) --- The ACCU Conference is the annual conference of the ACCU membership, but is open to any and all who wish to attend. The tagline for the ACCU is 'Professionalism in Programming', which captures the whole spectrum of programming languages, tools, techniques and processes involved in advancing our craft. While there remains a core of C and C++ - with many members participating in respective ISO standards bodies - the conference, like the organisation, embraces other language ecosystems and you should expect to see sessions on C#, D, F#, Go, Javascript, Haskell, Java, Kotlin, Lisp, Python, Ruby, Rust, Swift and more.The ACCU Conference is a conference by programmers for programmers about programming. Discounted rates for members. ACCU Membership: tinyurl.com/ydnfkcyn 2024 Program: accu.org/conf-previous/accu2024/ accu.org accuconference.org/ mastodon.social/@ACCUConf linkedin.com/showcase/accu-conference/ bsky.app/profile/accuconf.bsky.social facebook.com/accuorg reddit.com/r/ACCUConf/ --- YouTube Videos Filmed, Edited & Optimised by Digital Medium: events.digital-medium.co.uk #accuconf #programming #cplusplus #cppprogramming #softwaredeveloper

Why it's here

1 person recommends this

What people say. Recommended as a critical look at C++20 ranges design flaws and the complexities of standard library features.

Moments people linked to

u/Shnatselin r/rust • Recommends

On “C++ Must Become Safer”

> We have standardized complete bullshit. Oh, is this recorded? Beep. 1:23:30: But I don't know how typical that kind of design is to C++, and I don't want to dunk on the language just because someone is bringing up valid issues. I know I could cherry-pick some funny stuff about Rust if I tried.
17View on Reddit