概要
基本原理から現代的な関数型コンパイラを構築します。
言語・ランタイム計測したスター増加
- 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.
関連プロジェクトを探す
読み込み中…