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!mx02.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Running a preprocessor from GPS? Date: Fri, 31 Jul 2015 11:07:29 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <2df4698f-4c8e-457c-822d-209cb2f8ab5e@googlegroups.com> <014427b1-ff7a-4a69-82e6-0330af77ed96@googlegroups.com> <91f88d79-197c-419f-84a8-908e05967a2c@googlegroups.com> <135c2b00-d13c-4f5d-a586-8aca442d363b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 31 Jul 2015 11:07:29 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="11855"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SUAoJKjp/00tsZWg6osl+DLISbzVB0Lk=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:o23UJyJ3n/PEPkaa1NvqMBnWdj0= Xref: news.eternal-september.org comp.lang.ada:27262 Date: 2015-07-31T11:07:29+00:00 List-Id: On Thu, 30 Jul 2015 06:30:32 -0700, EGarrulo wrote: > On Thursday, July 30, 2015 at 1:36:56 PM UTC+2, Brian Drummond wrote: >> On Thu, 30 Jul 2015 10:23:25 +0200, Georg Bauhaus wrote: >> >> > On 30.07.15 10:03, EGarrulo wrote: >> >> >> >> Ada doesn't offer any facility for automatic resource management, >> > Is this about GC only? >> No, since he widens the discussion beyond just memory as a resource, I >> suspect he means controlled types. > > Yes, I mean controlled types. As far as I can tell, right now > controlled types are useful for resources that are local to a routine, > but they don't scale well for shared resources because of insufficient > support from the language. I know that non-intrusive shared pointers > have been implemented in Ada (just a couple of months ago, though, but > late is better than never), but they feel cumbersome and error-prone to > use. I suspect what's missing isn't so much anything in controlled types themselves, but something like an Ada Gems worked example showing their use in a non-trivial example. At least I can't point at a good example offhand. -- Brian