“Well, this is awesome. I see that they also have another one on Redis. That will be my next fun project.”
作者 James Smith 带读者用 C/C++ 从头实现一个简化的 Redis 服务器,网页版可免费在线读,没有开放许可,另有 epub、PDF 和纸质版。内容围绕 socket 网络编程、事件循环、协议解析和哈希表等数据结构展开,以可运行代码一步步推进。和讲原理的书不同,它要求读者自己动手写。网页版讲解偏简略,代码比文字多。
HN 上的人把它当作动手学数据库和网络编程的项目书,有人说读完下一个就做它,也有人拿它和 Codecrafters 的同类项目比较;批评是网页版讲解太少,更像代码堆砌。
想通过写项目学网络编程和服务端的人
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1准备好 Linux 或 macOS 环境,每章先自己写,再对照书里的代码
- 2网页版解释较少,遇到不懂的概念先查 socket 和 epoll 资料
- 3同一作者另有用 Go 写数据库的书,可以做完这本再接着读
- 4想看更详细的讲解,可以考虑看付费的电子书或纸质版
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“I share the same goal and am working through the material after working through Codecrafters' "Build your own SQLite" [1]. Good luck!”
“Those webpages are very sparse on actual explanation; they are mostly code dumps.”
“one thing is not clear from the website: the pages in the content section (say Build Your Own Redis with C/C++ ) are a shortened version of the pages in the epub/pdf/paperback version?”
“Yes and also Build Your Own Redis with C/C++”
“The book uses Golang for sample code, but the topics are language agnostic. Readers are advised to code their own version of a database rather than just read the text.”
看全部 9 条 →
“As for db's/other interesting things, I haven't read them myself but this site seems solid Build Your Own Redis with C/C++.”
“Build Your Own Redis with C/C++ goes a bit further, but this is really the point where I decided I wouldn't be able to stand Go.”
“In this case my use of "unsound" is somewhat stretched to "particularly easy to make subtle mistakes as a programmer":”
- The “Build Your Own Redis” Book Is Completed ↗bubblehack3r · 2023-01-29 · 1 分
- Build Your Own Database from Scratch ↗mikece · 2023-03-06 · 1 分
- Build Your Own Database from Scratch ↗ibobev · 2023-03-18 · 2 分
- The “Build Your Own Database” book is finished ↗tim_sw · 2023-04-22 · 3 分
- Building a tiny compiler from scratch is fun ↗pjmlp · 2023-05-09 · 2 分
- Building a tiny compiler from scratch is fun ↗AlexeyBrin · 2023-05-21 · 1 分