2009/11/20 Nathan Froyd <froydnj@...>:
> On Fri, Nov 20, 2009 at 1:24 PM, Nikodemus Siivola
> <nikodemus@...> wrote:
>> I've long labored under the mistaken impression that SB-SYS was a
>> semi-public package. It's not. We clearly document it as private --
>> but it _does_ contain a lot of stuff that IMO should be public.
>> To start untangling it, I propose to export the following symbols from SB-ALIEN:
> I think these make sense (a little skeptical about VECTOR-SAP and
> WITH-PINNED-OBJECTS), but I'm curious for the reasoning behind:
VECTOR-SAP is how you pass eg. arrays of floats to C efficiently --
and to do it safely you need WITH-PINNED-OBJECTS. There might be
better places to export them from, but I do think we should export
Sure, MAKE-ALIEN + ALIEN-SAP works too, but seems harder to reason
about to me than just calling ALLOCATE-SYSTEM-MEMORY. That way you can
be explicit about the size of the area in bytes, which makes it easier
to think about using other SAP-stuff.