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 2002:a6b:a6c4:: with SMTP id p187-v6mr11423288ioe.65.1526901159042; Mon, 21 May 2018 04:12:39 -0700 (PDT) X-Received: by 2002:a9d:604f:: with SMTP id v15-v6mr33025otj.11.1526901158809; Mon, 21 May 2018 04:12:38 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!v8-v6no4505908itc.0!news-out.google.com!f20-v6ni5182itd.0!nntp.google.com!v8-v6no4505900itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 21 May 2018 04:12:38 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1206:45c6:8b20:512c:bb7:56a:79fd; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:45c6:8b20:512c:bb7:56a:79fd References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: What about garbage collection? From: gautier_niouzes@hotmail.com Injection-Date: Mon, 21 May 2018 11:12:38 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:52535 Date: 2018-05-21T04:12:38-07:00 List-Id: That's an interesting topic. Funnily Microsoft is discovering *right now* that GC and heap allocation can be better sometimes replaced by stack allocation: https://www.infoq.com/news/2018/05/CSharp-7.3 int* block = stackalloc int[3] { 1, 2, 3 }; which has been already be possible since Pascal in the early 1970's (without initialization). Ada does like that with initialization: block: array(1..3) of Integer := (1, 2, 3); ... and further with unconstrained types (bounds not known at compile-time).