April 13, 2026 implementation meeting links

6 views
Skip to first unread message

Paolo Amoroso

unread,
Apr 13, 2026, 2:45:46 PM (4 days ago) Apr 13
to Medley Interlisp core
The links we shared in the April 13, 2026 implementation meeting:

--

Matt Heffron

unread,
Apr 13, 2026, 3:28:00 PM (4 days ago) Apr 13
to Paolo Amoroso, Medley Interlisp core

The way to handle export symbols on loading a file could be done using the string names of the symbols in the :EXPORT of DEFPACKAGE. That’s a bit awkward. The CLtL2 allows (and, apparently, common usage is) using uninterned symbols instead of strings. This was added to Medley in PR #1822 .

--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lispcore/CAGi1hzt0R89uGJHM3p6QQeNnoYK%3D_%2Bq4divH_7MRJTb0V%2B9D-A%40mail.gmail.com.

Herb Jellinek

unread,
Apr 13, 2026, 5:10:00 PM (4 days ago) Apr 13
to Matt Heffron, Paolo Amoroso, Medley Interlisp core
You can also use symbols in the keyword package, right?  That avoids potential confusion that might come with using a string name in the wrong case, for instance.  And it saves one keystroke.

            Herb

Herb Jellinek

unread,
Apr 13, 2026, 5:40:38 PM (4 days ago) Apr 13
to Matt Heffron, Paolo Amoroso, Medley Interlisp core
Nope, that turns out not to be correct.

            Herb
--
You received this message because you are subscribed to the Google Groups "Medley Interlisp core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispcore+u...@googlegroups.com.

Herb Jellinek

unread,
Apr 13, 2026, 5:59:27 PM (4 days ago) Apr 13
to Matt Heffron, Paolo Amoroso, Medley Interlisp core
Hmm, maybe keywords do work after all.  I got a mysterious error message when defining the package earlier - mysterious because Medley couldn't display the message due to a package problem.

But Medley wrote and loaded the attached file correctly in my sysout.

@matt or @paolo, care to see if you can load the attached file successfully?

            Herb
SINGLEPKG

Matt Heffron

unread,
Apr 13, 2026, 8:41:58 PM (3 days ago) Apr 13
to Herb Jellinek, Paolo Amoroso, Medley Interlisp core

That looks like it ought to work as you want…however, the keyword symbols will clutter up the KEYWORD package, while uninterned symbols don’t impact any package.

Using uninterned symbols appears to be the Common Lisp community convention, at least in the comparatively small number of such source modules I’ve looked at.

 

Matt

Paolo Amoroso

unread,
Apr 14, 2026, 4:05:35 AM (3 days ago) Apr 14
to Herb Jellinek, Matt Heffron, Medley Interlisp core
I get an error when loading the attached SINGLEPKG file:

4_ (LOAD 'SINGLEPKG)

{DSK}<home>paolo>il>SINGLEPKG.;1
In RESOLVE-EXPORT-MISSING:
<Condition XCL:EXPORT-MISSING @ 121Q,155770Q>
(problems trying to report it!)


Matt Heffron

unread,
Apr 14, 2026, 2:10:02 PM (3 days ago) Apr 14
to Medley Interlisp core
I hadn't tried to load it! AND, I tried just reading the DEFPACKAGE source in a plain text editor, and misread it.
The reason that using KEYWORD symbols fails is that it uses the actual symbol provided, unless it has no "home package" (i.e., is uninterned).
I just looked in the CLtL2, and the changes that I made to DEFPACKAGE don't quite match the stated behavior. I could modify it to match.
I still stand by my other statements:

Herb Jellinek

unread,
Apr 14, 2026, 2:53:54 PM (3 days ago) Apr 14
to Matt Heffron, Medley Interlisp core
A quick experiment I did leads me to think that keywords in the :EXPORT clause are ignored.

Using uninterned symbols works - see attached.  As for cluttering up the KEYWORD package, I don't think that's a real concern since we're talking about a small number of symbols.  If I ran some kind of keyword
GENSYM in a loop, then maybe?  But that's not what's going on here.

            Herb
--
SINGLEPKG
Reply all
Reply to author
Forward
0 new messages