Bernhard Schmalhofer writes: > This sounds somewhat like a Piddle, which is the data structure of the > Perl Data Language, http://pdl.perl.org/. AFAIK there is already a hook, > that allows you to use your own data lying somewhere in your memory. > > It might be worthwile to create a Piddle PMC, that brings this > functionality to all Parrot languages.
Which of course would entail bringing the functionality that comes with Piddles to Parrot. Which is like writing a library. > >You can also get at a C-level struct using the ManagedStruct and > >UnManagedStruct PMCs, though access is a bit clumsy IIRC. > > With NCI it should be possible to create a Piddle PMC, that hooks into > the shared library > of PDL for Perl5. Of course, one could also just steal the code or roll > your own code. Well, we could do that temporarily, I suppose. It would be a pain considering all the wrappers and such that we'd have to do, since we don't have ponie at our disposal yet. However, both Parrot and Perl 6 are offering many new possibilities to PDL. I think it would be wise to rethink the overall architecture before making any hooks or trying to write another PDL. If there's anyone interested in working on PDL for Parrot, drop me a line. I've had my eye on this task for a while now, and it would be neat to get started. Luke