Hey everybody - I occasionally see people mention PDL::PP, but usually it's followed by expressions of apprehension. Not too long ago I came across a Inline::Pdlpp, for which we have Christian Soeller to thank. For those not familiar with the Inline module, it allows you to specify custom code in various languages including C, C++, Java, Python, and of course PDL::PP, *within the same file* as your Perl. This module greatly reduces the barrier for writing inline code from another language without having to go through the hassle of setting up all the XS stuff because it handles everything for you.
I would like to use Inline::Pdlpp as the basis for an intro to PDL::PP somewhere on the wiki, some day. In the meantime I've written up a cookbook page with a basic intro and a couple of working examples that you can find here: https://sourceforge.net/apps/mediawiki/pdl/index.php?title=How_to_Learn_PDL::PP_using_Inline::Pdlpp The examples on the cookbook are very simple. I don't focus on the specifics of using Inline so much as the specifics of writing a PDL::PP function using pp_def. I don't even go into using external libraries, though this is discused in Inline::Pdlpp's docs. If you've been meaning to look into PDL::PP but never felt like you had a good place to start experimenting, this should help a lot. Happy piddling! David
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
