encyclopegia.org

CDR coding

In computer science CDR coding is a compressed data representation for Lisp linked lists. It was developed and patented by the MIT Artificial Intelligence Laboratory, and implemented in computer hardware in a number of Lisp machines derived from the MIT CADR. CDR coding is in fact a fairly general idea; whenever a data object A ends in a reference to another data structure B, we can instead place the structure B itself there, overlapping and running off the end of A. By doing this we free the space required by the reference, which can add up if done many times, and also improve locality of reference, enhancing performance on modern machines. The transformation is especially effective for the cons-based lists it was created for; we free about half of the space for each node we perform this transformation on. It is not always possible to perform this substitution, because there might not be a large enough chunk of free space beyond the end of A. Thus, some objects will end in a real reference, and some with the referenced object, and the machine must be able to tell by reading the final cell which one it is. This can be accomplished with some inefficiency in software by the use of tagged pointers, which allow a pointer in a final position to be specifically tagged as such, but is best done in hardware. In the presence of mutable objects, CDR coding becomes more complex.…

In computer science CDR coding is a compressed data representation for Lisp linked lists. It was developed and patented by the MIT Artificial Intelligence Laboratory, and implemented in computer hardware in a number of Lisp machines derived from the MIT CADR. CDR coding is in fact a fairly general idea; whenever a data object A ends in a reference to another data structure B, we can instead place the structure B itself there, overlapping and running off the end of A. By doing this we free the space required by the reference, which can add up if done many times, and also improve locality of reference, enhancing performance on modern machines. The transformation is especially effective for the cons-based lists it was created for; we free about half of the space for each node we perform this transformation on. It is not always possible to perform this substitution, because there might not be a large enough chunk of free space beyond the end of A. Thus, some objects will end in a real reference, and some with the referenced object, and the machine must be able to tell by reading the final cell which one it is. This can be accomplished with some inefficiency in software by the use of tagged pointers, which allow a pointer in a final position to be specifically tagged as such, but is best done in hardware. In the presence of mutable objects, CDR coding becomes more complex. If a reference is updated to point to another object, but currently has an object stored in that field, the object must be relocated, along with any other pointers to it. Not only are such moves typically expensive or impossible, but over time they cause fragmentation of the store. This problem is typically avoided by using CDR coding only on immutable data structures. ==External links== L. Peter Deutsch: A LISP Machine with Very Compact Programs. IJCAI 1973, Pages 697 - 703 Greenblatt, R., LISP Machine Progress Report, memo 444, A.I.Lab., M.I.T., Cambridge, Mass., Aug. 1977. L. Peter Deutsch: Experience with a microprogrammed Interlisp system. MICRO 11: Proceedings of the 11th annual workshop on Microprogramming, November 1978, Pages 128–129 Pages 399-401

References

  1. faqs.org . retrieved 2026-11-19 source revision 1369366760 · retrieved 2026-11-18 · rev 1369366760
    Cite this reference

    MLA "faqs.org . retrieved 2026-11-19 source revision 1369366760." faqs. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1369366760. Accessed 24 November 2026.

    Chicago "faqs.org . retrieved 2026-11-19 source revision 1369366760." faqs. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1369366760.

    APA faqs. (2026). faqs.org . retrieved 2026-11-19 source revision 1369366760. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1369366760

Cite this article

MLA

"CDR coding." encyclopegia.org, 2026, https://encyclopegia.org/wiki/cdr-coding. Accessed 24 November 2026.

Chicago

"CDR coding." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/cdr-coding.

APA

encyclopegia.org. (2026). CDR coding. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/cdr-coding

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Maclisp

enwiki · references available

S-expression

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1369366760 · 0.5 · snapshot enwiki-001369366760

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.