Giter VIP home page Giter VIP logo

Ditto

Build Status

Ditto is a super kawaii dependently typed programming language. It is super kawaii due to its small and straightfoward implementation, and adorable syntax ;)

Taking advantage of its simple implementation, we use Ditto as a vehicle for experimenting with type system features. Despite being implemented simply, Ditto is a high-level language that supports terse programs, rather a core language necessitating verbose encodings.

Put together, these things make Ditto a good language for research. When confronted with a simple versus performant implementation decision, we tend to choose the former. For now, we are concerned with type checking code rather than running code.

Ditto

Features

  • Open universe of types.
  • Dependent pattern matching.
    • Searches all possible coverings.
    • Enhanced catch-all clauses (novel).
  • Implicit arguments.
    • Miller-pattern unification.
    • Constraint postponement.
  • Mutual definitions.
    • Functions.
    • Induction-recursion.
    • Induction-induction.
  • Eta-equality for functions.
  • Interactivity via command-line interface.
    • Holes.
    • Case splitting.
  • Tracking user vs machine-introduced variables.

Missing Features

  • Universe hierarchy (currently Type : Type)
  • Termination checker
  • Positivity checker

Development

  • Make sure you have Stack installed.
  • Build the project with stack build.
  • Run the tests with stack test.
  • Work interactively with stack ghci.
  • Run the current version of the binary with stack exec -- dtt -t PATH/TO/Foo.dtt.

Installation

  • Make sure you have Stack installed.
  • Make sure $HOME/.local/bin is in your $PATH.
  • Run stack install in this directory.
  • Run dtt -t PATH/TO/Foo.dtt to type check a file.

ditto's Projects

ditto icon ditto

A Super Kawaii Dependently Typed Programming Language

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.