[Ecls-list] foreign data arrays and vectors
Brian Spilsbury
brian.spilsbury at gmail.com
Thu Dec 14 15:31:18 UTC 2006
Hello,
I've stopped being so incredibly busy and I just had a quick thought
about ecl arrays and accessing foreign data. :)
The diff included illustrates a technique for making arrays and
vectors which address foreign data, along with some example code.
The main point of allowing arrays and vectors upon foreign data is to
access C data without copying it, and while retaining the ability to
use normal array operations (the arrays and vectors are currently not
permitted to be adjustable).
If this seems like a good idea, then I'll look at a cleaner
implementation to submit as patch (unless someone else wants to). If
not, I'd like to know why.
The basic GC code seems to have no problem with foreign data pointers,
but there may be some subtlties that I'm missing.
Thanks,
Brian.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 8067 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20061215/3f51cf13/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-foreign-vector.lisp
Type: application/octet-stream
Size: 711 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20061215/3f51cf13/attachment-0001.obj>
More information about the ecl-devel
mailing list