Re:Ask HN: Perl 6: Do you use it, how do you like it, what d...
by gkya on Monday February 06, 2017 @10:29AM
(#13580269)
IIRC there's a module for parsing and running Perl 5 in 6. Am I wrong or is it not practically useful?
[ Parent
| on HN ]
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d...
by gabriel on Monday February 06, 2017 @11:23AM
(#13580934)
I think you mean Inline::Perl5: https://github.com/niner/Inline-Perl5. It doesn't parse Perl 5 and run it inside of Perl 6 though, it just runs the Perl 5 interpreter for you from a Perl 6 program and lets you marshall data between the interpreters. It's a legitimate technique.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d...
by raiph on Monday February 06, 2017 @03:30PM
(#13583560)
> lets you marshall data between the interpreters.
To be clear, Inline::Perl5 (and the other inlines like Inline::Python) automatically marshal data.
And exceptions. And classes (so you can sub-class a Perl 5 or Python etc. class in Perl 6). Etc.
Re:Ask HN: Perl 6: Do you use it, how do you like it, what d...
by Ultimatt on Wednesday February 08, 2017 @02:47AM
(#13596587)
There is the v5 project implementing Perl 5 targetting nqp to be compiled inline with a Perl 6 program. https://github.com/rakudo-p5/v5
The project has mostly stalled since Inline::Perl5 became so effective. v5 had the issue of being unable to easily support binary XS type modules. Which means it could never support CPAN, unlike Inline::Perl5. It was meant for people to be able to copy their high mental cost algo code into a new Perl 6 project without fuss.