HN 精选

Modern Dictionaries by Raymond Hettinger

SF Python
9 人推荐 · 跨 9 个月 · 2016–2025
脚本与动态语言(Python、Ruby 等)算法与数据结构
Modern Dictionaries by Raymond Hettinger

中文导读

Python 核心开发者 Raymond Hettinger 揭秘字典底层演进之路。用图解和极简纯 Python 代码,透彻拆解了 Python 3.6 是如何将哈希表重构为兼顾紧凑内存、保序及版本控制的精妙结构。

为什么 HN 推它

哈希表底层实现与 Python 字典机制的教科书级经典演讲,通俗易懂又极具深度,常年稳居 HN 工程师推荐片单。

「这是我很长时间以来看过的最具洞见的技术视频之一。」HN 网友原话:one of the most insightful videos I've seen in a long time.
英文原摘要(HackerTube / Claude 整理)

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.

HN 上的提及

strong_rec tomnipotent · 2016-12 · HN 原文
one of the most insightful videos I've seen in a long time.
rec Dowwie · 2017-02 · HN 原文
Raymond Hettinger made an interesting talk about Python's dict (hash table)
rec StreakyCobra · 2018-02 · HN 原文
is a quite interesting and technical talk about these changes
strong_rec svieira · 2018-04 · HN 原文
Offered as a favourite tech talk.
rec maxnoe · 2018-06 · HN 原文
Talk by Raimond Hettinger about the new implementation with several other implementations

相关视频