From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,71c35a0e73c110d5 X-Google-Attributes: gidfcda7,public X-Google-Thread: 10872d,71c35a0e73c110d5 X-Google-Attributes: gid10872d,public X-Google-Thread: 1164f8,71c35a0e73c110d5 X-Google-Attributes: gid1164f8,public X-Google-Thread: fa528,71c35a0e73c110d5 X-Google-Attributes: gidfa528,public X-Google-Thread: 115614,71c35a0e73c110d5 X-Google-Attributes: gid115614,public X-Google-Thread: 11035d,71c35a0e73c110d5 X-Google-Attributes: gid11035d,public X-Google-ArrivalTime: 2003-08-02 17:48:01 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: "Uli Link" Newsgroups: comp.sys.hp.hpux,comp.unix.tru64,comp.sys.dec,comp.unix.solaris,comp.sys.sgi.admin,comp.unix.aix Subject: Re: Free UNIX for non-commerical use. Date: Sun, 3 Aug 2003 02:45:22 +0200 Organization: T-Online Message-ID: References: <3F233C74.4F4C3BAB@ntlworld.com> <3F2368E5.ED5037A0@hotmail.com> <3F23A005.83B7C2DA@hotmail.com> <3f23a698$0$15040$cc9e4d1f@news.dial.pipex.com> <3F251918.B861101C@ntlworld.com> <3F2C375C.F3C56116@ntlworld.com> Reply-To: "Uli Link" Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1059871524 01 18220 YZxYVscESzaF8Y 030803 00:45:24 X-Complaints-To: usenet-abuse@t-online.de X-ID: VPKbHyZZrenQwXvqkNiTYHqEeNdMBf9Mw5OASS2XATzN0GrND7qbYd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.sys.hp.hpux:30071 comp.unix.tru64:10500 comp.sys.dec:16569 comp.unix.solaris:164584 comp.sys.sgi.admin:18879 comp.unix.aix:54277 > > > How can one be sure that such peak optimized code works correct in all > > circumstances, since it cannot be debugged or tested in full. At highest > > level nearly all modules give a warning of the optimizer. > > No problem if mpg123 crashes one day with a special mp3, but most apps > > are a little more critical. > Automated testing can do a lot to help this. Agree. Let's take a closer look. > In an application I wrote, > http://atlc.sourceforge.net/ > a number of programs are used to automatically generate bitmaps. The > md5 checksums of those bitmaps are then compared to what's expected. > That's even closer. > Once the bitmaps are generated, another floating point intensive > program performs a numerically intensive finite difference computation > on these bitmaps, generating some answers as text and some more > bitmaps. The numerical answers are checked against those expected. The > md5 checksums of the bitmaps are checked against those expected. > > When I say against 'what is expected' I'm comparing the results on a > number of platforms, running a number of different operating systems > using a number of different compilers at a number of different > optimisation levels. Sounds like many, many hours of hard work needed before you know what is expected. > What I have found is that the bitmaps generated by the floating point > code do vary a little between platforms, but only by a single pixel > and then only by a single gray level. In other words, this appears to > be different rounding errors on the different platforms and is so > insignificant. The other way round: expect _and_ accept insignificant differences. This means defining borders within a result is accepted. Real problem are often more complex as at a first thought. Needs a lot of investigation finding bitmaps similar but you cannot easy compare by checksum. I know a lot of programmers avoiding floating point arithmetics for much easier getting exact measurable results. > However, it is easy to not think to write a specific test - only after > you found a bug and realised my tests don't check for that problem. So > I add a test to the testsuite. Every engineer must lern to check the fault bandwith together with the measured results. It is impossible the prove a non-trivial programm as fault free, if built by faulty compilers, complex programming languages, and libs by human. But with more and systematic test case it is more likely that the program will work within it's tested borders. Spent 2 years with Y2k testing and we found lots of bugs, most not Y2k related. Many in system libs. But I've met managers believing that buying some expensive test tools is sufficant. They like to forget the time needed for defining the criteria of expected results. To my expierience the greatest problem in software projects is, that there are no expected results specified, before delivery to test. You can't use all those nice tools without thinking about what you want to do with them. You'll benefit from use only if they are integrated in the development from very beginning. All this is complex enough with a single thread, and then you will need to test with mass data for deadlocks between threads. > There's not a lot more one can do I guess, unless of course you have > the time/budget to apply more formal methods, like you would if > writing code for a missile guidance system. Don't believe in missile guidance systems or a recent upperclass automobile, not even those from Germany. Too much secrets and too much political-strategic-struggles concerning individuals career to give quality a chance. And (too much) formalism _can_ kill the individuals responsibility for the quality of its work. The absence of those factors is perhaps the greatest influence on the quality of open source development. --- Uli