Hi Craig,

Craig DeForest <[email protected]> wrote:

> NiceSlice actually changes the syntax of the parser.

I'm always impressed at the things that modules can do with Perl. It's
incredible.

You've probably heard that "only Perl can parse Perl", right? Did you
know that this is not actually true? Someone proved that if you could
build a parser that could correctly parse every possible Perl program,
that would be equivalent to solving the Halting Problem.

> We did get the AutoLoader to do some fancy footwork to automagically  
> preprocess .pdl files with NiceSlice, so you don't have to remember
> to put it in every single file -- but there's no easy way to do that
> with scripts.  I suppose one could make a PDLNS bundle that both
> loaded PDL and ran the NiceSlice source filter, so you could just
> "use PDLNS;" in a Perl script...

But then you'd have to include that in every file, right?

Here is another idea:  Make the "perldl" program able to receive a PDL
script as input and execute it.

~ $ perldl  myprogram.pdl


This could be rather cool. The perldl binary could auto-include basic
modules like PDL, PDL::AutoLoader and PDL::NiceSlice. Make ".pdl" the
"standard" extension to distinguish it fro regular Perl scripts.

Now you have something that really feels like a stand-alone numerical
analysis language, in the style of MATLAB and IDL.

What do you think?


Daniel.





_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to