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,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!newshub.sdsu.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: CTips Newsgroups: comp.lang.ada,comp.realtime,comp.software-eng Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: Wed, 09 Mar 2005 21:09:16 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <112vb2t8eonuhed@corp.supernews.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <112rs0bdr2aftdf@corp.supernews.com> <1inxxr988rxgg$.1w9dedak41k89.dlg@40tude.net> <112s1r0rf0o8nca@corp.supernews.com> <112sonip5v4dca6@corp.supernews.com> <112t3de6fu04f38@corp.supernews.com> <1110396477.596174.285520@o13g2000cwo.googlegroups.com> In-Reply-To: <1110396477.596174.285520@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@supernews.com Xref: g2news1.google.com comp.lang.ada:8991 comp.realtime:1168 comp.software-eng:4728 Date: 2005-03-09T21:09:16-05:00 List-Id: jimmaureenrogers@worldnet.att.net wrote: > CTips wrote: > >>Jim Rogers wrote: >> >> >>>CTips wrote in >>>news:112sonip5v4dca6@corp.supernews.com: >>>If you want different scheduling policies you write them, just as >>>in C or C++. >> >>Right - and then what's the advantage of the built-in features of Ada > > >>over and >> > > > The advantage of the built-in features are that they are a very > good implementation of a tasking model. You seem to have two > standards. C is good because you can do what you want while > Ada is bad because it does not do everything for you. Nope, I'm not saying that. What I am saying is that: - the safety features of Ada can come with a significant run-time cost - you're going to end up escaping out of Ada for a lot of things (particularily in systems programming). C doesn't have that cost. However, if you want to have similar levels of checking, you have to roll your own run-time checks. On the other hand, because you're rolling your own, the run-time checks are a lot less expensive. Also, since a lot of interesting things require escaping from the core language and bending the rules of the language, you have two options: - you can write it all in assembly - or you can write in a language where you can reasonably expect that your bending of the rules won't make the compiler do something you didn't expect. I'd rather use C for this purpose.