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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.170.25 with SMTP id t25mr46852920ioe.18.1438263032634; Thu, 30 Jul 2015 06:30:32 -0700 (PDT) X-Received: by 10.140.106.247 with SMTP id e110mr645687qgf.7.1438263032603; Thu, 30 Jul 2015 06:30:32 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f3no4920069igg.0!news-out.google.com!78ni71qge.1!nntp.google.com!z61no4174308qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 30 Jul 2015 06:30:32 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.203.145.32; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 NNTP-Posting-Host: 81.203.145.32 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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Running a preprocessor from GPS? From: EGarrulo Injection-Date: Thu, 30 Jul 2015 13:30:32 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27205 Date: 2015-07-30T06:30:32-07:00 List-Id: 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, and that makes it unsuitable for applications that > >> go beyond constrained embedded development. Who wants to chase > >> resource leaks in this day and age? > > > > Is this about GC only? > > No, since he widens the discussion beyond just memory as a resource, I > suspect he means controlled types. > > -- Brian 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.