David Kendal

About
Home
Contact
Colophon

The T object-system in Ruby.

Sunday, 22nd January, 2012 • Permalink • Read Later

T was empirically the best Lisp (and maybe the best programming language) ever. Its facilities for object-oriented programming were a master-stroke of simplicity. (A similar facility is available in Chicken Scheme through the operations egg, if you want to have a play with it.)

Chris Neukirchen demonstrates a remarkably simple, effective implementation of T objects in Ruby. Personally, it’s not quite how I would have done it, but it’s an interesting proof-of-concept. Observe that inheritance and Rubyesque mix-ins are both provided by simple ‘joining’ of objects. There are no classes: the object system is closer to being prototype-based, but doesn’t work by cloning as most do.

The T manual is available in PDF format, but I created it from a very old LaTeX document rescued from the Web Archive. Please let me know if you notice anything missing or otherwise astray.

☜ Older Post

Dropout: Day 15.

Newer Post ☞

Dropout: Day 19.

Co-ordinates

United Kingdom

Vocation

  • Hacker
  • Essayist
  • Procrastinator

Furthermore

  • Quotes
  • Musical Taste
  • Photographs

Previously

  • January 2013
  • November 2012
  • September 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011

Copyright © David Kendal 2009–2013. Made in Great Britain and the USA.

▲ ♻ ⚙