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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb77,5f529c91be2ac930 X-Google-Attributes: gidfdb77,public X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,59ec73856b699922 X-Google-Attributes: gid1108a1,public X-Google-ArrivalTime: 2003-05-11 13:11:33 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news-out.nuthinbutnews.com!propagator2-sterling!news-in.nuthinbutnews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny01.gnilink.net.POSTED!53ab2750!not-for-mail From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030419 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.java.advocacy,comp.object,comp.lang.ada Subject: Re: Using Ada for device drivers? (Was: the Ada mandate, and why it collapsed and died) References: <9fa75d42.0304230424.10612b1a@posting.google.com> <9fa75d42.0304240446.493ca906@posting.google.com> <3EA7E0E3.8020407@crs4.it> <9fa75d42.0304240950.45114a39@posting.google.com> <4a885870.0304291909.300765f@posting.google.com> <416273D61ACF7FEF.82C1D1AC17296926.FF0BFD4934A03813@lp.airnews.net> <9fa75d42.0305010621.55e99deb@posting.google.com> <0-WcnWfafqsNpiyjXTWcqw@gbronline.com> <1051804573.732603@master.nyc.kbcfp.com> <3EBE9BD4.1050008@attbi.com> In-Reply-To: <3EBE9BD4.1050008@attbi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 11 May 2003 20:11:31 GMT NNTP-Posting-Host: 162.84.205.197 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny01.gnilink.net 1052683891 162.84.205.197 (Sun, 11 May 2003 16:11:31 EDT) NNTP-Posting-Date: Sun, 11 May 2003 16:11:31 EDT Xref: archiver1.google.com comp.lang.java.advocacy:63526 comp.object:63205 comp.lang.ada:37195 Date: 2003-05-11T20:11:31+00:00 List-Id: Robert I. Eachus wrote: > Shuffle(Deck, Gen); > > It is really, really hard to have bugs in code that is as unsubtle as > that. And even if the universe changes, the changes are pretty > localized. For example, it would take just a few minutes to change the > code to deal Pinochle hands, or even to switch to a Tarot deck. I think this is a perfect example of the blind spot of Ada programmers. You are so enamored of enumerations and perfectly indexed arrays and lack of buffer overflows that you will probably miss the most likely and subtle bug of this kind of code, which is that the Shuffle routine fails to produce each possible permutation with uniform probability!