Giter Club home page Giter Club logo

funl's Introduction

The FunL Programming Language

Short description

FunL is a function-level language as defined by John Backus in his 1977 ACM Turing Award lecture, "Can Programming Be Liberated From the von Neumann Style?" Function-level languages are intended to "make programming sufficiently cheaper or more reliable to justify the cost of producing and learning to use them." (Backus 1977)

FunL can be best described by what it lacks:

  • Variables
  • Multiple scopes
  • State

Because of this, it is very easy to take part of a FunL program and insert it into another FunL program without worry. FunL has an algebra of functions that allows for direct substitution of function definitions into function application, as well as comparing the equality of two functions.

All values in FunL are also functions, allowing the composition of any combination of values and functions in the language.

For a more full description, see http://github.com/cndreisbach/funl/blob/master/description.md.

Example

length = map:1 | fold:+

length:[1, 2, 3] // => 3

// Decomposition of the above
// (map:1 | fold:+):[1, 2, 3]
// (fold:+):(map:1):[1, 2, 3]
// (fold:+):[1:1, 1:2, 1:3]
// (fold:+):[1, 1, 1]
// +:[+:[1, 1], 1]
// 3 

funl's People

Contributors

cndreisbach avatar

Stargazers

bgr avatar Andrew Gwozdziewycz avatar Alan Dipert avatar Fogus avatar Devin Walters avatar  avatar

Watchers

James Cloos avatar

funl's Issues

Maps are not implemented

funl> {"a" 1, "b" "two", "c" 3}
Error: Not implemented yet
 in map at line 1, column 2
 in application at line 1, column 2
 in program at line 1, column 1

FunL is impractical without side effects

If we cannot even print, then that's pretty silly. FunL is supposed to be impractical, but I'd like to write a toy program in it.

We need a syntax for side effects and some way to implement new ones.

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.