Get the latest tech news

Depending in Common Lisp – Using the CLOS dependent maintenance protocol (2022)


Posted on August 26th, 2022. A while ago I was working on a Common Lisp library that makes use of the Metaobject Protocol.

But the strategy of trying to set the monitoring function once when a class is initialized or reinitialized falls apart when you want to support redefinition of superclasses and have their subclasses inherit changes. Interactivity is baked into the bones of the language — if we want a metaclass to really feel at home, we need to take the extra steps to make sure it works well in the face of redefinition. The designers of Common Lisp and the Metaobject Protocol had a lot of foresight and provided the tools needed to extend the language without destroying its interactivity.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of clos

clos

Photo of Common Lisp

Common Lisp

Related news:

News photo

These years in Common Lisp: 2023-2024 in review

News photo

OpenLDK: A Java JIT compiler and runtime in Common Lisp

News photo

Why I Chose Common Lisp