T (programming language) explained

T
Paradigm:Multi-paradigm

object-oriented, imperative, functional, meta

Family:Lisp
Designers:Jonathan A. Rees
Norman I. Adams
Developers:Jonathan A. Rees
Norman I. Adams
Latest Release Version:3.0
Typing:dynamic, strong
Discontinued:Yes
Platform:Cross-platform
Operating System:Cross-platform
File Formats:-->
Influenced By:Scheme
Influenced:EuLisp, Joule

T is a dialect of the Scheme programming language developed in the early 1980s by Jonathan A. Rees, Kent M. Pitman, and Norman I. Adams of Yale University as an experiment in language design and implementation.[1]

Rationale

T's purpose is to test the thesis developed by Guy L. Steele Jr. and Gerald Jay Sussman in their series of papers about Scheme: that Scheme may be used as the basis for a practical programming language of exceptional expressive power, and that implementations of Scheme could perform better than other Lisp systems, and competitively with implementations of programming languages, such as C and BLISS, which are usually considered to be inherently more efficient than Lisp on conventional machine architectures. Much of this occurs via an optimizing compiler named Orbit.

T contains some features that modern Scheme lacks. For example, T is object-oriented, and it has first-class environments, called locales, which can be modified non-locally and used as a module system. T has several extra special forms for lazy evaluation and flow control, and an equivalent to Common Lisp's setf. T, like Scheme, supports call-with-current-continuation (call/cc), but it also has a more limited form called catch. From the T manual, a hypothetical implementation of [[cons]] could be:

(define-predicate pair?) (define-settable-operation (car pair)) (define-settable-operation (cdr pair)) (define (cons the-car the-cdr) (object nil ((pair? self) t) ((car self) the-car) ((cdr self) the-cdr) (((setter car) self new-car) (set the-car new-car)) (((setter cdr) self new-cdr) (set the-cdr new-cdr))))

This example shows that objects in T are intimately related to closures and message-passing. A primitive called join puts two objects together, allowing for something resembling inheritance.

Ports

T was ported to many hardware platforms and operating systems, including:[2]

DEC 3100 (pmax), SGI IRIS

SunOS 4 and above, Solaris, Unix on Connection Machine 5

Ultrix

External links

Notes and References

  1. Book: Slade, Stephen . The T programming language : a dialect of LISP . Prentice-Hall . Englewood Cliffs, NJ . 1987 . 978-0-13-881905-7 . 16094677 .
  2. Web site: T Revival Project . Campbell . Taylor `Riastradh' . 7 April 2006 . Mumble.net . Internet Archive Wayback Machine . https://web.archive.org/web/20070103020434/http://mumble.net/~campbell/t/t.html . 2007-01-03 . 2018-11-18 . live .