Scheme

Chicken

Installation

Ubuntu
apt install chicken-bin
Arch Linux
pacman -S chicken

Examples

Fibonacci Numbers
; Fibonacchi Numbers
(import (chicken port)
    (chicken process-context))

(define fib (lambda (n)
    (if (< n 2)
        n
        (+ (fib (- n 2)) (fib (- n 1))))))

(print (fib (eval (with-input-from-string
    (car (command-line-arguments))
    read))))

#|
    example
        interpreter(Arch Linux)
            chicken-csi -s fib.scm 30
        compile(Arch Linux)
            chicken-csc -O3 fib.scm
            ./fib 39
|#