On Tue, 2009-09-29 at 11:01 -0700, Joe Marshall wrote:

> Callbacks are when it starts getting interesting because you
> have to program the foreign language's FFI, which may not be
> particularly easy.  Exceptions will be a similar issue because
> both callbacks and exceptions involve non-standard transfer
> of control from the foreign language back into Scheme.

If blobs are represented as images of raw memory (as 
opposed to the general-vectors implementation/simulation of 
blobs) you have the ability to construct a binary image in 
memory that matches what the foreign language is looking for, 
either as a datum representation or a record/object. Similarly, 
you can "read" the binary image of its representation and 
figure out what the heck it represents.

But that doesn't solve the problem.  In order to get the 
FFI to see the blob as potential data visible to the other 
runtime, or for the scheme side to know where to build its 
blob so that the other runtime can see it, a pointer has 
to cross the wall somewhere.  And scheme, as currently 
specified, has no concept of pointers. 

                        Bear



_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to