Git Product home page Git Product logo

dex-lang's Introduction

Dex Test status

Dex (named for "index") is a research language for typed, functional array processing. The goal of the project is to explore:

  • Type systems for array programming
  • Mathematical program transformations like differentiation and integration
  • User-directed compilation to parallel hardware
  • Interactive and incremental numerical programming and visualization

To learn more, check out our workshop paper or these example programs:

Please note that Dex is an experimental research project at an early stage of development. Contributions welcome!

Dependencies

  • Install stack
  • Install LLVM 9
    • apt-get install llvm-9-dev on Ubuntu/Debian,
    • brew install llvm@9 on macOS.

Building

  • Build Dex in development mode: make
  • Run tests in development mode: make tests
  • Install a release version of Dex: make install

The default installation directory is $HOME/.local/bin so make sure to add that directory to $PATH once you install Dex. If you'd like to install it somewhere else make sure to have the PREFIX environment variable set when you run make install. For example PREFIX=$HOME make install would install dex in $HOME/bin.

While working in development mode, it is convenient to set up a dex alias (e.g. in .bashrc): alias dex="stack exec dex --".

Running

  • Traditional REPL: dex repl
  • Execute script: dex script examples/pi.dx
  • Live-updated notebook display dex web examples/pi.dx (html) or dex watch examples/pi.dx (terminal).

License

BSD-3

This is an early-stage research project, not an official Google product.

dex-lang's People

Contributors

apaszke avatar axch avatar bchetioui avatar cclauss avatar danieldjohnson avatar dougalm avatar duvenaud avatar joaogui1 avatar jyh1 avatar lancelet avatar mattjj avatar nicolasvasilache avatar oxinabox avatar peterbecich avatar philderbeast 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.