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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3009af37fa605de6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-20 06:40:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.wirehub.nl!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "M. A. Alves" Newsgroups: comp.lang.ada Subject: Re: Ada communicating with other programs Date: Tue, 20 Nov 2001 14:39:51 +0000 (GMT) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: avanie.enst.fr 1006267245 87020 137.194.161.2 (20 Nov 2001 14:40:45 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 20 Nov 2001 14:40:45 +0000 (UTC) To: Return-Path: X-X-Sender: In-Reply-To: <3BFA5654.519D8BC8@kfunigraz.ac.at> Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:16718 Date: 2001-11-20T14:39:51+00:00 On Tue, 20 Nov 2001, Siegfried Gonzi wrote: > Actually I am learning a little bit Ada 95, therefore a few questions: > > a) Is it hard for Ada to communicate with other programs? No. > I often have to deal with big array computations. Currently, I am > using Clean Give us a reference, please. > . . . > > aa) Is it hard in Ada to do "semi command line programming". What is that? > . . . > > b) How easy is it in Ada to read in a file of the following structure: > > Day,Time,Val1,Val2 > 01:23:2001,12:23:34,2.3445,233.34 > 02:03:2001,13:45:00,2,344,222 > > . . . > > The Clean program consits of nearly 100 lines of code. I ask here "how > easy can it be in Ada", because I have been really depressed and asked > myself why I have to waste my time with such things and is there a > clearer way extracting the values. It is very easy to do it in Ada, but do expect a big number of lines. If you want tersness use a "write-only" language like any of the C derivatives outhere e.g. PERL---but then be prepare to waste some serious time chasing bugs. You you cleary state the specs for the program you're currently implementing in 100-lines of Clean I can try to show you how to do it in Ada as your first tutorial ;-) > c) Is there an aha experience when one is confronted in Ada with "not > having the goody called garbage-collection". I haven't felt the need for that yet. In Ada you can do everything keeping the variables under a nice (dynamic as well as static) scope. (And of course some guys will tell you how garbage collection slows things down.) > . . . pointer-free programming. Ditto. > d) Often visualization tools support calling foreign functions, but > often only C or Fortran. But will it be possible to also call a > compiled Ada function from this tools (lets say Scilab) . . . If your tool is (in) a C or Fortran library you should have no problem linking it with Ada programs. I do it all the time. Chances are there is already an Ada package binding the library. Welcome to Ada ;-) -- , M A R I O data miner, LIACC, room 221 tel 351+226078830, ext 121 A M A D O Rua Campo Alegre, 823 fax 351+226003654 A L V E S P-4150-180 PORTO, Portugal mob 351+939354002