[plt-scheme] FFI and pointer manipulations

From: Christopher Armstrong (radix at twistedmatrix.com)
Date: Sun Feb 11 13:58:09 EST 2007

On 2/11/07, Jim Blandy <jimb at red-bean.com> wrote:
> Many systems with copying GC's represent "large" objects (big strings;
> long vectors) as small header objects that hold a pointer to the large
> body of the object.  The header is allocated in the ordinary heap, and
> does get copied by collections; the body is allocated elsewhere, and
> stays put.

Yeah. The blame is clearly on the GC, and so it seems the GC should
become more flexible to allow specifying different strategies for
different objects (or arenas of objects). This FFI is only going to be
useful for simple wrappers until this happens.

Christopher Armstrong
International Man of Twistery

Posted on the users mailing list.