From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,94bac711cf2950f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-25 20:22:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!unlnews.unl.edu!newsfeed.ksu.edu!nntp.ksu.edu!news.okstate.edu!not-for-mail From: David Starner Newsgroups: comp.lang.ada Subject: Re: Newbie wanna Ada Date: 26 Oct 2001 02:32:09 GMT Organization: Oklahoma State University Message-ID: <9rahv9$aik1@news.cis.okstate.edu> References: <3BD87B95.2000703@maciejsobczak.com> Reply-To: dstarner98@aasaa.ofe.org NNTP-Posting-Host: x8b4e5643.dhcp.okstate.edu User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:15208 Date: 2001-10-26T02:32:09+00:00 List-Id: On Thu, 25 Oct 2001 22:52:37 +0200, Maciej Sobczak wrote: > 1. Is there a *usual* interface in Ada for socket-related operations? No. GNAT.Sockets (I don't remember the earlier name for this) is a common one, though. > 2. Is there some more or less standard GUI lib? I've spot a Tcl/Tk > binding somewhere: The "more or less standard" GUI is GtkAda, which depends on libgtk+. > d. What about Qt, for example? There have been brief discussions about wrapping it, but GtkAda is good enough and well maintained, so no one apparently wants to take the time to make and support a binding. > logo on the boxes. The result is that we have many different 'dialects' > of this (standardised) language. What about Ada? If I write something > for GNAT, can I assume that some imaginary Windows compiler will eat it? The core language is almost perfectly standard, sans the occasional compiler bug. (i.e. no for loop scope questions, no non-implemented keywords). Most pragmas and GNAT specific units aren't portable, and the annexes are standard _where implemented_. (GNAT is the only compiler that has implemented all the annexes, but most are somewhat esoteric - distributed computing, for example.) > 4. What is the possibility of interfacing Ada with C (mainly - using C > libs from Ada)? No problem. The C-Ada interface is part of the standard, as is a Fortran-Ada interface. > Is this made during the linking or in the spirit of > Native Interfaces (like in Java)? I'm not sure what you're asking here? To interface with a C program, you provide an appropiate procedure/function declaration, and follow it with pragma Import (C, function_name) or pragma Import (C, Function_Name, "functname"). It then gets linked in like any other function. > For extremists - is it possible to > call back some Ada procedure from the C function (possibly running in > another thread)? Yes. As always, there's catches - you can't reliably throw exceptions across the C function (except for a few systems), and I don't know what will work with threading. > 5. Is there a CORBA binding implemented for Ada? Yes. Search for ORBit-Ada. -- David Starner - dstarner98@aasaa.ofe.org Pointless website: http://dvdeug.dhis.org "I saw a daemon stare into my face, and an angel touch my breast; each one softly calls my name . . . the daemon scares me less." - "Disciple", Stuart Davis