I may be parsing your responses wrong Eli, but I don't think we should let our use of libffi be a barrier to a good ffi. I see (require ffi) to mean "get a good Racket FFI", not "get a Racket encoding of libffi".
Jay On Wed, Nov 17, 2010 at 12:12 AM, Eli Barzilay <e...@barzilay.org> wrote: > Two hours ago, Sam Tobin-Hochstadt wrote: >> >> Python's 'ctypes' library, which also uses libffi under the hood, has arrays: >> http://docs.python.org/library/ctypes.html#arrays >> and also unions, which we don't have: >> http://docs.python.org/library/ctypes.html#structures-and-unions >> >> So it seems like this should be possible, and maybe we can even use >> their code. > > They guy who did ctypes knows how to deal with the libffi internals. > (He did the msvc version of the code.) > > If you look through the libffi documentation you'll see no mention of > arrays, and an explicit mention of "no special support for unions". > > -- > ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: > http://barzilay.org/ Maze is Life! > -- Jay McCarthy <j...@cs.byu.edu> Assistant Professor / Brigham Young University http://faculty.cs.byu.edu/~jay "The glory of God is Intelligence" - D&C 93 _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev