wiki:WikiStart

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. 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 simple higher order programs. The main missing feature is lack of garbage collection or any other way to reclaim space. Once you're used up the fixed size heap the program just calls abort(). See the Release Notes for a summary of what works.

Examples

Almost Primes program and its output.

Gray Code program and its output.

List.ds and Stream.ds library modules.

There is more example code in the demo directory and base library.

Current 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.

Note that ddc-core-flow depends on limp-cbc (an ILP solver) which will take several minutes to build.

  • ddc-tools Command line tools. This is the user interface for the other packages.
  • 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 Defines the abstract syntax, type checker, and substitution operators.

Tutorials

Language

Development

How to get help

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.

Further Reading

Last modified 3 months ago Last modified on Sep 6, 2016, 10:21:31 AM