Pixie (programming language)

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

Lua error in package.lua at line 80: module 'strict' not found.

Pixie
Paradigm functional
Designed by Timothy Baldridge
First appeared 2015; 10 years ago (2015)
Stable release 0.1 / April 2, 2015; 9 years ago (2015-04-02)
Platform Cross-platform
License LGPL
Filename extensions .pxi
Website github.com/pixie-lang/pixie
Influenced by
Clojure, Lisp (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 GC and tracing JIT.

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

Features

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))))

See also

References

<templatestyles src="Reflist/styles.css" />

Cite error: Invalid <references> tag; parameter "group" is allowed only.

Use <references />, or <references group="..." />

External links