graphical untyped lambda calculus interactive interpreter

Latest on Hackage:

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

GPL-2 licensed by Claude Heiland-Allen
Maintained by

GULCII is an untyped lambda calculus interpreter supporting interactive modification of a running program with graphical display of graph reduction.

There are three variants of lambda abstraction: lazy, strict, and copy:

> x . f x x -- x is evaluated lazily with sharing > x ! f x x -- x is evaluated strictly and shared > x ? f x x -- x is copied before any evaluation

There is additional syntax sugar for natural numbers and lists, using

> [0,1,2,3]

There is a small standard library based loosely around the Haskell Prelude, with additions geared towards MIDI generation for live-coding music, implemented using a mechanism similar to Debug.Trace.trace:

> x y . { print : x } y

Quick start:

:load mars

If you have Pure-data and Timidity, try:

timidity -iA -Oj &
pd -alsamidi ~/.cabal/share/gulcii- &
gulcii | pdsend 8765

See also: live-sequencer which has many more features (but no sharing during evaluation).

Used by 1 package:
comments powered byDisqus