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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd3a5ba6349a6060 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: should I be interested in ada? Date: 1999/02/20 Message-ID: <7alclp$v6i$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 446292576 References: <7a72e6$g55$1@probity.mcc.ac.uk> <36C93BB4.1429@ecs.soton.ac.uk> <7afc1o$3mi$2@plug.news.pipex.net> <7afttr$7v3$1@nnrp1.dejanews.com> <7aganu$qsc$1@plug.news.pipex.net> <7ai4rb$5vn$1@nnrp1.dejanews.com> <7aingo$orv$2@plug.news.pipex.net> <7ajl7i$e8v$1@nnrp1.dejanews.com> <7akvap$j5t$3@plug.news.pipex.net> X-Http-Proxy: 1.0 x7.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sat Feb 20 04:11:42 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-02-20T00:00:00+00:00 List-Id: In article <7akvap$j5t$3@plug.news.pipex.net>, "Nick Roberts" wrote: > In fact, there is always a very easy way to program this > in Ada. I have given an example, in another post, of an > Ada equivalent of a Fortran FORALL statement. I have seen no such example, perhaps my newsreader (dejanews) lost a post. Nor do I think a reasonable equivalence is possible (you might want to dig up the ancient and extended thread on implementing for all in Ada 95). > If anyone would care to provide an example of a Fortran > parallel loop You know Fortran, make your own example! > [...] > |Doesn't Fortran also have slicing of multi-dimensional > |arrays, this is also obviously very painful in Ada. > Yes, and yes it is fairly painful, but far from > impractical. I've given an > example in another post, where one Fortran line becomes > seven Ada lines. I reckon this is an extreme example, in > practical terms. And, even so, in terms of programmer > productivity and debugging effort, I would contend that > the effective cost of these different forms would be the > same: it's not going to take a programmer a significantly > extra amount of time just to type in the extra text; the > bulkier form is not going to be likely to give rise > to more bugs, or to be more difficult to debug if it > does. All these are dubious claims in the extreme. All available data indicates that number of lines of code is an important indicator, and most certainly the debugging effort is much greater. I am beginning to wonder how much Fortran you have actually written (i.e. Fortran code using these kind of slicing semantics). I actually have not written much, but I have written lots of Algol-68 code using multiple dimensional array slicing, for linear algebra applications, and that kind of code is FAR harder to write in Ada, no doubt about it. Of course it would be surprising if we could not find some examples where it is easier to write X in Y than in Z, for some X and all Y and Z. For example, the silly thread recently where X was "sorting using only standard language features", Y was C++ and Z was Ada 95. This does not mean that Y is necesarily better than Z, even for programs that involve X, since there may be other advantages that outweigh the very specific comparison point. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own