filmov
tv
CppCon 2014: Howard Hinnant 'Types Don't Know #'
![preview_player](https://i.ytimg.com/vi/Njjp_MJsgt8/maxresdefault.jpg)
Показать описание
—
--
This presentation will be based on the following paper which will be a proposal to the C++ standards committee:
This paper proposes a new hashing infrastructure that completely decouples hashing algorithms from individual types that need to be hashed. This decoupling divides the hashing computation among 3 different programmers who need not coordinate with each other:
1. Authors of hashable types (keys of type K) write their hashing support just once, using no specific hashing algorithm. This code resembles (and is approximately the same amount of work as) operator== and swap for a type.
2. Authors of hashing algorithms write a functor (e.g. H) that operates on a contiguous chunk of generic memory, represented by a void const* and a number of bytes. This code has no concept of a specific key type, only of bytes to be hashed.
3. Clients who want to hash keys of type K using hashing algorithm H will form a functor of type std::uhash to give to an unordered container.
unordered_set my_set;
--
--
*-----*
*-----*
--
This presentation will be based on the following paper which will be a proposal to the C++ standards committee:
This paper proposes a new hashing infrastructure that completely decouples hashing algorithms from individual types that need to be hashed. This decoupling divides the hashing computation among 3 different programmers who need not coordinate with each other:
1. Authors of hashable types (keys of type K) write their hashing support just once, using no specific hashing algorithm. This code resembles (and is approximately the same amount of work as) operator== and swap for a type.
2. Authors of hashing algorithms write a functor (e.g. H) that operates on a contiguous chunk of generic memory, represented by a void const* and a number of bytes. This code has no concept of a specific key type, only of bytes to be hashed.
3. Clients who want to hash keys of type K using hashing algorithm H will form a functor of type std::uhash to give to an unordered container.
unordered_set my_set;
--
--
*-----*
*-----*
CppCon 2014: Howard Hinnant 'Types Don't Know #'
CppCon 2015: Howard Hinnant “A C++14 approach to dates and times'
CppCon 2016: Howard Hinnant “Welcome To The Time Zone'
CppCon 2014: Lisa Lippincott 'How to call C libraries from C++'
CppCon 2014: Edouard Alligand 'Multiplatform C++'
Engineering Distinguished Speaker Series: Howard Hinnant
CppCon 2014: Michael Wong 'What did C++ do for Transactional Memory?'
CppCon 2014: Herb Sutter 'Back to the Basics! Essentials of Modern C++ Style'
CppCon 2014: Thomas Rodgers 'Implementing Wire Protocols with Boost Fusion'
CppCon 2014: Vincent Reverdy 'Simulating the Universe Using Modern C++'
Rebuilding Boost Date-Time for C++11 - Jeff Garland [ CppCon 2014 ]
CppCon 2014: Jason Lucas 'Polymorphism with Unions'
Concepts in 5 - David Sankel [ CppCon 2016 ]
CppCon 2014: Herb Sutter 'Lock-Free Programming (or, Juggling Razor Blades), Part II'
CppCon 2016: Matthew Bentley “Colonies, performance and why you should care'
CppCon 2014: Mauricio Carneiro 'Gamgee: A C++14 library for genomics data processing and analys...
CppCon 2014: Zach Laine 'Pragmatic Type Erasure: Solving OOP Problems w/ Elegant Design Pattern...
CppCon 2015: Feliple Magno de Almeida “Integrating generators EDSL's for Spirit X3 (WIP)'...
CppCon 2014: Paul E. McKenney 'C++ Memory Model Meets High-Update-Rate Data Structures'
Understanding &&
CppCon 2014: Alex Allain & Andrew Twyman 'Practical Cross-Platform Mobile C++ Development&a...
CppCon 2016: 'WG21-SG14 – Making C++ better for games, embedded and financial developers'...
CppCon 2014: 'Meet the Authors'
CppCon 2014: 'Grill the Committee'
Комментарии