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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6b6181765c24743 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-05 14:46:20 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!144.212.100.101!newsfeed.mathworks.com!cyclone.swbell.net!nnrp3.sbc.net.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: <3a7646fb$1@rsl2.rslnet.net> <956ols$qtv$1@news.cis.ohio-state.edu> <95eumd$8i41@news.cis.okstate.edu> <95n3oi$5nh$1@news.cis.ohio-state.edu> Subject: Re: Generics - Difference between ADA and Modula--3 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <%2Gf6.63$co.84458@nnrp3.sbc.net> Date: Mon, 5 Feb 2001 16:46:18 -0600 NNTP-Posting-Host: 208.191.184.67 X-Complaints-To: abuse@swbell.net X-Trace: nnrp3.sbc.net 981413179 208.191.184.67 (Mon, 05 Feb 2001 16:46:19 CST) NNTP-Posting-Date: Mon, 05 Feb 2001 16:46:19 CST Organization: SBC Internet Services Xref: supernews.google.com comp.lang.ada:4950 Date: 2001-02-05T16:46:18-06:00 List-Id: "Mark Carroll" wrote in message news:95n3oi$5nh$1@news.cis.ohio-state.edu... > In article <95eumd$8i41@news.cis.okstate.edu>, > David Starner wrote: > (snip) > >Like what? I can give a short overview, but I'm not sure it will > > I don't yet know enough about Ada to say. (-: > > >be helpful. > > >Modula-3 is designed to be garbage-collected, and provides controls to > >handle stuff without garbage-collections. > >Ada is designed so that it is possible to garbage-collect it. It's > >only garbage-collected on the JVM's, which don't give you any control. > >If there was another GC implementation, any garbage-collection control > >would be implementation-specific. > > That's a pity. So, there aren't any Ada compilers that compile to > native code and offer a runtime with decent GC? IIRC, GNAT works with Boehm's GC, and I'm told by a former insider that the Aonix implementation works with a third-party GC product. I've never done either. > Are there any other > special tricks used to make memory management easier than, say, a C > programmer might expect? Some are built into the language (e.g., you never have to worry about alignment of allocated values, unlike what one *should* do with C) and some are available hooks, like user-defined allocators that can provide predictable behaviour. But overall, things work at a more abstract, safe level. For example, access values are always meaningful unless you explicitly (and clearly) mess up. --- Patrick Rogers Consulting and Training in: http://www.classwide.com Real-Time/OO Languages progers@classwide.com Hard Deadline Schedulability Analysis (281)648-3165 Software Fault Tolerance