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!feeder.eternal-september.org!news.unit0.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: How to get Ada to ?cross the chasm?? Date: Fri, 11 May 2018 10:37:19 +0300 Organization: Tidorum Ltd Message-ID: References: <1c73f159-eae4-4ae7-a348-03964b007197@googlegroups.com> <87k1su7nag.fsf@nightsong.com> <87po2la2qt.fsf@nightsong.com> <87in8buttb.fsf@jacob-sparre.dk> <87wowqpowu.fsf@nightsong.com> <16406268-83df-4564-8855-9bd0fe9caac0@googlegroups.com> <87o9i2pkcr.fsf@nightsong.com> <87in88m43h.fsf@nightsong.com> <87efiuope8.fsf@nightsong.com> <322f9b26-01de-4753-bb50-6ef2f3d993d8@googlegroups.com> <87a7th9pd1.fsf@nightsong.com> <87h8no1nli.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Jwk6R6ZRIpNiXl87nfSjEw2LewtDqFdY72WG/tsRgHzDc5nQFT Cancel-Lock: sha1:jkI97ZBS5MQzWf+Meo+roeu7GCs= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Xref: reader02.eternal-september.org comp.lang.ada:52246 Date: 2018-05-11T10:37:19+03:00 List-Id: On 18-05-10 01:05 , Randy Brukardt wrote: > "Niklas Holsti" wrote in message > news:flegbrFj0qjU1@mid.individual.net... >> On 18-05-04 01:27 , Randy Brukardt wrote: >> >> [snip] >> >>> There is no realistic chance that Ada will >>> ever be changed enough to make it amenable to GC. [snip] > If one uses the canonical linked-list > implementation of finalization, objects with controlled parts remain > reachable until the appropriate master goes away -- so nothing gets > collected. (And a similar effect is necessary regardless of how finalization > is implemented.) There still can be an underlying GC and it can be used just > fine -- no one said anything about it actually be able to collect much. Can one summarize the effect of the current Ada rules as follows: - for dynamically allocated objects that do not need finalization, a GC implementation could release them when they become unreachable, just as in other languages, - for objects that do need finalization, a GC implementation would have to delay releasing the objects until their types go out of scope, which in most cases would not happen before the program is about to terminate? If so, the conclusion is that GC is becoming ineffective for Ada, because Ada programming style is changing to make more use of controlled types and finalization. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .