On Tue, 23 Dec 2003, Dan Sugalski wrote:

> At 6:07 PM -0500 12/23/03, Simon Glover wrote:
> >On Tue, 23 Dec 2003, Dan Sugalski wrote:
> >
> >>  I'm pondering, once again, more things with the Postgres interface.
> >>  In this case I need to pass in arrays of ints (and floats, I suppose)
> >>  and arrays of char pointers. My first thought is to have a new type
> >>  that converts an Array (or something like it) to a C array, either of
> >>  ints or char pointers. That'd solve my problem quite nicely. But...
> >>  that begs the question--is it going too far? Is this the sort of
> >>  stuff that ought to have custom C interfaces for, rather than adding
> >>  in Yet More Types to the NCI interface?
> >
> >  Speaking personally, being able to automatically convert a Parrot array
> >  to an array of ints or floats would be very useful, but that's because I
> >  do fairly hard-core number crunching in my day job. What are the
> >  arguments againtst putting something like this in the NCI interface?
> 
> Mainly it's two more things for the interface, which grows ever 
> larger. Past that, well... there's no real argument against other 
> than it means more funky assembly code for the JIT building call 
> frames.

 If it doesn't slow down the common case, then I'd vote to add it.

 Simon

Reply via email to