
优美的 Racket
Beautiful Racket
Matthew Butterick · 初版 2017 年
44人推荐
47位读者提及
51次提及
为什么值得读
- 聚焦于建立小型 DSL 来解决问题的独特思考方式
- 借助 Racket 语言工具包,能极其快速地上手实践
- 非常适合作为探索语言构建与高阶抽象的入门书
如何用 Racket 创建你自己的编程语言(免费在线书籍)。
Hacker News 上怎么说
正在加载完整评论……

Beautiful Racket
Matthew Butterick · 初版 2017 年
如何用 Racket 创建你自己的编程语言(免费在线书籍)。
正在加载完整评论……
Racket Scheme 和 SICP 是很好玩的入门方式,尤其如果你对 CS 和编程的理论概念感兴趣,比如高阶编程和抽象。 Racket 的文档非常棒,比如看 https://docs.racket-lang.org/quick/index.html ……而且很多人创建了在线资源,把 SICP 适配到 Racket,还有其他学习文本。我喜欢《Beautiful Racket》……
Racket Scheme & SICP is a fun way to start playing, especially if you are into theoretical concepts of CS and programming, like higher order programming and abstraction. The documentation for Racket is excellent, see e.g. https://docs.racket-lang.org/quick/index.html ... and many people have created online resources to adapt SICP to Racket, as well as other learning texts. I like Beautiful Rack
我大概会从用 Racket 开始(Racket 是 scheme,scheme 是 lisp),它有一整套用于构建语言的工具包。比如 Arc 就是这么写的。通常这些是 lisp 风格的语言,但没理由非得是。起点:http://beautifulracket.com/stacker/ 或 https://www.hashcollision.org/brainfudge/ 这会让你快得离谱地上手,并且给你 GC 之类的东西……
I'd probably start by using Racket (Racket is a scheme is a lisp) which has a whole toolkit for language building. Arc is written this way, for instance. Often these are lispy languages but there is no reason they have to be. A starting point: http://beautifulracket.com/stacker/ or https://www.hashcollision.org/brainfudge/ That will get you started rediculously quickly and give you things like GC
我真的很喜欢这本书,强烈推荐。 我唯一的抱怨是,因为它太有针对性了(你是在写一门编程语言,它想让你很快达到目标),它抽象掉了很多东西,如果你要做的不只是跟着这本书走,那些东西你都需要知道。比如,你写的很多代码会以 #lang br 开头,而不是通常的 Racket……
I really like this book and highly recommend it. My only complaint is that because it is so directed (you're writing a programming language and it wants to get you there very quickly) it abstracts a lot of stuff that you'll need to know if you're doing anything other than following this book. For instance, a lot of the code you write will start with #lang br Instead of the usual Racket
过去一周左右我一直在啃《Beautiful Racket》[1]。太棒了。如果你对这类东西感兴趣,我强烈推荐。这本书聚焦于一种思维方式,即构建小型领域特定语言来解决你的问题。太容易了。 Racket(如果你不知道它是什么)只是一个 lisp,但标准库包含了一个……
I've been working my way through Beautiful Racket [1] over the last week or so. It's been awesome. If this kind of thing is of interest to you, I highly recommend it. It's a book focused on a way of thinking that involves building small domain-specific languages to solve your problems. It's so easy. Racket (if you're not aware of what it is) is just a lisp, but the standard library includes an in
你觉得 https://beautifulracket.com/ 怎么样?这不正是你想要的吗? 你似乎在说,我希望有一本关于 X 的书,但关于 X 只有这本书。你还想要什么?我不是在反问,你还希望看到哪些额外的东西被涵盖?
What do you think of https://beautifulracket.com/ ? Isn't it exactly what you're asking for? You seem to say, I wish there was a book on X, but there is only this book on X. What more do you want? I don't mean that rhetorically, what additional things would you like to see covered?
我一直在读 http://beautifulracket.com/,它是一本非常好的解释器入门书。
I've been reading http://beautifulracket.com/ and its a really good introduction on making interprets.