Giter Site home page Giter Site logo

clio's Introduction

Clio Logo FOSSA Status

Clio

Clio is a pure functional lazy-evaluated programming language targeting decentralized and distributed systems. It is made to take advantage of multiple CPUs and CPU cores (parallelism) by default, to run on clusters and on the cloud easily.

Clio compiles to JavaScript. This makes Clio fast, easy to port and easy to extend. It gives Clio a free JIT compiler, a powerful VM and access to lots of existing libraries. It enables Clio to run in the browser and on servers, and anywhere JavaScript can run.

Clio Logo

Project Status

Clio is in active development and it's not ready for production. It is in a highly experimental state, although some stable demonstrations and test programs exist, it is not recommended to use in production.

Links

Examples

You can check the examples in examples repository or you can check Clio on Rosetta Code.

Quick Guide

Clio isn't recognized by github as a language and it doesn't have correct syntax highlighting on github, please visit Clio Quick Guide web-page for the quick guide, the Clio editor and embedded browser compiler.

The above quick guide isn't complete, a better documentation for Clio will be hosted on docs.clio-lang.org soon.

Features and Work in Progress

  • Pure
  • Noise-free
  • Lazy evaluation
  • Lazy data types
  • Asynchronous by default
  • Functional programming paradigm
  • Pipes and flows
  • Function overloading
  • Custom data types
  • Functions are micro-services
  • Network-based foreign function interface
  • Tensor/array indexing and programming
  • Cloud/decentralized/distributed modules and functions
  • Event-based flow control

Some of the ideas in the list are currently implemented, some are implemented but need fixing, some others are planned and will be in the core, and there are ideas that were fully implemented in the core, but commented out in the code since they will be migrated in modules or completely removed.

For a list of what's done and what's planned you can check Clio on Trello.

Project Goals

  • Encourage writing clean code
  • Encourage writing interconnected micro-functionalities instead of big whole programs
  • Make it easier to write decentralized and distributed code
  • Take advantage of multi-core CPUs and multiple CPUs by default
  • It should be easy to port existing code, and it should be easy to port Clio code to different platforms
  • Avoid spaghetti code and callback hell

Command Line Usage

To install, download or clone this repository:

git clone https://github.com/clio-lang/clio

You need NodeJS [latest version] and Clio dependencies. To install Clio dependencies in the project directory, do

npm install

Then link clio bin

npm link

to run a Clio program do

clio run path/to/file.clio

to highlight a Clio file do

clio highlight path/to/file.clio

to print the abstract syntax tree

clio ast path/to/file.clio

and to compile Clio code to JS do

clio compile path/to/source.clio path/to/output.js

by default Node puts a limit on memory usage, to change this limit please refer to this guide.

Developing

Clio uses gulp as task runner. Simply doing

gulp bundle

Will generate the minified browser bundle and the size graph.

License

FOSSA Status

clio's People

Contributors

fossabot avatar pouya-eghbali 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.