sdiehl/write-you-a-haskell
关于
从基本原理出发构建现代函数式编译器。
编程语言与运行时实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +3
- 1个月
- +8
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Building a modern functional compiler from first principles.
Read Online:
Chapters
- Chapter 1: Introduction
- Chapter 2: Parsing (Code)
- Chapter 3: Lambda Calculus (Code)
- Chapter 4: Simply Typed Lambda Calculus (Code)
- Chapter 5: Evaluation (Code)
- Chapter 6: Hindley-Milner Inference (Code)
- Chapter 7: Design of Fun (Code)
- Chapter 8: Layout and the Extended Parser (Code)
- Chapter 9: The Renamer (Code)
- Chapter 10: Typed Core and Core Lint (Code)
- Chapter 11: Datatypes and Pattern Matching (Code)
- Chapter 12: Records (Code)
- Chapter 13: Kinds and Type Constructors (Code)
- Chapter 14: Type Classes (Code)
- Chapter 15: Monads, Do Notation and IO (Code)
- Chapter 16: Pattern-Match Compilation (Code)
- Chapter 17: The Prelude and Deriving (Code)
- Chapter 18: A-Normal Form and Join Points (Code)
- Chapter 19: Closure Conversion (Code)
- Chapter 20: Data Representation and the Runtime (Code)
- Chapter 21: LLVM Code Generation (Code)
- Chapter 22: JIT and the REPL (Code)
- Chapter 23: Optimization (Code)
- Chapter 24: A Precise Garbage Collector (Code)
- Chapter 25: Future Work
Building
To build the chapters and the book, install Rust, just, Boehm GC and LLVM 22.
The pinned book tools are installed locally by just bootstrap.
$ just bootstrap
$ just build
$ just book
To generate the pdf:
$ just pdf
Contributing
Any and all contributions are always welcome. As always, I rely on the perpetual kindness and goodwill of other compiler nerds (like you!) to help correct grammar, clarify, and fix errors.
License

This written work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. You may reproduce and edit this work with attribution.
The included source is released under the terms of the MIT License.
探索相关项目
加载中…