Coder Social home page Coder Social logo

rybla / functive Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.4 MB

A simple modular extendible statically-typed symbolic programming language with dependent types. Implemented in Haskell.

License: BSD 3-Clause "New" or "Revised" License

Haskell 90.41% TeX 9.59%

functive's Introduction

Functive

A simple modular extendible statically-typed symbolic programming language with dependent types. Implemented in Haskell.

concepts

simple:

  • clean and simple "low-level" functional programming language
  • explicit abstract syntax i.e. parentheses are required
  • inspired Gallina and the ML family (but without many extras)
  • no annoying "syntactical-sugar" constructions built-in; all syntax is consistent and modular

extendible:

  • interface for easy implementations of macros and language constructs into pre-processor
  • inspired by Racket and Coq's Notation

modular:

  • straighforward module system
  • doesn't depend of file structure i.e. compilation/interpretation is done after concatenating all sourcecode together

statically-typed:

  • complete compile-time type-checking enforcement
  • (named) typed holes in the form of Assumptions

symbolic:

  • symbolic representations of values
  • if f is not defined and (f x) is evaluated, f is assumed to have the correct type and the value is the symbolic expression (f x)
  • if two functions f and g are assumed this way and then compared (e.g. f x = g x is written) they are treated as distinct since their names are distinct

dependent types:

  • type constructors e.g. list : type -> type
  • value-dependent types e.g. finite : nat -> type
  • type variables e.g. mul_identity : forall n:nat, n * 1 = n
  • explicit polymorphism e.g. empty_list : forall a:type, list a
  • infinite type hierarchy e.g. (type = type0) : type1 : type2 : type3 : ...

organization

directory description
src/ haskell source-code.
app/ haskell executable source-code.
test/ haskell unit tests.
doc/ haskell documentation.
design/ reader-friendly design details (LaTex/PDF)
examples/ example functive prorams.

building

Using stack.

  stack build

executing

Run unit tests with

  stack test

Run executable (app/Main.hs) with

  stack exec functive-hs-exe

tutorial

TODO

functive's People

Contributors

rybla avatar

Stargazers

 avatar

Watchers

James Cloos 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.