From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,37e683828bae12e2 X-Google-Attributes: gid109fba,public X-Google-Thread: 1008e3,37e683828bae12e2 X-Google-Attributes: gid1008e3,public X-Google-Thread: f8c65,37e683828bae12e2 X-Google-Attributes: gidf8c65,public X-Google-Thread: 1014db,37e683828bae12e2 X-Google-Attributes: gid1014db,public X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public From: Martin@nezumi.demon.co.uk (Martin Tom Brown) Subject: Re: [++] Tight coding Date: 1998/03/02 Message-ID: <888847977snz@nezumi.demon.co.uk>#1/1 X-Deja-AN: 330079370 References: <6csl81$rb9@news-rocq.inria.fr> <34F3B7C5.5FD1@earthlink.net> <34F49435.B6307838@hda.hydro.com> <6dbgjv$lg$1@andros.cygnus.com> <34F97152.DBF199BD@sds-sportdata.com> <6dcdvp$6oa$1@mainsrv.main.nc.us> X-Mail2News-User: Martin@nezumi.demon.co.uk X-Complaints-To: abuse@demon.net X-Mail2News-Path: nezumi.demon.co.uk X-Trace: mail2news.demon.co.uk 888862437 555 Martin nezumi.demon.co.uk Organization: Nezumi Reply-To: Martin@nezumi.demon.co.uk Newsgroups: comp.sys.dec,comp.lang.c++,comp.lang.c,comp.lang.modula2,comp.lang.modula3 In article <6dcdvp$6oa$1@mainsrv.main.nc.us> scott@softbase.com writes: > The best refutation of proofs for programs is in Peter van der Linden's > Deep C Secrets. He shows a page from such a proof, which is > incomprehensible to anyone other than a theoretical mathematician, and > then describes a Usenet flame war about an error in a proof. ISTR that the program proofs of the x87 microcode which I think were sponsored by Cyrix revealed several important x87 implementation bugs. Proof of correctness can be useful and *important* sometimes. > There are not enough programmers to go around, and requiring > mathematicians to prove programs on top of them will never work. In fact the best scope for having reusable components is if they come with a proof or certificate of fitness for purpose. The trend unfortunately is toward the shrink wrap disclaimer :( > only hope we have is "black box" object programming, where an object is > just a plug-in component. It will either work reliably, or can be > replaced if it does not. To define "work reliably" you have to specify what it does, over what domains of input, and what happens with out of domain data. Enumerating all cases is impossible so you are back to some sort of formal method to manipulate expressions in general terms. Ariane 5 is a salutory warning about what happens when you reuse code without properly analysing the differences in specification. Regards, -- Martin Brown __ CIS: 71651,470 Scientific Software Consultancy /^,,)__/