Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is there any known module that allows perl and ADA to interact with each other?

Replies are listed 'Best First'.
Re: Perl and ADA
by stvn (Monsignor) on May 10, 2004 at 18:34 UTC
Re: Perl and ADA
by raptnor2 (Beadle) on May 11, 2004 at 01:39 UTC
    Which ADA compiler are you using? I believe most of them ultimately compile down to C (at least this seems to be the general ADA philosophy). If it does, you should be able to get to it at the C level.

    Cheers,

    John

      I know that some Ada-to-C compilers exist, but most of the commercial Ada compilers out there that I know all compile to machine code. I think too that gcc 3.0+ now incorporates the GNAT Ada component, so likely there it compiles to the gcc intermediate language, then to machine code. But alot of the Ada work done is for embedded systems, and I am pretty sure they would be compiling to machine operations and not C. However, I do think thought that the Ada for Lego Mindstorms compiles into NQC (Not Quite C) first. And there is a Ada compiler for the JVM, but that bypasses Java and goes straight to bytecode.

      -stvn
Re: Perl and ADA
by gsiems (Deacon) on May 11, 2004 at 02:33 UTC

    Don't know if this helps at all, but is using CORBA an option? There appears to be ADA bindings for CORBA as well as a CORBA::ORBit module for Perl.

    Update: Another thought-- if using Unix sockets is an option then perhaps ADASockets plus IO::Socket or some such...

A reply falls below the community's threshold of quality. You may see it by logging in.