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: 103376,15d5eb6390443ef2 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!flph200.ffdc.sbc.com!prodigy.net!flph199.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!flpi150.ffdc.sbc.com.POSTED!b5cf28ff!not-for-mail From: Dimonax Subject: Re: Immutable and Transient Objects and GC? Newsgroups: comp.lang.ada References: <0fb0ee0b-b5af-45af-b93c-fc6e931930fd@z1g2000yqn.googlegroups.com> User-Agent: Pan/0.133 (House of Butterflies) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <61ewl.12556$hc1.5538@flpi150.ffdc.sbc.com> NNTP-Posting-Host: 75.48.217.250 X-Complaints-To: abuse@prodigy.net X-Trace: flpi150.ffdc.sbc.com 1237413058 ST000 75.48.217.250 (Wed, 18 Mar 2009 17:50:58 EDT) NNTP-Posting-Date: Wed, 18 Mar 2009 17:50:58 EDT Organization: at&t http://my.att.net/ X-UserInfo1: OP[YBXWDLJUURW\[BBHZ_WTAUC\NQOPDLXUNNHXIJYWZUYICD^RAQBKZQTZTX\_I[^G_KGFNON[ZOE_AZNVO^\XGGNTCIRPIJH[@RQKBXLRZ@CD^HKANYVW@RLGEZEJN@\_WZJBNZYYKVIOR]T]MNMG_Z[YVWSCH_Q[GPC_A@CARQVXDSDA^M]@DRVUM@RBM Date: Wed, 18 Mar 2009 21:50:58 GMT Xref: g2news1.google.com comp.lang.ada:4177 Date: 2009-03-18T21:50:58+00:00 List-Id: On Wed, 18 Mar 2009 14:32:55 -0700, Maciej Sobczak wrote: > In other words, if the given object *happens* to be immutable as a > result of the problem analysis and this fact can help with concurrency, > then it is a worthy coincidence; but when immutability of objects is > *imposed* in order to solve some unrelated concurrency (or other) > issues, then it is just a design distortion. Good point. However, what about Transient Objects, which seem to be pretty much the inverse of Immutable Objects. Ala Forth They make sense for a lot of data structures, particulary sequential structures like stacks, queues, etc... Thier property of being immediately freed upon thier first access means that I can make a lot of optimizations that arent available to regular data types. Freejack