Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/monksc/cacheskell
- Owner: Monksc
- Created: 2021-01-10T20:00:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-11T00:00:19.000Z (about 4 years ago)
- Last Synced: 2024-11-13T11:35:20.674Z (3 months ago)
- Topics: custom-language, functional-programming, haskell, interpreter, language, programming-languages, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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;```