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!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Getting the index for an element in mutually referencing containers Date: Sun, 12 Mar 2017 11:21:28 +0000 Organization: A noiseless patient Spider Message-ID: References: <86o9xa36oq.fsf@gaheris.avalon.lan> <86k27xpikd.fsf@gaheris.avalon.lan> <86wpbxneuz.fsf@gaheris.avalon.lan> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c479a7425843be0b5ee4598132ad9704"; logging-data="29836"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TKKCqyc1786ASLVFTy5BP0aZykbPCs6w=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:SUmIxDVvBf2DIaayEln9kLgNI84= sha1:IvTPRYUKyUL141CfvRudN/LetLE= Xref: news.eternal-september.org comp.lang.ada:27852 Date: 2017-03-12T11:21:28+00:00 List-Id: "G.B." writes: > On 12.03.17 09:22, Simon Wright wrote: >> Niklas Holsti writes: >>> How about this one: the SW generates messages (telemetry packets) >>> reporting various sorts of data and events. >>> This use of reference counting is a typical design in satellite >>> on-board SW. >> I still have a feeling that this is an in-computer software technique >> which resolves a software problem, rather than a necessary response >> to an application-domain problem. > > The radio operators, log inspectors, or message-monitoring staff might > feel overlooked after being changed into a software problem! ;-) Yes, but you could solve that by sending a copy of each message to seach recipient, rather than a reference to a reference-counted message. Reference counting is a solution to an internal (memory, possibly time) resource problem.