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: G. B. Newsgroups: comp.lang.ada Subject: Re: Ada in command / control systems Date: Wed, 6 Mar 2019 07:26:07 -0000 (UTC) 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-Date: Wed, 6 Mar 2019 07:26:07 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="c4a36b287123c330c876c36fcdbb2898"; logging-data="15979"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4SAHjDuxc8X6Xy/wIIAuyhpoquSzMHTs=" User-Agent: NewsTap/5.3.3 (iPhone/iPod Touch) Cancel-Lock: sha1:FoEtOEI1t2XdrBJsYjOvl8K1KCg= sha1:rQPLcQQIgJUmzCzM1ApKB4EP93U= Xref: reader01.eternal-september.org comp.lang.ada:55794 Date: 2019-03-06T07:26:07+00:00 List-Id: 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. I think that pictures can outline these kinds of structure. They document the participating objects and their interactions. So, maybe the UML, say, can serve a purpose here, if we manage to link broad ideas (pictures) and detailed implementation (source) mechanically.