in reply to Interaction between languages in Parrot

From dev.perl.org:
The vision for Perl 6 is more than simply a rewrite of Perl 5. By sepa +rating the parsing from the compilation and the runtime, we're openin +g the doors for multiple languages to cooperate. You'll be able to wr +ite your program in Perl 6, Perl 5, TCL, Python, or any other languag +e that there's a parser written for. Interchangable runtime engines l +et you interpret your bytecode or convert it to something else (e.g., + Java, C, or even back to Perl).

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re^2: Interaction between languages in Parrot
by ruoso (Curate) on Dec 19, 2005 at 19:37 UTC

    But... If java.lang.String is a Java Class, and I create a subclass of it in Perl6, will it be possible to use the My::String::Subclass as an argument to methods defined in Java Classes?

    Maybe it's just written in the statement you quote, but I couldn't be sure just by reading it (which I made before posting here in the first time)...

    daniel

      It is my understand that the mechanisms to make such linkages possible are part of parrot. The big trick though is getting languages to target parrot such that it is possible.

        But still, if the PMC is implemented differently for each language (this is what I understood, and it actually makes sense), how is it possible for code written in different languages to communicate (using more than the native types)?

        I'm really lost... ;)

        daniel