It should be possible to build a better PDL then PDL in p6. For one thing, you have better operator overloading. Perhaps more importantly, you can create your own operators. If you want, you can create a dot-product operator, ·. You can create new syntax for writing row and column vectors easily -- say (- 1, 2, 3 -) and (|1, 2, 3|). You aren't bound to mearly subverting the existing language as PDL does; you can create new bits of language from whole cloth.
Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).
| [reply] [d/l] [select] |