Re: Wrapping C/C++ libraries

2003-10-28 Thread Leopold Toetsch
Anuradha Ratnaweera [EMAIL PROTECTED] wrote: But if the structure of the structure _is_ known, then there is the possibility of kind of rearranging the hashes and calling the C/C++ library without duplicating the related data to a seperate structure. Parrot doesn't have a hash there, but that

Re: Wrapping C/C++ libraries

2003-10-28 Thread Leopold Toetsch
Anuradha Ratnaweera [EMAIL PROTECTED] wrote: Just another quick, and possibly dumb, question: Is XS the standard way of binding Perl to a C/C++ library? If your question is ... of binding Parrot to a C/C++ library?, then no. Parrot uses NCI (native call interface). S. library/* and t/pmc/nci.t

Re: Wrapping C/C++ libraries

2003-10-28 Thread Anuradha Ratnaweera
On Tue, 2003-10-28 at 14:10, Leopold Toetsch wrote: Anuradha Ratnaweera [EMAIL PROTECTED] wrote: Just another quick, and possibly dumb, question: Is XS the standard way of binding Perl to a C/C++ library? If your question is ... of binding Parrot to a C/C++ library?, then no. Parrot

Re: Wrapping C/C++ libraries

2003-10-28 Thread Dan Sugalski
On Tue, 28 Oct 2003, Anuradha Ratnaweera wrote: On Tue, 2003-10-28 at 14:10, Leopold Toetsch wrote: Anuradha Ratnaweera [EMAIL PROTECTED] wrote: Just another quick, and possibly dumb, question: Is XS the standard way of binding Perl to a C/C++ library? If your question is ... of

Re: Wrapping C/C++ libraries

2003-10-28 Thread Leopold Toetsch
Anuradha Ratnaweera [EMAIL PROTECTED] wrote: Let me break down the questions into more than one: 0. Is XS the standard way of binding Perl 5 to a C/C++? Yes, till now. Ponie (perl ~5.12) will use both XS and NCI/extend.c. 1. If answer to 0 is 'yes', will it be the same for Perl 6? Perl6

Re: Wrapping C/C++ libraries

2003-10-28 Thread muppet
sorry to spam perl6-internals, but i'm answering a public question, and you may find something worth thinking about my description of the hoops i have to jump through... or maybe not. ignore if you like. i am quite open to suggestions how i should do this for perl6. replies off-list,

Wrapping C/C++ libraries

2003-10-27 Thread Anuradha Ratnaweera
I am not sure if this is the correct place to ask this, so please point me to correct direction if it is not. As far as I know, there is no native way of calling C/C++ libraries from within Perl 5. When C/C++ API involves structures, the corresponding Perl binding uses hashes, and an

Re: Wrapping C/C++ libraries

2003-10-27 Thread Anuradha Ratnaweera
On Tue, 2003-10-28 at 11:24, Anuradha Ratnaweera wrote: As far as I know, there is no native way of calling C/C++ libraries from within Perl 5. When C/C++ API involves structures, the corresponding Perl binding uses hashes, and an intermediate step converts the hash to a structure, and call