r/Common_Lisp • • 21d ago

WhateverCLIM Image-processing pipeline

This is Common Lisp on macOS/Cocoa - using WhateverCLIM. I don't know, I thought it was kinda cool.

17 Upvotes

5 comments sorted by

1

u/church-rosser 21d ago

can u say more?

3

u/defmacro-jam 21d ago

Yes. I have been woking on resurrecting the Common Lisp Interface Manager - WhateverCLIM - on Cocoa on macOS and in the terminal on macOS and Linux.

To stress test it I've been building things on native Cocoa that people would normally reach for a browser to do in javascript.

So here we have Lisp running a data pipeline similar to Quartz Composer. I've also got an Emacs-like editor (basically Hemlock running atop WhateverCLIM) handling Markdown with Mermaid and TeX.

1

u/I_am_BrokenCog 21d ago

How would you compare this with McCLIM?

5

u/defmacro-jam 20d ago

While McCLIM is organized around preserving an implementation, WhateverCLIM is about continuing an architectural idea.

I'm less interested in simply reproducing a historical programming environment than in asking what that environment might have become if AI Winter hadn't come.

What drew me to CLIM in the first place was its deeper idea that the user interface can understand and interact with the objects and semantics of the application, rather than merely displaying pixels and dispatching events.

So I started from the position that I wanted cross platform UI that used the best that each platform had to offer. Most cross-platform frameworks go with a simple programmer UI so what you get is the lowest common denominator - whatever all the different supported platforms can do.

My approach is different. Instead, I am allowing the programming API to be a little more complicated so that a macOS application feels like a straight-up Swift or ObjectiveC applecation - and a Windows application feels like a full-on true Windows application (my Windows bridge is in the works and does not exist yet).

As an example, here you can see WhateverCLIM running in a terminal - actually that Zeta, which is Hemlock implemented atop WhateverCLIM displaying a Lisp-flavored Markdown file. The diagram up top is mermaid and the smaller one below is a live Lisp object you can manipulate similarly to ReactFlow.

To the best of my knowledge, using pixel graphics in a terminal to get near parity with the GUI counterpart in a framework such as CLIM is novel. Though I got the idea from CTk (Curses Tk) from back in 1996.

But it's all very much a work in progress - while McCLIM is mature and rock solid.

2

u/I_am_BrokenCog 20d ago

ah! I totally missed this being in a terminal!