Coder Social home page Coder Social logo

ciel's Introduction

Ciel is a lisp-like language implemented in C++.  What Clojure is to
Java, Ciel is designed to be to C++.  The idea was to see how far one could
get using off-the-shelf C++ code to build a usable system.

To build Ciel you will need:

* The Boehm GC (http://www.hpl.hp.com/personal/Hans_Boehm/gc/)
* CLN, the Class Library for Numbers (http://www.ginac.de/CLN/)
* The GNU Readline Library (https://cnswww.cns.cwru.edu/php/chet/readline/rltop.html)
* g++

To build Ciel, just install libgc, libcln and librl, then make.  Ciel has
been built and run on Linux and OS X Snow Leopard.

At the moment Ciel is interpreted, but it is designed to be compiled
straighforwardly into C++, and thence into native code.  Some examples of
hand-compiled functions that can be dynamically loaded into the REPL and
run are included.

NOTES:

Lambda is spelled FN.

SETQ/SETF/SET! is spelled SET.  There is no separate definition form.

Ciel supports Scheme-style dotted argument lists, but parameters are
passed as vectors, not lists.  Vectors are denoted with square brackets,
and can be extended with the VPE (vector-push-extend) operator.

You can assign special operators.  So, for example, this works:

(set lambda fn)
(set def set)
(def vector (lambda x x))
(vector 1 2 3)

This is all not even half-baked at the moment.  I'm mostly putting this
out there to see if there is any interest in it at all.  If there is I'd
be happy to clean things up and add capabilities.

ciel's People

Watchers

Simon Haines 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.