Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/monksc/cacheskell

This is my functional programming language that looks like Haskell but it cache every function.
https://github.com/monksc/cacheskell

custom-language functional-programming haskell interpreter language programming-languages rust rust-lang

Last synced: 29 days ago
JSON representation

This is my functional programming language that looks like Haskell but it cache every function.

Awesome Lists containing this project

README

        

# cacheskell
This is my functional programming language that looks like Haskell but it cache every function.

# Examples
In this example we will see a recursive fibanchi sequence function. It should take a long time on most
programming languages but cacheskell will cache all function calls making it relatively fast.
```
fib x
| (equal x 0) = 0
| (equal x 1) = 1
| true = (add (fib (sub x 1)) (fib (sub x 2)));

p x y
| (print x) = y
| true = y;

main
| (p (fib 10) false) = 1
| true = 0;

```