Re: [racket-dev] [racket] newbie: foreign C structure definition question

2010-11-18 Thread Eli Barzilay
[redirected to dev again] 15 minutes ago, Hendrik Boom wrote: On Tue, Nov 16, 2010 at 11:37:17PM -0500, Eli Barzilay wrote: Three minutes ago, Jay McCarthy wrote: We could use a syntax parameter in define-cstruct to communicate to the vector syntax to give them the correct size in

Re: [racket-dev] [racket] newbie: foreign C structure definition question

2010-11-18 Thread Hendrik Boom
On Thu, Nov 18, 2010 at 10:06:34PM -0500, Eli Barzilay wrote: [redirected to dev again] 15 minutes ago, Hendrik Boom wrote: On Tue, Nov 16, 2010 at 11:37:17PM -0500, Eli Barzilay wrote: Three minutes ago, Jay McCarthy wrote: We could use a syntax parameter in define-cstruct to

Re: [racket-dev] [racket] newbie: foreign C structure definition question

2010-11-17 Thread Sam Tobin-Hochstadt
On Wed, Nov 17, 2010 at 2: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:  

Re: [racket-dev] [racket] newbie: foreign C structure definition question

2010-11-17 Thread Eli Barzilay
6 hours ago, Jay McCarthy wrote: 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. Of course. I even detailed a number of times how

Re: [racket-dev] [racket] newbie: foreign C structure definition question

2010-11-16 Thread Sam Tobin-Hochstadt
[redirected to d...@] On Tue, Nov 16, 2010 at 11:28 PM, Eli Barzilay e...@barzilay.org wrote: 20 minutes ago, Jay McCarthy wrote: I've complained about this before, which is why I was able to quickly answer your question. I don't endorse the current behavior. (Just a reminder: this is