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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8e11100f675ea2df X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.86.130 with SMTP id p2mr5649317paz.22.1357112527319; Tue, 01 Jan 2013 23:42:07 -0800 (PST) Path: 6ni77159pbd.1!nntp.google.com!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 02 Jan 2013 01:42:06 -0600 Date: Tue, 01 Jan 2013 23:36:13 -0800 From: Charles Hixson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121122 Icedove/10.0.11 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: asynchronous task communication References: <1c2dnd5E6PMDR33NnZ2dnUVZ_sednZ2d@earthlink.com> <50e18094$0$6583$9b4e6d93@newsspool3.arcor-online.net> <7NednS4s2oukfXzNnZ2dnUVZ_oadnZ2d@earthlink.com> <7cudnYloBfQDw3_NnZ2dnUVZ_rKdnZ2d@earthlink.com> In-Reply-To: Message-ID: X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 216.244.16.210 X-Trace: sv3-ekTGeRfySUVCmLUXk385nX1YScY98trZdTuHtGcA5EsJyKATsFJDcMF/K2s4yP4pgAIJaHpbdERUXpD!H3NMXAY2BO2uWrXRIErXPCif7G12JE3CwCAnUE1TiBpXTgU8CF9PK2FoD42C4iF40jmrpKCe+XY7!DVIWAB/b85EgCBqUQxKeBg== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2877 X-Received-Bytes: 3018 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2013-01-01T23:36:13-08:00 List-Id: On 01/01/2013 10:54 AM, Robert A Duff wrote: > Charles Hixson writes: > >> ...I really preferred a language with a garbage collector, > > I have used the Boehm garbage collector successfully with Ada. > > You could also consider use-defined storage pools. > I don't know enough detail of what you're doing to know > if they would help. > > - Bob I don't think storage pools would help, though I admit I don't understand them. And at my level of skill at Ada, attempting to install a non-standard component (i.e. the garbage collector) is inviting disaster. Actually, for the current project the need for garbage collection is minimal...but I often do things where garbage collection really simplifies memory management. Even on this one I'm going to need to figure out how to recycle memory with Ada.Collections.Vectors attached, as different cells will connect to differing numbers of other cells. The documentation is a bit unclear as to exactly what various routines in the Ada.Collections.Vectors do to memory that has been allocated. (By a a bit unclear I mean they give you the name, and expect you to know how it handles memory...either that, or it isn't specified by the standard. I haven't dug into the AARM...the first couple of pages of it were too intimidating to go any further. I should try again on a copy without the changes.)