Eclipse Lisp: Extensions to ANSI Common Lisp


The following are extensions to Common Lisp as specified by ANSI X3.226:1994 American National Standard for Programming Language Common LISP.

MetaObject Protocol

The ANSI standard encourages, but does not require, implementations to support the MetaObject Protocol (2) where possible.

Eclipse supports the complete MetaObject Protocol (MOP), as defined in The Art of the Metaobject Protocol.

A copy of the ALU web-site version of the MOP spec is included with this Eclipse distribution.


Common Lisp Interface Manager (CLIM)

The ANSI standard does not define any graphics, windowing or related utilities. The Common Lisp Interface Manager (CLIM) is a de facto industry standard for these facilities.

Like ANSI, Eclipse does not provide any graphics or windowing utilities. All input and output is text based, using the operating system provided stdin, stdout, stderr streams.

However, where Eclipse provides additional facilities beyond that defined by either ANSI or the MOP, we have chosen to implement such facilities in a manner consistent with the CLIM. These facilities are documented in the Eclipse Dictionary, and include:


Resources

Resources are useful for avoid excessive consing and garbage collectinging by explicitly maintaining pools of objects for reuse, instead of creating them when needed and relying on the garbage collector to flush them when they are no longer needed. When an object is no longer needed, it is returned to the pool of objects of that type, and recycled when a new object of that type is needed.

More often than not, this doesn't actually provide real time/space savings over the normal automatic memory management provided by the system. However, there are times when it does, and having this abstraction to uniformly model the way people think about some kinds of problems can provide clearer code.

This implementation of resources, compatible with CLIM, is based on the code written by Brad Miller of U. Rochester, and available at the Carnegie-Mellon AI Repository. This, in turn, was based on the implementation on Symbolics Lisp Machines.


CLOS Streams

The CLOS streams protocol allows applications to define their own classes of streams, using the Common Lisp Object System (CLOS). Certain generic functions are documented to be used by the standard ANSI defined I/O functions, and specialized methods for these functions may be defined for the application's stream classes.

The basic stream-based input and output protocol used by CLIM is taken from the "STREAM-DEFINITION-BY-USER" proposal to the X3J13 committee, made by David Gray of Texas Instruments. This proposal was not accepted by the X3J13 committee as part of the ANSI Common Lisp language definition, but many Lisp implementations do support it.


[Previous] [Next] [Up] [Documentation Contents] [Eclipse Home Page]