“The definitive book on implementing an EMACS, as of a long time ago, is Craig A. Finseth's The Craft of Text Editing -or- Emacs for the Modern World The Craft of Text Editing”
作者 Craig A. Finseth 以自己关于 Emacs 类编辑器的论文为基础,系统讲解文本编辑器的内部设计,包括文本如何表示与管理、多缓冲区的编辑器结构等。内容以 Emacs 为中心,但基本思想对其他编辑器同样适用。这类专门讲编辑器实现的书很少,因此常被当作这个主题的经典参考。
每当 HN 上出现文本编辑器内部实现的讨论,就有人推荐它,称它是讲怎么实现 Emacs 的权威之作,也是少有的专讲编辑器的书;有人说即使不看代码也值得读,还有人说想写编辑器的人必读。
想写编辑器或了解编辑器内部的程序员
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1先读文本表示和缓冲区管理的部分
- 2对照自己用过的编辑器,理解各设计取舍
- 3想动手时,边读边实现一个小型编辑器
- 4书中以 Emacs 为例,其他编辑器的人只取思想
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“For learning a lot of cool stuff about implementing my best book is The Craft Of Text Editing”
“The Craft of Text Editing¹ should be required reading for everybody who wants to write a new text editor.”
“If you are interested in text editors, you should read The Craft of Text Editing (available at The Craft of Text Editing).”
“If you like this you should also read Craig Finseth's thesis in which he describes an emacs like editor.”
“Have you read The Craft of Text Editing[1]? It's very informative.”
看全部 20 条 →
“If you thought this was an interesting article, here 's the obligatory link to just about the only book on crafting a text editor, "Craft of Text Editing":”
“"The Craft of Text Editing" could also interest people who like reading about text editor internals.”
“So far I've found and enjoyed reading/watching the resources below and would love to learn more.”
“If you are interested in this kind of stuff, Craig Finseth's The Craft of Text Editing is a great read:”
“The book is worth reading even if you never touch the code:”
“I've always enjoyed Finseth's Thesis on text editing, "A cookbook for an EMACS", which he turned into a book:”
“The Craft of Text Editing book has a lot of accumulated wisdom. It is Emacs-centric, but basics are same.”
“for the text editor part, this book “The craft of text editing” was very good The Craft of Text Editing”
“finseth's book is worth reading The Craft of Text Editing”
“Its like they didn't even read it? The Craft of Text Editing”
“ITS Emacs has "glass tty" support that responded to keystrokes exactly as normal”
“I know of The Craft of Text Editing.”
“The book The Craft of Text Editing claims the gap buffer technique was first used by TECO, although this claim is given no support.”
“The question is what makes this species.”