Loading…
This event has ended. View the official site or create your own event → Check it out
This event has ended. Create your own
Please visit the C++Now website.
View analytic
Tuesday, May 13 • 4:30pm - 6:00pm
Value Semantics and Range Algorithms - Composability and Efficiency

Log in to save this to your schedule and see who's attending!

I want to write one line of code to compute the top N elements in a sequence which satisfy a specific predicate. And I want to write the same line of code regardless of whether I can do this in-place or not:

  x = std::slice(std::sort(std::filter(y, predicate)), 0, 10);

In this talk I will present a design of range algorithms which give them value semantics and show how this provides significant expressive power over other designs through composition. Finally, I will provide a reasonably in-depth treatment of the efficiency concerns this design presents and how we can overcome them and more.

Speakers
avatar for Chandler Carruth

Chandler Carruth

C++ Lead, Google
Chandler Carruth leads the Clang team at Google, building better diagnostics, tools, and more. Previously, he worked on several pieces of Google’s distributed build system. He makes guest appearances helping to maintain a few core C++ libraries across Google’s codebase, and is active in the LLVM and Clang open source communities. He received his M.S. and B.S. in Computer Science from Wake Forest University, but disavows all... Read More →


Tuesday May 13, 2014 4:30pm - 6:00pm
Flug

Attendees (51)