Logo

Write You a Haskell: Building a modern functional compiler from first principles

Small book cover: Write You a Haskell: Building a modern functional compiler from first principles

Write You a Haskell: Building a modern functional compiler from first principles
by

Publisher: StephenDiehl.com
Number of pages: 246

Description:
We will build a small functional language called Fun which is a partial Haskell 2010 toy language; complete with a parser, type inference, datatypes, pattern matching, desugaring, typeclasses, higher-kinded types, monadic IO, arbitrary-rank polymorphism, records, Core language, STG intermediate language, lazy evaluation, interpreter, native code generator, a runtime, and several optimization passes.

Home page url

Download or read it online for free here:
Read online
(online html)

Similar books

Book cover: Let's Build a Scripting Engine-CompilerLet's Build a Scripting Engine-Compiler
by
This is a very hands-on approach to crafting a compiler and it does not follow any pre-defined set of rules. It is the author's intent to take some of the mystery out of what goes into making a working scripting engine - compiler.
(6761 views)
Book cover: Lightweight Compiler TechniquesLightweight Compiler Techniques
by - Lulu Press
This book explains compiler construction in simple terms and by means of practical examples, but without avoiding the fundamental theory. It does not stop where other books do, and takes you on a tour through the whole compilation process.
(8075 views)
Book cover: Implementing Programming LanguagesImplementing Programming Languages
by
This book follows a theory-based practical approach, where theoretical models serve as blueprint for actual coding. The reader is guided to build compilers and interpreters. The solutions are moreover portable to different implementation languages.
(6542 views)
Book cover: Using and Porting the GNU Compiler Collection (GCC)Using and Porting the GNU Compiler Collection (GCC)
by - Free Software Foundation, Inc.
This manual documents how to run, install and port the GNU compiler, as well as its new features. It corresponds to GCC version 3.0. Only the options for the C, Objective-C, and C++ compilers and those of the GCC core are discussed.
(12024 views)