Code Monkey home page Code Monkey logo

bidi's Introduction

Checking Dependent Types with Normalization by Evaluation (Swift Version)

I'm translating David Christiansen's bidirectional typechecking Haskell example into Swift. Why would I do such a thing? It's not because Swift is especially well-suited to this task! I want to learn about type checking in dependently typed languages, and I want to learn more about Swift, so, well, why not?

This project is an incomplete work in progress.

David said

Please feel free to use or adapt [the examples] for your own purposes.

But he didn't specify a particular license. So I'm posting this version under the MIT license.

Running the code

Install dependencies

(You only need to do this once.)

If you don't already have the Swift command-line tools, install them via:

$ xcode-select --install

You will need swift-format. I installed this via Homebrew, as follows, but any method of installation should work so long as it ends up on your PATH

$ brew install swift-format

Run the tests

$ make test

...and, that's it! There is no executable for now, it's just library code.

bidi's People

Contributors

craigstuntz avatar

Watchers

 avatar

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.