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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,382fcf8feeefdd50 X-Google-Thread: 1014db,382fcf8feeefdd50 X-Google-Attributes: gid103376,gid1014db,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!y38g2000hsy.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada,comp.lang.c Subject: Re: computer language used to program Mars Lander Date: Mon, 14 Jul 2008 14:27:21 -0700 (PDT) Organization: http://groups.google.com Message-ID: <950d11a0-9da3-4529-aa6a-9a4ff2e86f50@y38g2000hsy.googlegroups.com> References: <185ee7f9-9d4f-4f49-8dbe-6b623b8a8223@c58g2000hsc.googlegroups.com> NNTP-Posting-Host: 85.3.82.18 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1216070842 28284 127.0.0.1 (14 Jul 2008 21:27:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 14 Jul 2008 21:27:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y38g2000hsy.googlegroups.com; posting-host=85.3.82.18; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6883 comp.lang.c:69742 Date: 2008-07-14T14:27:21-07:00 List-Id: On 14 Lip, 13:21, jacob navia wrote: > They do not use even memory allocation. They use a subset of C > > I am sure they do not use C++! Why? I would expect some parts of C++ being used, no matter how much constrained is the target environment. In particular, C++ has better and more expressive type system, destructors that can ensure proper execution of "exit" actions, better support for encapsulation, etc. All these are real advantages as far as safe and secure code is concerned and none of these require additional run-time resources. For example, would you like to have custom integer types with range checking in this critical software? (Expected answer on this group is "yes".) This is trivial in C++ and almost impossible in C. This alone is already a reason to prefer C++ over C for such systems. Now, why there is no Ada on Mars is another story - but don't worry about what Martians will think: they will not see the source code anyway. ;-) -- Maciej Sobczak * www.msobczak.com * www.inspirel.com