From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public X-Google-Thread: f8c65,37e683828bae12e2 X-Google-Attributes: gidf8c65,public X-Google-Thread: 1014db,37e683828bae12e2 X-Google-Attributes: gid1014db,public X-Google-Thread: 1008e3,37e683828bae12e2 X-Google-Attributes: gid1008e3,public X-Google-Thread: 109fba,37e683828bae12e2 X-Google-Attributes: gid109fba,public From: T.Moore@massey.ac.nz (Terry Moore) Subject: Re: [++] Tight coding Date: 1998/03/02 Message-ID: #1/1 X-Deja-AN: 329879777 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> Organization: Massey University 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 wrote: > 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. > > There are not enough programmers to go around, and requiring > mathematicians to prove programs on top of them will never work. That is not the way to use proofs of programs. It's much easier to develop the proof along with the program, so it's the programmer's task, not the mathematician's. You might think that proofs add to the time to develop a program, but you must remember that finding and fixing bugs is also very time consuming, and is not guaranteed to be successful. The > 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. Who proves the component is correct? As Dijkstra says "Testing can only show the presence of errors, not their absence". -- Terry Moore, Statistics Department, Massey University, New Zealand. Theorems! I need theorems. Give me the theorems and I shall find the proofs easily enough. Bernard Riemann