The Disciplined Disciple Compiler (DDC)
GitHub page: https://github.com/DDCSF/ddc
DDC is a research compiler used to investigate program transformation in the presence of computational effects. It compiles a family of strict functional core languages and supports region and effect typing. This extra information provides a handle on the operational behaviour of code that isn't available in other languages. Programs can be written in either a pure/functional or effectful/imperative style, and one of our goals is to provide both styles coherently in the same language.
State of Play
DDC is at a stage where it will compile and run programs, but there are many rough edges. The master branch on github now includes a working garbage collector that will be in the next release.
The current release is DDC 0.4.3 (September 2016).
DDC consists of the following packages. To get them all just install ddc-tools, and the others will be installed as dependencies.
- ddc-tools Command line tools. This is the user interface for the other packages.
- ddc-source-tetra Parser and desugarer for front end Disciple Tetra language.
- ddc-core-tetra Core language fragment using computation types instead of latent effects.
- ddc-core-salt Intermediate representation for C like languages, and C code generator.
- ddc-core-llvm LLVM code generator.
- ddc-core-simpl Implements simplifying code transformations and analyses.
- ddc-core Defines the abstract syntax, type checker, and substitution operators.
- ddc-build Build framework.
- ddc-driver Top-level compiler driver.
- Development Builds
- Coding Conventions
- Build Bots and Servers
- Haddock Code Documentation
- Memory and CPU Usage Profiling
- Debugging Help
- Making Patches
- Release Process
How to get help
- Ask questions on disciple-cafe at Google Groups.
- Ask in the #disciplined channel on the freenode IRC network.
How you can help
- Download the compiler, do the tutorial, write programs.
- File bug reports, fix tickets on the trac.
- Complain if you can't work something out.
- Mechanized soundness for a type and effect system with region deallocation, Lippmeier
- Rewrite Rules for the Disciplined Disciple Compiler, Robinson, UNSW 2012
- Type Based Aliasing Control for the Disciplined Disciple Compiler, slides, Ma, UNSW 2012
- Type Inference and Optimisation for an Impure World, Lippmeier, ANU 2010
- Witnessing Purity, Constancy and Mutability, slides, Lippmeier, APLAS 2009