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,5212284fdbcb2b5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-05 13:38:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3D4EE233.7030101@worldnet.att.net> From: Jim Rogers User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: New to ada, a few questions References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 05 Aug 2002 20:38:44 GMT NNTP-Posting-Host: 12.86.39.212 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1028579924 12.86.39.212 (Mon, 05 Aug 2002 20:38:44 GMT) NNTP-Posting-Date: Mon, 05 Aug 2002 20:38:44 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:27725 Date: 2002-08-05T20:38:44+00:00 List-Id: Stephane Jolicoeur wrote: > *** post for FREE via your newsreader at post.newsfeed.com *** > > Hello, > I am a strong python programmer that is looking for a compiled language to > complement my tool chest. I tried C but those pointers are an annoyance, I > tried C++ but there to the pointers and it's OO weirdness kicked in. Then I > stumbled on an Ada tutorial, I dislike the Pascal-like coding style but > there seems to be no pointer and it can be compiled to native byte code ! > I would like to know, what good books are there for learning ada ( some > sort of tutorial/reference book). How "fast" is compiled Ada code by this I > mean is it like C/C++ or more like Java? I read that it is possible to > interface Ada with C? How is this done? Can I use say stdio.h in an Ada > program? How about interfacing with C++ or objective C? Are there any GUI > librairies (windows, BSD, Mac OS X)? Has any Ada compiler been made to > compile code for microcontrollers ( PIC, 68hc11, etc )? How does the > threading work? I think this should suffice for a first post. > First the short answer: visit www.adapower.com for Ada online books and tutorials. More detailed answers follow: * Ada code is as fast as C or C++ code. * Ada provides calling conventions and several useful conversions for calling functions compiled in C. You cannot use stdio.h in Ada. Ada does not understand C source syntax, and Ada has no standard preprocessor. * Interfacing with C++ or objective C is possible. The simplest way is to treat them both as C programs. More complex approaches are somewhat compiler specific. * There are several GUI bindings for Ada. The GtkAda binding is very useful and portable. * Ada is available for embedded systems, but not for 8 bit microcontrollers. * Ada "threading" works very well. It is actually defined in the more general terms of concurrent programming, and is often implemented using threads. Compared to Java, Ada's concurrency model is extremely robust and sophisticated. I hope you have pleasant experiences learning Ada. Jim Rogers