Charity (programming language)

Paradigm pure functional
Developer The Charity Development Group
First appeared 1992[1]
Preview release
1.99.1 (beta)[2] / August 2000 (2000-08)
OS Linux, SunOS, Windows 9x, Windows NT[2]
License Non-commercial use only[3]

Charity is an experimental purely functional programming language, developed at the University of Calgary under the supervision of Robin Cockett. Based on ideas by Hagino Tatsuya, it is completely grounded in category theory.

Disregarding interactions with the outside world, all Charity programs are guaranteed to terminate or stay productive.

The language allows ordinary recursive data types, such as might be found in ML, which are required to be finite, and corecursive data types, which are allowed to be potentially infinite. The control structure for operating on recursive data types is primitive recursion or paramorphism, and the control structure for corecursive data types is primitive co-recursion or apomorphism. Neither control structure can operate over the other kind of data, so all paramorphisms terminate and all apomorphisms are productive.


  1. Cockett, Robin; Fukushima, Tom (May 27, 1992). "About Charity". Yellow Series Report. Calgary, Alberta, Canada: Department of Computer Science, University of Calgary (92/480/18).
  2. 1 2 "Download The Charity System". CHARITY. The Charity Development Group. October 2000. Retrieved 2011-03-06.
  3. "License Conditions". CHARITY. The Charity Development Group. September 1997. Retrieved 2011-03-06.

External links

This article is issued from Wikipedia - version of the 11/19/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.