Crafting Interpreters

0
(0)

Crafting Interpreters

作者:RobertNystrom

出版社:GeneverBenning

出版年:2021-7-28

页数:639

定价:USD59.95

装帧:平装

ISBN:9780990582939

内容简介
······

Despite using them every day, most software engineers know little about how programming languages are designed and implemented. For many, their only experience with that corner of computer science was a terrifying "compilers" class that they suffered through in undergrad and tried to blot from their memory as soon as they had scribbled their last NFA to DFA conversion on the final exam.

That fearsome reputation belies a field that is rich with useful techniques and not so difficult as some of its practitioners might have you believe. A better understanding of how programming languages are built will make you a stronger software engineer and teach you concepts and data structures you'll use the rest of your coding days. You might even have fun.

This book teaches you everything you need to know to implement a full-featured, efficient scripting language. You’ll learn both high-level concepts around parsing and semantics and gritty details like bytecode representation and garbage collection. Your brain will light up with new ideas, and your hands will get dirty and calloused.

Starting from main(), you will build a language that features rich syntax, dynamic typing, garbage collection, lexical scope, first-class functions, closures, classes, and inheritance. All packed into a few thousand lines of clean, fast code that you thoroughly understand because you wrote each one yourself.

作者简介
······

About Robert Nystrom

I got bitten by the language bug years ago while on paternity leave between midnight feedings. I cobbled together a number of hobby languages before worming my way into an honest-to-God, full-time programming language job. Today, I work at Google on the Dart language.

Before I fell in love with languages, I developed games at Electronic Arts for eight years. I wrote the best-selling book Game Programming Patterns based on what I learned there. You can read that book for free too.

评论 ······

手把手教写一门语言。

阅读体验极佳。作者循循善诱,就差“手把手”教学了。基本上每一行代码都包含在书中(极少数不一致的,可以在 github 上找到)。除了正文,还有 asides、challenges、design notes,趣味性、扩展性也都有了。

非常好的书,让我这个编译器小白受益匪浅

收获很大的一本书。本书很多实现都很巧妙: Pratt parser, upvalue 实现 closure, NAN boxing。书的格式也很精巧,从 expr 到 function, closure, class 循序渐进。第一部分Interpreter 用 Java 实现,比较容易,closure 稍微复杂一些。第二部分 Compiler 用 C 实现,各种 struct 和 pointer…

点击星号评分!

平均分 0 / 5. 投票数: 0

还没有投票!请为他投一票。

推荐阅读

评论 抢沙发

评论前必须登录!

 

登录

找回密码

注册