用 Python 为树莓派编写解释器和编译器
Writing Interpreters and Compilers for the Raspberry Pi Using Python
Anthony Dos Reis · 初版 2018 年
3人推荐
3位读者提及
7次提及
Hacker News 上怎么说
正在加载完整评论……
Writing Interpreters and Compilers for the Raspberry Pi Using Python
Anthony Dos Reis · 初版 2018 年
正在加载完整评论……
……我也打算收进我自己的书库里。多谢提醒。:) 顺便提一句,对于手头有树莓派的 Python 玩家来说,这本也是很有意思的读物,能带你深入搞懂写一个编译器到底是怎么回事——《Writing Interpreters and Compilers for the Raspberry Pi Using Python》https://www.amazon.com/Writing-Interpreters-Compilers-Raspbe...
…into these as well for my library. Thanks for the heads up. :) By the way, for the Python folks with a Pi around, this one is also an interesting read to dive into what it means to write a compiler "Writing Interpreters and Compilers for the Raspberry Pi Using Python" https://www.amazon.com/Writing-Interpreters-Compilers-Raspbe...
> 《Writing Interpreters and Compilers for the Raspberry Pi Using Python》,CreateSpace Independent Publishing Platform,2018 年 > 如果你想学习如何编写解释器和编译器,同时还想了解 Python、Python 字节码、汇编语言以及动态……
> Writing Interpreters and Compilers for the Raspberry Pi Using Python, CreateSpace Independent Publishing Platform, 2018 > If you want to learn how to write interpreters and compilers, and at the same time learn how Python, Python bytecode, assembly language, and dynamic…
Python 方面,去搞一本《Writing Interpreters and Compilers for the Raspberry Pi Using Python》读读。另外《Modern Compiler Implementation》也有一版是用 C 语言写的。
For Python grab a copy of "Writing Interpreters and Compilers for the Raspberry Pi Using Python". And there is a C version of "Modern Compiler Implementation" as well.
……编译器领域(而且说实话我的推荐反而更靠谱,因为行业专家往往会高估别人的学习能力),但我可以推荐三本书,按难度从低到高排列:Anthony J.Dos Reis 写的《Writing interpreters and compilers for the raspberry pi using python》Nystrom 写的《Crafting Interpreters》《Game Scripting Mastery》(忘了作者是谁,懒得去 Google 了)
…compiler field (and actually makes my recommendations more legit as field professionals tend to overestimate other people's ability to learn), but can recommend three books, ordered by difficulty asc: Writing interpreters and compilers for the raspberry pi using python by Anthony J.Dos Reis Crafting Interpreters by Nystrom Game Scripting Mastery (Forgot the author and too lazy to Google)
我刚给自己买了本《Writing Interpreters and Compilers for the Raspberry Pi Using Python》当圣诞礼物(主要是想深入学学树莓派的汇编)。读起来很轻松门槛不高。前半本书看得很爽,后面难度稍微提高了一点。理论讲得相对较少,作者显然是有意……
I just got myself Writing Interpreters and Compilers for the Raspberry Pi Using Python for Christmas (mainly to learn more about Raspberry Pi assembly). It's very accessible. First half of the book is a breeze, then the difficulty goes up a bit. Relatively light on theory, which is a conscious…
……PyPy、IronPython、Jython、GraalVM 上的 Python、OpenJ9 上的 Python、CircuitPython 以及大量其他尝试的全部初衷。任何懂编译器的人都知道,你可以用语言 X 来写语言 X。实际上,《Writing Interpreters and Compilers for the Raspberry Pi Using Python》干的就是这事。就算我们把 CPython 彻底干掉,也依然有大把的 Python 代码可以毫无问题地运行。
…whole goal of PyPy, IronPython, Jython, Python on GraalVM, Python on OpenJ9, CircuitPython and plenty of other attempts. Anyone that understands compilers knows one can write language X in X. In fact, "Writing Interpreters and Compilers for the Raspberry Pi Using Python" does exactly that. We can nuke CPython and there is plenty of Python code that would still run without problems.