[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no constants please

This page is part of the web mail archives of SRFI 50 from before July 7th, 2015. The new archives for SRFI 50 contain all messages, not just those from before July 7th, 2015.



   Date: Mon, 5 Jan 2004 08:51:41 -0800 (PST)
   From: Tom Lord <lord@xxxxxxx>

   In short, the FFI requires a root set of unbounded size and
   unrestricted locality:

Yes, just like Scheme's CONS requires a heap of unbounded
size.  No FFI is going to make all programs using it run in
all implementations.

   The problem goes away if the FFI imposes barriers over GCPROtected
   values.

It wouldn't take much of a change to do this.  A macro like
   SCHEME_SET_GLOBAL(location, value)
would do it.  A similar macro would work to support a read 
barrier, but I believe that those are significantly less common.

                                      -Richard Kelsey