3 ms·
Inline::Perl5 is just some glue to communicate to a Perl 5 interpreter from Perl 6. It's a simple form of inter-process communication between Perl 5 and 6. It's
by ceronman 11y ago
Inline::Perl5 is just some glue to communicate to a Perl 5 interpreter from Perl 6. It's a simple form of inter-process communication between Perl 5 and 6. It's not that you can continue writing your Perl 5 program/library in Perl 6.
This approach is not only really bad for performance, it's also very limited. For example, you can't just share data between both interpreters, however you can send some basic datatypes from one to the other.
This has been done for other languages as well, for example, check Inline::Python [1]. It's an interesting thing, but not very useful for production.
[1] http://search.cpan.org/~nine/Inline-Python-0.49/Python.pod http://search.cpan.org/~nine/Inline-Python-0.49/Python.pod
- cygx 11y agoYou do have a point, but your description sells Inline::Perl5 short: For example, it is possible for Perl6 classes to inherit from Perl5 ones.
- raiph 11y agoNote that Inline::Python for Perl 6 allows one to do likewise with Python. [1] "even PyQt's low level mingling finds all the information it needs and we can write programs using PyQt in Perl 6 :)" [1] https://github.com/niner/Inline-Python/commit/82cab4181d98f046c4529335f2c1748f1e89593c https://github.com/niner/Inline-Python/commit/82cab4181d98f0...