[cmucl-imp] motifd isn't 64-bit kosher

Richard M Kreuter kreuter at progn.net
Sun Jul 6 23:18:23 UTC 2014


Richard M Kreuter writes:
> Seems like there are two options...
> 
> A. Change the wire protocol to accomodate 64-bit integers.
> 
> B. Synthesize 32-bit identifiers for instances of the offending types.

Well I tried B. Attached is a proof of concept that suffices to run the
example in the doc and the programs in INTERFACE. Nevertheless, it's not
particularly good; I'm just out of time for today. Obvious problems in
the current code:

1. It's a doubly linked alist associating pointers with 32-bit integers.

2. It looks like nothing ever gets removed from the alist. (I don't yet
   understand how memory is managed in motifd. I tried to hook an
   "unintern" function into every place where XtFree is called, but I
   don't see the linked list shrinking in some (unattached) instrumented
   code.)

3. I'm not certain that I've caught all the places where motifd hands
   out pointers to Lisp.

If anyone is particularly interested in maintaining the thing, I ought
to have time next weekend to spruce it up.

(And if anyone knows where to find non-trivial example clm programs to
exercise it against, that could help.)

Regards,
Richard



More information about the cmucl-imp mailing list