awesome-compilers1
curated list of awesome resources on Compilers, Interpreters and Runtimes
https://github.com/eric-erki/awesome-compilers1
Last synced: 5 days ago
JSON representation
-
Blogs
-
Educational and Toy Projects
- Eli Bendersky
- John Regehr
- Krister Walfridsson
- Lambda The Ultimate
- LLVM Developers' Meetings
- LLVM Weekly - Weekly newsletter about LLVM.
-
-
Communities
-
Educational and Toy Projects
- /r/Compilers - Subreddit community about the theory and development of compilers.
- /r/ProgrammingLanguages - Subreddit community that is dedicated to discussion of programming languages, programming language theory, design, their syntax and compilers.
-
-
Compilers and Interpreters
-
Educational and Toy Projects
- Akilang - A compiler for a simple language, built with Python and LLVM
- amacc - Small C Compiler generating ELF executable for Arm architecture.
- HN
- Black - Scheme interpreter for the Reflective Programming Language "Black", by Kenichi Asai's.
- GitHub Mirror
- C4 - C Lang in 4 Functions.
- HN
- CarpVM - Experimental VM implementation in C.
- Charly - Interpreter for a dynamically typed language written in Crystal.
- Dale - Lisp-flavoured C: a system programming language.
- EasyLang - Easy Programming Language / VM.
- Eschelle - Open source cross platform multi-paradigm language with VM & JIT
- Gecho - Simple-stack language implementation in C.
- gocaml - Minimal functional programming language implementation in Go and LLVM.
- gone - Compiler for a tiny programming language called Gone, implemented using Python 3.6, SLY and llvmlite. Developed as part of the January 2018 [Write a compiler course](http://www.dabeaz.com/compiler.html), under the supervision of David Beazly.
- Hython - Haskell-powered Python 3 interpreter.
- llgo - Go frontend for LLVM written in Go.
- MAL - Clojure-inspired Lisp interpreter implemented in 64 languages.
- MetaScala - Metacircular JVM implementation in Scala.
- mini-js - Experimental self-hosted JavaScript compiler in 1K LoC.
- MunVM - Lua VM & Compiler in C.
- MY-BASIC - An embeddable BASIC dialect interpreter in C with modern paradigms.
- oberonc - A single pass, self-hosting compiler for the Oberon-07 programming language. It targets the JVM.
- Poprc - Compiler for the Popr Language.
- PyCOOLC - Compiler for the COOL Programming Language written in Python 3.
- RabbitVM - RISC-based VM implementation in C.
- StackVM - Virtual Machine with an integrated VRAM display.
- stack_cpu - Stack-machine simulator.
- The Super Tiny Compiler - Tiny educational compiler project in JavaScript.
- HN
- tinyc.c - Tiny-C language compiler in C.
- tisp - "Time is Space" Programming Language Interpreter.
- Ultra Tiny Compiler - Another tiny compiler in less then 90 lines of code.
-
Serious Projects
- Babel.js - Next-generation JavaScript Compiler.
- BOLT - Binary Optimization and Layout Tool.
- ChezScheme's Compiler - ChezScheme Language Compiler.
- ELENA Compiler - Elena programming language.
- Eta' Compiler - JVM-based Compiler for the Eta Programming Language.
- Frege's Compiler - JVM-based Compiler for the Frege Programming Language.
- Gluon's Compiler - Embedded Language Compiler written in Rust.
- HHVM - Virtual Machine for running programs written in Hack and PHP.
- Lily's Interpreter
- Lua's Interpreter - Official Lua Language Interperter.
- Lua's Annotated Source Code - Annotated source code of the Lua Programming Language Interpreter v5.1.4.
- Mirah's Compiler - JVM-based Compiler for the Mirah Programming Language.
- Nim's Compiler
- P Lang - The P Programming Language Runtime.
- Red's Compiler
- Roslyn - The .NET "Roslyn" Compiler Platform.
- Simple-MSIL-Compiler - C compiler that compiles to CLR.
- TypeScript's Compiler
- Wren's Compiler
- Zig's Compiler - Zig Language Compiler.
-
-
Learning
-
Articles
- A Tourist’s Guide to the LLVM Source Code
- Accidentally Turing Complete
- Part 1 - An Interpreter
- Part 2 - An x64 JIT
- Part 3 - LLVM
- Part 4 - In Python
- ALIVe: Automatic LLVM InstCombine Verifier
- Graal and Truffel - Obscure research project could radically accelerate innovation in programming language design.
- How to Compile with Continuations
- Interpreter, Compiler and JIT
- Introducing the B3 JIT Compiler
- LLVM Architecture - Chapter from the book Architecture of Open Source Applications.
- LLVM for Graduate Students - Introduction to doing research with the LLVM compiler infrastructure.
- Pratt Parsers: Expression Parsing Made Easy
- Rust Compiler Walk-Through
- Rust's Incremental Compilation
- Rust’s Upcoming MIR
- The Memory Models that Underlie Programming Languages
-
Books
- Computer Systems: A Programmer’s Perspective - General treatment of Computer Systems including Compilers, Interpreters and Runtimes.
- Elements of Computing Systems - How to build a computer from Nand Gates all the way to Compilers and Operating Systems.
- Structure and Interpretation of Computer Programs - Study the building blocks of computation using Scheme by building a Scheme interpreter in a Scheme!
- HTML5/EPUB version
- Basics of Compiler Design - Provides a short treatment of the basic concepts.
- Beautiful Racket - How to make your own Programming Language with Racket.
- Build Your Own Lisp - Learn C and build your own Lisp Programming Language in 1000 LoC.
- Compilers: Principles, Techniques and Tools - The Dragons Book. A classic textbook on Compiler Construction.
- Crafting Interpreters - An all-stop-shop for learning (nearly) everything you need to learn to build an interpreted, full-featured, efficient scripting language.
- GitHub Repo
- HN
- Create Your Own Programming Languauge - Example-driven approach to building your own programming language with video tutorials and source code projects.
- HN
- Engineering a Compiler - The modern textbook on Compilers Construction, covering SSA-Form and recent research on Code Generation.
- Essentials of Programming Languages - Fundamental concepts of programming languages with a focus on Semantics, Interpretation and CPS (Continuation Passing Style).
- Language Implementation Patterns - Learn the patterns behind building programming languages and build an interpreter yourself, using ANTLR.
- Modern Compiler Implementation in ML - Build a compiler using ML (MetaLanguage) with a textbook that has one of the best coverage on all compiler stages. The book comes with a reference compiler implementation to guide your software development process.
- MCI in C
- Programming Language Pragmatics - Integrated treatement of language design and implementation, the examples feature famous architectures like ARM and x86 64-bit.
- Programming Languages: Application and Interpretation - Excellent introduction to the subject that uses an incremental approach to building programs. The mistakes are included too to highlight key concepts.
- Programming Languages: Theory and Practice - Collected lecture notes for the _Programming Languages_ course taught at Carnegie Mellon University, most suitable as an introductory text on the subject.
- Project Oberon - The design of an operating system and compiler.
- 2013 Edition
- The BEAM Book - Description of the ERTS (Erlang Runtime System) and the BEAM Virtual Machine.
- Virtual Machines - Good book on how to build Virtual Machines especially tailored for the topic of building Programming Languages.
- Virtual Machines: Versatile Platforms for Systems and Processes - Key textbook on the subject of Virtual Machines which examines virtual machine technologies across the disciplines that use them, e.g.: OS and Programming Languages.
- Write a Compiler in Go - Well-known introduction to the Go programming language and its ecosystem through building a Compiler project.
- Write an Interpreter in Go - Successor of the "Write a Compiler in Go" book, but this one builds an interpreter project instead.
- Writing Compilers and Interpreters: A Software Engineering Approach - How to build Compilers using Java, this book is tailored for the working Software Engineer.
- Using C++
- Writing Interpreters and Compilers for the Raspberry Pi Using Python - If you want to learn how to write interpreters and compilers, and at the same time learn how Python, Python bytecode, assembly language, and dynamic typing work, this is the book for you.
- Advanced Compiler Design and Implementation - In-depth treatement of advanced design topics such as: Intermediate Representation, SSA, Code Optimization and the various processor architectures.
- Advanced Design and Implementation of Virtual Machines - Step-by-step hollistic introduction to the design of Virtual Machine architectures, topics and algorithms. Contains illustrated figures and implementations for the algorithms in the book.
- Advanced Topics in Types and Programming Languages - Intensive study of Type Systems, covering topics such as, but not limited to: Precise Type Analyses; Type Systems for Low-Level Languages and Advanced Techniques in ML-style Type Inference..
- A Retargetable C Compiler: Design and Implementation - Examines the design and implementation of Icc, a production-quality, retargetable compiler, designed at AT&T Bell Labs for the ANSI C programming language.
- Building an Optimizing Compiler - Fills the gap in the domain of code optimization. This book provides a high level design for a thorough optimizer, code generator, scheduler and register allocator for a generic modern RISC processor.
- Compiling with Continuations - Introduction to CPS (Continuation-Passing Style) as an Intermediate Representation in Compiler for doing optimizations and program transformations.
- Design Concepts in Programming Languages - Systematic exploration of techniques and ideas used in Programming Language Design, covers topics such as: Operational and Denotational Semantic techniques, Dynamic Semantic techniques and Static Semantic techniques.
- Instruction Level Parallelism - This book precisely formulates and simplifies the presentation of Instruction Level Parallelism (ILP) compilation techniques.
- Linkers and Loaders - Definitive text on the compile-time and runtime processes of linking and loading.
- Optimizing Compilers for Modern Architectures - Optimizing program generation based on recent gains and breakthroughs in modern high-performance CPU architectures.
- Parsing Techniques: A Practical Guide - Definitive guide on parsing algorithms and techniques, also contains an introduction to Formal Grammar and Parsing Theory.
- 1st Edition, PDF
- The Garbage Collection Handbook: The Art of Automatic Memory Management - The living-classic and definitive text on the topic of Garbage Collection, also covers hardware-based optimizations in light of modern advances in CPU architectures.
- The Implementation of Functional Programming Languages - Classic textbook on implementing Functional Languages, covers Structured Types, Pattern Matching Semantics, Lambda Calculus Transformation, Polymorphic Type Checking and many other topics.
- The SSA Book - The only in-depth study of SSA-form (Static Single Assignment Form) in book format.
- Types and Programming Languages - Comprehensive introduction to the topic of Type Systems and Programming Languages from a Type-Theoretic perspective.
- Warren's Abstract Machine: Prolog in Haskell - Introduction to WAM from Logic Programming in Prolog.
-
Community Discussions
- Can we stop recommending the Dragon Book, please? - StackExchange thread criticising the [Dragons Book](https://www.amazon.com/dp/0321486811) in favor of alternatives.
- What is difference between an LL and Recursive Descent parser?
- @HN - Article discussions on HN and Reddit.
- How to Write a Compiler - Article discussion on Reddit.
- How to Write a Very Basic Compiler
- How to Write a Prolog Interpreter in a Purely Functional Language
- Implementing Type Inference
- I want to build a VM, any good references?
- Resources for Amatuer Compilers Writers
- What are the good open source implementations of Java Virtual Machine?
- What are the latest research trends in Compilers and PLs
-
Courses
- Compilers Construction, Cambridge - Introduction to compiler construction course from the University of Cambridge.
- Compiler Construction for Undergrads, RICE University - Introduction to compiler construction and language translators course from the RICE University.
- YouTube - Introduction to Compilers theory and construction course from Stanford.
- Design and Construction of Compilers, University of Texas - Design and construction of compilers including lexical analysis, parsing, code generation techniques, error analysis and simple code optimizations.
- DSL Design and Implementation Summer School - Summer School program on the topics of DSL Design and Implementation hosted by the EPFL University.
- Foundations of Programming Languages - Concepts that underlie the design, definition, implementation and use of modern programming languages from a formal standpoint.
- Nand2Tetris: How to Build a Computer from First Principles, Part 2 - This 2nd part of the Nand2Tetris course covers basic language design and elementary compiler construction concepts in addition to many other topics on a basic level.
- NPTEL's Principles of Compiler Design Course - Introductory course from NPTEL on Compiler Design.
- NPTEL's Compiler Design Course - Slightly more advanced course than their Principles of Compiler Design course, covers SSA Form to a good degree.
- YouTube Video Playlist
- Programming Languages: Part A, by Grossman - Part 1 of a 3-part course series to the basic concepts of programming languages, with a strong emphasis on functional programming.
- Programming Languages: Part B, by Grossman - Part 2 of a 3-part course series to the basic concepts of programming languages, with a strong emphasis on functional programming.
- Programming Languages: Part C, by Grossman - Part 3 of a 3-part course series to the basic concepts of programming languages, with a strong emphasis on functional programming.
- Types, Logic, Semantics, and Verification from Oregon University's Summer School - Summer School program that consists of 80 minute lectures presented by internationally recognized leaders in programming languages and formal reasoning research.
- Virtual Machines and Managed Runtimes, UCB CS294 - Introductory course on Virtual Machines and Managed Runtimes from the University of Berkeley.
- Virtual Machines Summer School 2016 (VMSS 2016) - VMSS is a Summer School program that aims to give an overview of the field, targeted at early career researchers.
- YouTube Videos Playlist
-
Papers
- A Brief History of JIT Compilation, J. Aycock
- A Flexible Prolog Interpreter in Python, C. Bolz & M. Leuschel
- A Graph Higher-Order IR, R. Leißa, M. Koster & S. Hack
- A Micro-Manual for LISP - Not the Whole Truth, J. McCarthy
- Neat and nice typeset
- A Prolog Interpreter in Python, C. Bolz
- A Simple Multi-Processor Computer Based on Subleq, O. Mazonka, A. Kolodin
- An Evil Copy: How the Loader Betrays You - About security issues related to Dynamic Loading.
- An Incremental Approach to Compiler Construction
- Compiler Construction Using Scheme, E. Hilsdale, J. Ashley, R. Dybvig & D. Friedman
- Compiling with Continuations: Continued, A. Kennedy
- Definitional Interpreters for Higher-Order Programming Languages, J. Reynolds
- Draining the Swamp: Micro Virtual Machines as Solid Foundation for Languauage Development, K. Wang, Y. Lin, S. Blackburn, M. Norrish & A. Hosking
- Engineering Definitional Interpreters, J. Midtgaard, N. Ramsey, B. Larsen
- Garbage Collection in an Uncooperative Environment, H. Boehm, M. Weiser
- Machine Code Obfuscation via Instruction Set Reduction and CFG Linearization, C. Jonischkeit
- `MOV` is Turing-Complete, S. Dolan
- HN
- Nanopass Framework for Commercial Compiler Development, A. Keep & R. Dybvig
- Nanopass Framework for Compiler Education, D. Sarkar, O. Waddell & R. Dybvig
- Notes on Graph Algorithms Used in Optimizing Compilers, C. Offner
- Packrat Parsing Thesis on PEG, B. Ford
- PEG-based transformer provides front-end, middle-end and back-end stages in a simple Compiler, I. Piumarta
- Pycket: A Tracing JIT for a Functional Language
- PyPy’s Approach to VM Construction, A. Rigo & S. Pedroni
- RABBIT: A Compiler for SCHEME, G. Steele
- Simple and Efficient Construction of SSA Form
- SSA-based Register Allocation, S. Hack & G. Goos
- The Essence of Compiling with Continuations, C. Flanagan, A. Sabry, B. Duba & M. Felleisen
- The Page-Faults Weird Machine: Lessons in Instruction-less Computation, J. Bangert, S. Bratus, R. Shapiro, S. Smith
- Trace-based JIT Compilation for Lazy Functional Languages, T. Schilling
- Using Datalog with Binary Decision Diagrams for Program Analysis, J. Whaley, D. Avots, M. Carbin & M. Lam
- C. Bolz’s Research Publications
- Compilers Lab at Saarland University
- Kenichi Asai
- Packrat Parsing (PEG) Papers and Resources
-
Specifications
-
Talks and Conferences
- Curry On! Conference - Programming Languages Conference.
-
Programming Languages
Categories
Sub Categories
Keywords
compiler
11
language
10
programming-language
8
interpreter
6
rust
4
parser
3
scripting-language
3
parsing
3
x86-64
3
repl
3
x86
3
arm
3
javascript
3
c
3
arm64
2
haskell
2
systemz
2
jit
2
ast
2
sparc
2
functional
2
security
2
reverse-engineering
2
powerpc
2
mips
2
embeddable
2
framework
2
python
2
php
2
lisp
2
java
2
assembler
2
webassembly
2
c-sharp
2
c-plus-plus
2
formal-verification
2
peg
2
zero-copy
1
aarch64
1
parser-combinators
1
systematic-testing
1
corefx
1
dotnet
1
dotnet-core
1
dotnetcore
1
state-machine
1
runtime
1
csharp
1
robotics
1
roslyn
1