Re: Packed array status?

2007-02-26 Thread Geoffrey Broadwell
On Mon, 2007-02-26 at 16:29 -0800, chromatic wrote: > On Monday 26 February 2007 11:29, Geoffrey Broadwell wrote: > > > Does Perl 6 on Parrot have Perl 5 connectivity? > > Not until Perl 6 can use PIR code. After that, it depends on what you want > to > do with the two. > > If you can get Par

Re: Packed array status?

2007-02-26 Thread Audrey Tang
2007/2/27, Geoffrey Broadwell <[EMAIL PROTECTED]>: > > 7. Packed arrays with access to raw data pointer to give to API > > Is it possible to point us to some use cases of such packed arrays, > especially the raw data pointer API part? Are you looking for Perl code that creates such packed array

Re: Packed array status?

2007-02-26 Thread Audrey Tang
2007/2/27, Geoffrey Broadwell <[EMAIL PROTECTED]>: As a simpler case than a full 3D engine port, I have some OpenGL benchmarks in Perl 5 that I can port -- these have much reduced requirements. Principly, they need: 1. Basic math and string operators (not grammars) 2. Basic looping and simple

Re: Packed array status?

2007-02-26 Thread chromatic
On Monday 26 February 2007 11:29, Geoffrey Broadwell wrote: > Does Perl 6 on Parrot have Perl 5 connectivity? Not until Perl 6 can use PIR code. After that, it depends on what you want to do with the two. If you can get Parrot::Embed compiled and running on your machine, Perl 5 can have Parro

Re: Packed array status?

2007-02-26 Thread Geoffrey Broadwell
On Tue, 2007-02-27 at 03:02 +0800, Audrey Tang wrote: > 2007/2/27, Geoffrey Broadwell <[EMAIL PROTECTED]>: > > Are you looking for Perl code that creates such packed arrays and passes > > them to OpenGL? Or are you looking for links to manpages for the OpenGL > > calls themselves? Or both? > > T

Re: Packed array status?

2007-02-26 Thread Geoffrey Broadwell
> Pugs at the moment support all of the above, using the Perl 5 bridge > for "use perl5:SDL" and "use perl5:OpenGL". So the sole requirement > seems to be: Cool beans. I'd had some simple OpenGL code working-with-hacks on Pugs many months ago, but I did not know the current status after all the

Re: Packed array status?

2007-02-26 Thread Geoffrey Broadwell
On Mon, 2007-02-26 at 08:25 -0600, Patrick R. Michaud wrote: > On Sun, Feb 25, 2007 at 03:48:47PM -0800, chromatic wrote: > > On Sunday 25 February 2007 12:40, Geoffrey Broadwell wrote: > > > > > What backends support packed native arrays at this point? And what's > > > the performance like? > >

Re: Packed array status?

2007-02-26 Thread Patrick R. Michaud
On Sun, Feb 25, 2007 at 03:48:47PM -0800, chromatic wrote: > On Sunday 25 February 2007 12:40, Geoffrey Broadwell wrote: > > > What backends support packed native arrays at this point? And what's > > the performance like? > > I don't know if Patrick has using PIR libraries working in Perl 6 > y

Re: Packed array status?

2007-02-25 Thread chromatic
On Sunday 25 February 2007 12:40, Geoffrey Broadwell wrote: > What backends support packed native arrays at this point? And what's > the performance like? Parrot does have ManagedStruct and UnManagedStruct PMCs for mapping complex C structures. The syntax to define them is a little grotty, but