Darren Duncan wrote: [snip] > I decided that I shouldn't waste my time with the Perl 5 XS system and > go straight to using the corresponding Parrot extension mechanism > instead. Partly this is because the latter should be more mature by > the time I am ready to write the C, and also because it should be a > lot better designed and a joy to work with than XS.
Even after perl6 is done and fully released, there will still be many, many people writing perl5 code. ISTM that you should write Rosetta as a standalone C library, with perl5 *and* perl6 bindings. XS isn't *that* horrible -- especially if you design an interface to your library in such a way that h2xs can convert it without trouble into something that can be used without further modifications. (In which case, you don't even need to look at the XS) -- $a=24;split//,240513;s/\B/ => /for@@=qw(ac ab bc ba cb ca );{push(@b,$a),($a-=6)^=1 for 2..$a/6x--$|;print "[EMAIL PROTECTED] ]\n";((6<=($a-=6))?$a+=$_[$a%6]-$a%6:($a=pop @b))&&redo;}