u/mttdin r/ProgrammingLanguages • Recommends
Iterators and Ranges: Comparing C++ to D to Rust - Barry Revzin - CppNow 2021
39K subscribers • 42 videos on Hallway • Conference channel
Intermediate. Assumes working knowledge.
8.8K views5 years ago1 recommendation
Programming languagesSystems programmingC++RustLanguage design and type systems
Barry Revzin compares the iteration and range models of C++, D, and Rust, exploring their design trade-offs.
#Boost #Cpp #CppNow Slides: cppnow.org/history/2021/talks/ CppNow Website: cppnow.org CppNow Twitter: @CppNow Streamed & Edited By Digital Medium Ltd: events.digital-medium.co.uk ------ The STL introduced an iterator abstraction into C++ that generalized the notion of pointer and allowed for the ability to have arbitrary sequences that could be generically traversed and have algorithms performed on them. But the C++ iterator-pair model isn't the only possible approach to solving this problem. The D Ranges model, while isomorphic to the C++ one, is still quite distinct and has some interesting characteristics. Many languages (including Rust and Python) have an entirely different iteration model from the C++/D one. Are D Ranges better or worse than C++ Ranges? Is Rust's better than C++'s? Does it depend on what your definition of is is? The goal of this talk is to examine the problem space and find out. ------ Barry Revzin Jump Trading Barry is a senior C++ developer at Jump Trading in Chicago, a research and technology driven trading firm. After programming for many years, he got really into the nuances and intricacies of C++ by being unreasonably active on StackOverflow (where is he is the top contributor in C++14, C++17, and C++20). A lot of his C++ knowledge comes from just answering questions that he doesn’t know the answers to, especially when he answers them incorrectly at first. His C++ involvement escalated when he started attending standards committee meetings in 2016, having written dozens of papers for C++20 and now C++23. You might know him from such features as , pack expansion in lambda init-capture, explicit(bool), conditionally trivial special member functions and, hopefully coming soon to a C++ near you, deducing this. Outside of the C++ world, Barry is an obsessive swimming fan. He writes fun data articles for SwimSwam and also does analysis for the DC Trident, a professional swim team with multiple Olympic Gold Medalists (including Katie Ledecky and Natalie Coughlin). ------ May 1, 2022 - May 6, 2022 - Aspen, Colorado ------------------------- --- *--* ---u/mttdin r/ProgrammingLanguages • Recommends