In this talk, we will explore the power of C++20 ranges and how custom views can simplify complex data transformations and improve code expressiveness. By creating reusable, lazy-evaluated views that operate on ranges, developers can avoid unnecessary intermediate containers and simplify complex data transformations. While standard views like std::views::transform and std::views::filter offer powerful tools for basic operations, custom views provide additional flexibility, allowing developers to create highly specialized transformations and handle more complex, state-dependent logic. Through real-world examples, we will demonstrate how custom views enhance performance and maintainability, showcasing how they can streamline everything from basic filtering to complex, state-dependent transformations in modern C++ applications.
Steve Sorkin has been at Bloomberg since 2019, where he is a software engineer working on Bloomberg's Execution Management System (EMSX) as part of the Portfolio Trading Engineering team. He is enthusiastic about writing clean, scalable, and maintainable code for use in low latency and high throughput applications. Prior to joining Bloomberg, Steve worked as a securities/derivatives attorney. He holds a bachelor's degree in computer engineering from Lehigh University, a master's degree from Georgia Tech, and a J.D. from Harvard Law School.