本文介绍了Haskell 编译器是如何工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里可以获得一些描述 Haskell 编译器实际工作方式的论文/文档/任何内容?我读了很多 GHC 的文档,但在头疼之后就停止了.因此,一些不需要博士学位就可以理解并且不是以您应该已经熟悉的风格编写的内容会更可取.如果它真的很长并且需要一些时间来理解它,那也不是问题.

Where can I get some paper/doc/whatever which describes how a Haskell compiler actually works? I read quite a few of the docs of GHC, but stopped after getting a headache. So, something which doesn't require a PhD to understand it and isn't written in the You're-supposed-to-be-already-familiar-with-it style would be preferable. It's not a problem if it's really long and takes some time to understand it though.

PS:最有趣的是关于 GHC,但一切皆有可能.

PS: Most interesting would be something about GHC, but anything is ok.

推荐答案

从马嘴里得到答案!Simon Peyton Jones(GHC 向导)写了一本书,解释了如何实现函数式编程语言.它现在已绝版,可免费在线获取:http://research.microsoft.com/en-us/um/people/simonpj/papers/pj-lester-book/

You can get an answer from the horse's mouth! Simon Peyton Jones (GHC wizard) wrote a book explaining how to implement functional programming languages. It's available for free online since it's now out of print: http://research.microsoft.com/en-us/um/people/simonpj/papers/pj-lester-book/

当然,自这本书出版以来,GHC 已经发生了变化,但它仍然非常重要.

Of course, GHC has moved on since the book was written, but it's still very relevant.

这篇关于Haskell 编译器是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 14:12