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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada in command / control systems Date: Wed, 06 Mar 2019 12:04:57 +0000 Organization: A noiseless patient Spider Message-ID: References: <2199b15b-d704-403f-a6c4-00fab29792d5@googlegroups.com> <72738cc8-3f65-4cc1-8c61-b1166cb5e3c2@googlegroups.com> <9807ec3a-4c34-4641-acfa-e9cf22de95ce@googlegroups.com> <520809e3-a705-4b10-8b54-6d67c33158a6@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="34c5f516e26dcf0f77b6133f2467f457"; logging-data="5285"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189EPOvme65QuSM9+vPgn5TP5e5vIqEBZ8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:9eKii8mO0sJScWiv1CH+UJ9jyV4= sha1:8n49yYcMQ0sbQCibsmmYVMhx1eE= Xref: reader01.eternal-september.org comp.lang.ada:55799 Date: 2019-03-06T12:04:57+00:00 List-Id: "Dmitry A. Kazakov" writes: > On 2019-03-06 08:26, G. B. wrote: >> Niklas Holsti wrote: >> >>> The design pictures that are really useful for understanding a piece >>> of SW are almost always abstractions and simplifications and could >>> be called "useful lies". Unfortunately this means that the pictures >>> must be manually created, and manually maintained as the SW evolves. >> >> I like to think that there are “almost-pictures”. When I want to >> understand a concurrent Ada program, then this may require knowing >> the communications while keeping in mind the shared resources. For >> understanding communications, Ada offers some visual(!) clues: e.g., >> the control structure of a task body together with „accept“ and >> “requeue”. There may be “select” at the other end. These appear(!) in >> predictable places, shaped by syntax and style(!). That’s the start >> of a picture . And it’s abstraction, since presumably I shouldn’t >> need to study most of the details in between the visual clues. Call >> the result semantic folding that focuses on communications. > > You refer more or less the UML sequence diagram here. > > The problem with this sort of pictures is its literality. They > represent an instance of task communication and not communication in > its entirety as an abstraction of multitude of possible communication > instances. I once bought "System Design with Ada", R J A Buhr, Prentice Hall 1984, for a lot of money (at the time), which I deeply regretted. He had a diagrammatic notation for every possible mode of operation of a task entry or a select statement. And more. The thing was, you might as well have read/written the Ada.