Hacker News new | ask | show | jobs
by gabriel 3415 days ago
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.
2 comments

> 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.

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.