1: I installed rakudo and parrot using fedora's yum utility, and I found there are many parrot libs(in pbc or pir format) already installed with the parrot binary. How can I use those libs inside Perl 6 code?
To use such libraries, in general you need to resort to PIR blocks - here's a discussion on how to use the MD5 library in Perl 6 that's shipped with parrot.
Does Perl 6's @INC includes this path by default, or I have to add that path to my script everytime?
It is included by default:
./perl6 -e '.say for @*INC' /home/moritz/.perl6/lib /home/moritz/rakudo/parrot_install/lib/2.4.0-devel/languages/perl6/lib .
3: As Perl 5 is written in C, it can interact with binary libraries through XS mechanism. How does rakudo implement this function?
Parrot has a native call interface (NCI), and for Rakudo there's zavolaj, which allows you to access the NCI via Perl 6 signatures.
Moreover: How can I see the formatted documents???
Which documents?
In reply to Re: Questions about rakudo and parrot
by moritz
in thread Questions about rakudo and parrot
by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |