HackerTube

Modern Dictionaries by Raymond Hettinger

SF Python9 HN recommenders · recommended in 9 months, 2016–2025
YouTube
talk · intermediate · evergreen · 2016–2025 on HN

Python core developer Raymond Hettinger explains how Python's dictionary implementation evolved into the compact, ordered dict in Python 3.6. He uses pictures and small bits of pure Python, and covers key-sharing, compaction and versioning.

HN treats it as the definitive, engaging talk on hash table internals and Python dict ordering, and recommends it in tech-talk lists.

12 comments from Hacker News

@AndrewOMartin2022-03 · in “Pre-Allocated Lists in Python”

▶ this video Modern Dictionaries by Raymond Hettinger The official description of this talk is below, but personally, I'd watch any video with "Raymond Hettinger" in the title. > Python's dictionaries are stunningly good. Over the years, many great ideas have combined together to produce the modern implementation in Python 3.6. This fun talk is given by Raymond Hettinger, the Python core developer responsible for the set implementation and who designed the compact-and-ordered dict implemented in CPython for Python 3.6 and in PyPy for Python 2.7. He will use pictures and little bits of pure python code to explain all of the key ideas and how they evolved over time. He will also include newer features such as key-sharing, compaction, and versioning. This talk is important because it is the only public discussion of the state of the art as of Python 3.6. Even experienced Python users are unlikely to know the most recent innovations.

Strongly recommends View on HN
@svieira2018-04 · in “Ask HN: What is your favourite tech talk?”

Python dictionaries: A Confluence of Great Ideas (also known as Modern Dictionaries) by Raymond Hettinger ▶ this video

Strongly recommends View on HN
@tomnipotent2016-12 · in “Hash tables with open addressing”

Raymond Hettinger gave a presentation a few weeks ago on the evolution of the Python dict implementation - one of the most insightful videos I've seen in a long time. ▶ this video

Strongly recommends View on HN
@samwho2023-06 · in “Hashing”

You're welcome! I deliberately didn't go in to that for a few reasons. 1. It would have made this article very, very long. 2. It's a bit out of scope for an article on hashing. 3. I think I might give hash maps their own article in future. Hash maps are fantastically deep. So many different ways to do it. You'll find a lot of material online but I'd recommend Raymond Hettinger's talk on how Pythons hash map data structure has evolved over time: ▶ this video .

Recommends View on HN
@bbrik2020-02 · in “Python dicts are now ordered”

As far as I know, it was implemented by Raymond Hettinger. This is a very interesting talk about the new tech: ▶ this video

Recommends View on HN