As it is widely known, Perl is very good at integrating with different SDKs and even different languages.
Inline::* set of modules proves my point.

Sometimes this is done for performance reasons (speed up tight loops using C) or mostly to enrich capabilities of existing set.
After such integration even Visual Basic is not that annoying to deal with!

A question:
Does anyone uses Perl+Ruby and if so, what are benefits from such pair?

Has anyone an experience or thoughts to share?

PS Actually "ruby" subdir exists in distribution of current Perl6 development branch, in "languages" subdir. That is why I became wondering.

Courage, the Cowardly Dog

Replies are listed 'Best First'.
Re: Perl + Ruby = ?
by jacques (Priest) on Jan 22, 2003 at 17:00 UTC
Re: Perl + Ruby = ?
by theorbtwo (Prior) on Jan 22, 2003 at 20:57 UTC

    Careful with your terminology in that PS. Parrot is a virtual machine, designed with perl6 as the primary target, but 'parrot' ne 'perl6'. The idea is that, by using a common ABI and VM, you can call into one language from another seamlessly (or at least as seemlessly as things like the basic defintion of an object allow). Apparently, somebody has started implementing a ruby compiler targeting parrot. Unfornatly, the perl6 compiler for parrot has barely been started, and I suspect the ruby one isn't much better off. Additionaly, support for multiple code segments (which would pretty well be neccessary for one program which consists of several languages) is just starting to get into perl.

    This rant has been brought to you by procrastination.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

      What do you mean by 'multiple code segments'?

        Well... that's complicated, I don't really understand them myself, and perl6-internals is still in the process of deciding exactly what they are. In other words, ask Elian, or just start hanging out on perl6-internals... it's a fun and mind-warping place.


        Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Re: Perl + Ruby = ?
by Anonymous Monk on Jan 22, 2003 at 19:48 UTC
        I thought the general consensus was that:
        Ruby > (Perl - CPAN) + Python
        Anything else is pure opinion and conjecture :-)

        Which also means

        Perl = Ruby - Python

        Logical, if you think about it, but still unnerving.

        Makeshifts last the longest.