Pixie (programming language)

Pixie is a lightweight Lisp suitable for both general use as well as shell scripting. The standard library is heavily inspired by Clojure as well as several other functional programming languages. It is written in RPython and relies on PyPy's a GC and tracing JIT.

Pixie was inspired by Clojure but it is not a port, it has significant differences.

Features

  • Immutable datastructures
  • Protocols first implementation
  • Transducers at-the-bottom
  • Includes a tracing JIT
  • Foreign function interface

Examples

;;  This code adds up to 10000 from 0 via calling a function that takes a variable number of arguments.
;;  That function then reduces over the argument list to add up all given arguments.

(defn add-fn [& args]
  (reduce -add 0 args))

(loop [x 0]
  (if (eq x 10000)
    x
    (recur (add-fn x 1))))