2009/9/12 <wagwilk@...>:
> I don't see a lisp solution to this. Real pointers are too dangerous
> considering the bit-mangling Lisp does to support dynamic types, and a
> user-created psuedo-pointer structure would be application specific -- tied
> to the deserializers and backing store they had used.
I might try using SAPs: accessor for a pointer would return a SAP,
SAP+ and SAP- provide arithmetic, and SAP-REF-FOOs provide different
widths of access with offsets.
I would caution you mildly against SB-INT:MAKE-STATIC-VECTOR, though:
it is unsupported and liable to be deprecated sooner or later. Also,
the address space it can allocate to is quite small -- limited to the
static portion of the Lisp heap.
Cheers,
-- Nikodemus
|