按年被提到
20192020 · 13 次2026
开源书›编程语言·No.49

Learn Rust With Entirely Too Many Linked Lists

用太多链表学 Rust
Alexis Beingessner

通过反复实现链表,实战理解 Rust 所有权与借用检查

免费阅读 ↗
被推荐 · 58 人首次 2019-03-22 · 最近 2026-07-25许可证 MIT
58不同的人
49活跃月份
20有推荐的月份
62讨论串

Alexis Beingessner 写的 Rust 教程,一步步实现各种链表,从最简单的栈到更复杂的变体,过程中讲清 Box、引用、生命周期、借用检查器,以及 unsafe。写法幽默,重点是展示为什么链表在 Rust 里是个难题以及怎么解决。它和官方的 The Rust Book 互补:后者讲有哪些特性,这本讲实战里怎么用。

HN 为什么推荐它

HN 上的人几乎都把它推荐为理解借用检查器和 Rust 引用的必读材料,也常拿它回答“为什么在 Rust 里实现链表很难”;称它是循环、动态数据结构写法的权威参考。

难度 3 / 5约 15 小时开放许可
适合谁

学过 Rust 基础、想吃透所有权的人

读之前最好知道
1Rust 基础语法
2指针与引用概念
3链表(linked list)

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先读完官方 The Rust Book 的基础部分再来
  2. 2每个链表版本自己敲一遍,并故意制造编译错误来理解提示
  3. 3先读前面几个安全版本,unsafe 部分等熟悉后再看
  4. 4遇到所有权困惑时回来重读相关章节

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
推荐danite · 2019-08

“I'd recommend people read this discussion of linked list vs array performance: Learn Rust With Entirely Too Many Linked Lists”

推荐大家读其中链表与数组性能的讨论
How can List be faster than native arrays? (2018)原评论 ↗
推荐littlestymaar · 2019-09

“It takes some time though, and this tutorial helped me a lot in the beginning: Learn Rust With Entirely Too Many Linked Lists”

称它在入门早期帮自己学会 borrow checker
推荐brundolf · 2020-08

“this is a key (and entertaining!) unofficial resource that really hammered home for me the ways that Rust is different from the C family when it comes to working with references”

称它让自己真正理解 Rust 引用与 C 系语言的差异
Rust 1.46原评论 ↗
推荐brundolf · 2020-08

“If the Book teaches you what features Rust has, this teaches you how to use Rust in practice.”

称官方 Book 讲特性,它教如何在实践中用 Rust
Bevy: A Game Engine in Rust原评论 ↗
推荐ChrisSD · 2020-10

“For the beginner there's "Learn Rust With Entirely Too Many Linked Lists"[0].”

推荐给初学者
Rust Starter Kit 2020原评论 ↗
推荐Mihalis · 2021-02

“Then there are two books by Gankra”

提到 Gankra 的两本书,推荐用来学地道的 Rust
Ask HN: Resources for Learning Idiomatic Rust?原评论 ↗
看全部 20 条 →
推荐eof · 2022-06

“Reminds me of this masterpiece of a rust tutorial; Learning Rust With Entirely Too Many Linked Lists - Learn Rust With Entirely Too Many Linked Lists”

称它是杰作级的 Rust 教程
The true cost of linked lists原评论 ↗
推荐masklinn · 2022-09

“And if you're tempted to "learn by doing" with the usual linked lists, go and read "learning rust with entirely too many linked lists": Learn Rust With Entirely Too Many Linked Lists”

劝想用链表练手学 Rust 的人先读它
Next steps for Rust in the kernel原评论 ↗
推荐kibwen · 2022-11

“When explaining why the difficulty of modeling linked lists in Rust doesn't matter, I like to share the following book”

拿它说明为什么 Rust 里链表难建模并不要紧
In defense of linked lists原评论 ↗
推荐abiro · 2022-12

“I'd recommend the Learn Rust With Entirely Too Many Linked Lists [0] tutorial as the next step. It really helps you grok the borrow checker.”

推荐作为下一步,真正帮助理解 borrow checker
Welcome to Comprehensive Rust原评论 ↗
推荐tialaramex · 2023-05

“you could do worse than begin with Aria's "Learn Rust With Entirely Too Many Linked Lists"”

推荐作为学 Rust 的起点,也说明链表为什么不好
Comprehensive Rust: course used by the Android team at Google原评论 ↗
推荐mtsr · 2023-08

“If you want to learn about this, instead of using a ‘blessed’ implementation, read “too many linked lists” Learn Rust With Entirely Too Many Linked Lists.”

推荐读它学习在 Rust 中实现树和链式结构
Why Rust helps even if you have to use a lot of `unsafe`原评论 ↗
推荐goku12 · 2023-10

“This resource deals with these topics in-depth: Learn Rust With Entirely Too Many Linked Lists”

称它深入讲解了这些主题
Was Rust Worth It?原评论 ↗
推荐Voultapher · 2024-02

“For those that insist on learning Rust by implementing a linked list there is Learn Rust With Entirely Too Many Linked Lists.”

推荐给坚持用实现链表来学 Rust 的人
Cake – C23 and Beyond (2023)原评论 ↗
推荐alilleybrinker · 2024-03

“Always worth plugging “Learning Rust with Entirely Too Many Linked Lists,” the canonical writing on the type of iterative approach for implementing data types with circular references in Rust”

称它是 Rust 中用迭代法实现循环引用类型的经典
Rust data structures with circular references (2021)原评论 ↗
推荐BonusPlay · 2024-08

“smarter sources: Learn Rust With Entirely Too Many Linked Lists (链接)”

把它当作更可靠的资料,讲 Rust 中双向链表为何难
MiniJinja: Learnings from Building a Template Engine in Rust原评论 ↗
推荐jasonthorsness · 2025-10

“I’ve been learning Rust via the book and a great article I found on linked lists [1].”

称自己靠它学链表,掌握了 lifetimes 和 borrows
Rust Contagious Borrow Issue原评论 ↗
推荐maxbond · 2025-12

“There are also project-based resources beyond Rustlings like Entirely Too Many Linked Lists[1] you might check out.”

推荐它作为 Rustlings 之外的项目式 Rust 学习资源
Ask HN: What skills do you want to develop or improve in 2026?原评论 ↗
推荐GregDavidson · 2026-07

“Learning variations of Linked Lists is where you start, e.g. Learn Rust With Entirely Too Many Linked Lists”

推荐从练习各种链表变体入手学 Rust
The AI jobs apocalypse probably isn't coming anytime soon原评论 ↗
推荐afdbcreid · 2026-07

“Here is some online content on this side of Rust:”

推荐它作为 Rust 里 unsafe、重指针一面的在线资料
Memory Safety Absolutists原评论 ↗