[armedbear-devel] Idea to fix ticket 79: identical uninterned symbols coalesced in fasl

Erik Huelsmann ehuels at gmail.com
Sat May 1 23:54:26 UTC 2010


Hi Alessio,

On Sun, May 2, 2010 at 12:59 AM, Alessio Stalla <alessiostalla at gmail.com> wrote:

>> Here's my idea to resolve this situation, in a simple step-by-step
>> representation:
>>
>> 0. Install a dispatch macro function (in some unused dispatch macro
>> character); something like #n#
>> 1. Adjust DUMP-FORM to generate the dispatch output for uninterned symbols
>> 1. Create all uninterned symbols at the start of the FASL (filling a
>> table with them)
>> 2. Let the reader resolve the uninterned symbols by looking up in the table
>>
>> This approach has the nice side-effect that we can eliminate the need
>> for the anonymous package - although we will need to maintain a table.
>> It will resolve the issues we currently have with the coalesced
>> symbols. It uses standard Lisp infrastructure; no heavy code changes
>> required.
>>
>> Comments?
>
> Sounds like a good plan. However, probably a custom reader macro can
> be avoided in favor of something like #.(sys::fasl-uninterned-symbol
> key-in-the-table).

Well, I liked the idea of the terseness of the dispatch macro. That's all.


Bye,

Erik.




More information about the armedbear-devel mailing list