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-Thread: 103376,763b126bf5276f4c X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Communications of ACM: Sir, Please Step Away from the ASR-33! Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <72b8fb96-2b5e-4ef8-8099-39361eeea853@glegroupsg2000goo.googlegroups.com> <878vzbwa61.fsf@hugsarin.sparre-andersen.dk> <8ns4v1Fk2dU1@mid.individual.net> <2vc8dxz8lc3t$.frc39a6lzjvt.dlg@40tude.net> <8ntp4kFo9qU1@mid.individual.net> <9cqhbxmdgs8x.nohduviggb5a$.dlg@40tude.net> <4d19c37f$0$7669$9b4e6d93@newsspool1.arcor-online.net> <1hd23hih9nr3v$.qzcce27pd1u1.dlg@40tude.net> <4d19e020$0$6885$9b4e6d93@newsspool2.arcor-online.net> <1sa8js3de7m9a.1u4v3u0e8fpvy$.dlg@40tude.net> <4d1a0531$0$6980$9b4e6d93@newsspool4.arcor-online.net> <1hok68cs370tc.1lt858ruxu3m5.dlg@40tude.net> <4d1b2fe1$0$7654$9b4e6d93@newsspool1.arcor-online.net> Date: Wed, 29 Dec 2010 15:52:22 +0100 Message-ID: NNTP-Posting-Date: 29 Dec 2010 15:52:21 CET NNTP-Posting-Host: b1f2f452.newsspool2.arcor-online.net X-Trace: DXC=^ELaT6V4L0gLA9EHlD;3YcB4Fo<]lROoRA8kF On Wed, 29 Dec 2010 13:56:00 +0100, Georg Bauhaus wrote: > On 12/28/10 5:26 PM, Dmitry A. Kazakov wrote: > >>> This is maintenance of a compiler/editor/... for a given language. >>> I meant maintenance of Ada, the language. >> >> That is up to the compiler vendors, why should a programmer care? > > > Doomed! We're doomed! I sincerely hope that language > development is not just in the hand of compiler makers. The real problem is that it is in other's hands! > That happened when C was created. Nope, that happened when guys having too much spare time and computers strove to busy themselves. > Or are you thinking about modeling tools that can transform one entire > program to become a different program and the transformation is > steered by some transformation processor? I am thinking of a language as a language. >> They supposedly make no mistakes when connect arrows in UML? > > No, using tools, they will be guided in the direction the > tool knows best. Just like an Ada compiler will instruct > us to not leave out values in a case distinction. Ada is capable of this because it has types. It is not because Ada knows anything about specific types, but because the programmer can use the type system to express constraints the compiler will then check. There is no magic knowledge Ada oracle sheds to guide programmers. All information is exclusively from the programmer. Any tool is no different, it is a dangerous delusion to believe otherwise. >> In order to >> make this point, you should tell more about readability, redundancy, >> typing, early error detection, about the stuff UML obviously lacks. > > I'm not sure I should say this but you might want to bring > your knowledge of UML up to date. Even StP went far to make > sure your model was checked in all sorts of directions. Assembler checks the code in that sorts of direction too. It just lacks that lobby to organize a promotion campaign... >>>> That was your idea of a tool as a substitute for competence. >>> >>> I meant tools not as a substitute, but rather as a guide. >> >> Why the compiler cannot be a guide? > > The compiler is a guide where it "knows the area". Why this area must be different for an Ada compiler and a UML diagram interpreter? > But there are things that have no specific representation > in a source program. Rather, you as a programmer have to infer them > and the compiler cannot help. Such as collaboration schemes > between objects, their order, etc. These associations, > relations, etc. are not easily spotted, not in one > place, in a source program. The compiler won't tell you. and UML would? >>>>> If UML notation captures much of your model >>>> >>>> The model of what, and what role plays the word "if" in this sentence. >>> >>> As outlined above, a model might capture which objects collaborate >>> to achieve a certain effect (and no other objects are involved). >> >> Why an Ada program cannot capture this? > > > A typical item that, I think, will be easier to express as a > model element than to program in source text is a thing external > to the program that influences the program's control structure: Sorry, I don't understand this. Why a thing important to the program must be external to it? Why this thing must be external in Ada, but internal in UML? > Suppose there is a setup like the following: some external entity > acts as a mutex controlling concurrent activities of > co-operating "jobs". Don't use low-level concurrency primitives. Ada has better means for that. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de