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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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 19:02:32 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttln1.wa.home.com.POSTED!not-for-mail From: "DuckE" Newsgroups: comp.lang.ada References: <3BD87B95.2000703@maciejsobczak.com> Subject: Re: Newbie wanna Ada X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Fri, 26 Oct 2001 02:02:32 GMT NNTP-Posting-Host: 24.248.45.203 X-Complaints-To: abuse@home.net X-Trace: news1.sttln1.wa.home.com 1004061752 24.248.45.203 (Thu, 25 Oct 2001 19:02:32 PDT) NNTP-Posting-Date: Thu, 25 Oct 2001 19:02:32 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:15206 Date: 2001-10-26T02:02:32+00:00 List-Id: "Maciej Sobczak" wrote in message news:3BD87B95.2000703@maciejsobczak.com... [snip] > 1. Is there a *usual* interface in Ada for socket-related operations? No. There is a package called "AdaSockets" available that provides a binding to sockets. There is a class library called "Claw" that includes support for sockets. I've heard that the next version of GNAT includes a sockets package. It is very easy to interface to the standard C library for socket-related operations, which is exactly what I did before the options I just listed became available. > 2. Is there some more or less standard GUI lib? I've spot a Tcl/Tk > binding somewhere: > a. How does it work? > b. Is it efficient? > c. Does it require Tcl runtime installed to run programs? > d. What about Qt, for example? Since you mentioned using Linux, you'd probably be the most interested in GTKAda, which uses the GTK toolkit. I'm sure you can find links on www.adapower.com > 3. What is the level of portability of the source code? C++ suffers from > the fact that many vendors dare to dump crap on the market with the C++ > 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? I have only used two Ada compilers, so I don't consider myself to be an expert, but it has been my experience that code is very portable. The few exceptions I have encountered have been where one of the compilers had a minor bug that did not detect a type error in my source code. When I rebuilt on the other compiler it complained about the error. After correcting the code it worked on both systems. It took me a couple of hours to port a 250K SLOC program from Win32 to Linux. The program is a multi-tasking "console mode" program that makes use of sockets. I had to re-write the module that interfaces with sockets from using winsock to a standard sockets package, and that was it. > 4. What is the possibility of interfacing Ada with C (mainly - using C > libs from Ada)? Is this made during the linking or in the spirit of > Native Interfaces (like in Java)? For extremists - is it possible to > call back some Ada procedure from the C function (possibly running in > another thread)? Interfacing to other languages was taken into account with the design of Ada 95. If you look at the history of this newsgroup you'll find cases of people interfacing with C, FORTRAN and COBOL. I personally created a DLL in Ada that was used by a Delphi program. > 5. Is there a CORBA binding implemented for Ada? Yes. As I recall there is a free CORBA binding targeting Linux, and a commercial binding available from IONA. > > Thanks for your time, > > -- > Maciej Sobczak > http://www.maciejsobczak.com > You're welcome SteveD