Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tiancaiamao/cora

Genius programmer should write his own lisp!
https://github.com/tiancaiamao/cora

cora lambda lisp programming-language

Last synced: 6 days ago
JSON representation

Genius programmer should write his own lisp!

Awesome Lists containing this project

README

        

# The cora programming language

Inspired by scheme, shen, femtolisp and many more...

## kernel lambda

Minimal special forms:

- quote
- lambda
- if
- do

`set` can be a function rather than special form.

`let` is a macro.

(let a 3 b 5 ...)

## proper tail call

proper tail call, as scheme does.

## partial apply

```lisp
((+ 3) 4)
```

## pattern match

```lisp
(match (cons 1 2)
(cons a b) a)
```

## The `func` macro

```lisp
(func map
f [] => []
f [x . y] => [(f x) . (map f y)])
```

Nowadays any cats and dogs write their own programming languages, mostly sucks. Many of them are too small to be even a **finished** toy, many lack features, worsely, many choose the wrong features.

However, it's still an important practice for a true lisp hacker to keep inventing his own one, adapting the language to his own taste.

Among the most important features, lisp1, of course. Then comes proper tail call and partial apply, for functional programming goodness. Keep the kernel language miminal is also important, I think.