[racket] Blog post about Racket

From: Sam Tobin-Hochstadt (samth at cs.indiana.edu)
Date: Tue May 13 06:59:51 EDT 2014

On May 13, 2014 3:38 AM, "Konrad Hinsen" <konrad.hinsen at fastmail.net> wrote:
>
> Sam Tobin-Hochstadt writes:
>
>  > On Mon, May 12, 2014 at 10:18 AM, Matthias Felleisen
>  > <matthias at ccs.neu.edu> wrote:
>  > >
>  > >> If the FFI can provide
>  > >> C-pointer access to something like a flvector, and ensure that it's
>  > >> not garbage-collected for the duration of a C function call, then a
>  > >> good interface should be doable.
>  >
>  > This is the `f64vector` (or `f32vector`, for single floats) type.
>  > Docs here:
http://docs.racket-lang.org/foreign/homogeneous-vectors.html#%28def._%28%28lib._ffi%2Fvector..rkt%29._make-f64vector%29%29
>
> Great, thanks for the pointer!
>
> Do I understand correctly that an f64vector is a different type from a
> flvector? A flarray is based on a flvector, so if f64vector is
> different, then I can't have an array based directly on it, and
> probably I'll end up having to copy everything again.
>

Yes, they're different types. I think f64vector has one more indirection,
to help with C interoperation, but I'm not sure.

Others could say more about this, I'm not an expert in FFI data structures.

Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140513/fe1700a8/attachment.html>

Posted on the users mailing list.