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: f8c65,37e683828bae12e2 X-Google-Attributes: gidf8c65,public X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public X-Google-Thread: 1014db,37e683828bae12e2 X-Google-Attributes: gid1014db,public X-Google-Thread: 1008e3,37e683828bae12e2 X-Google-Attributes: gid1008e3,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: [++] Tight coding Date: 1998/03/01 Message-ID: <1998Mar1.144246.1@eisner>#1/1 X-Deja-AN: 329780247 X-Nntp-Posting-Host: eisner.decus.org References: <6csl81$rb9@news-rocq.inria.fr> <34F3B7C5.5FD1@earthlink.net> <34F49435.B6307838@hda.hydro.com> <6dbgjv$lg$1@andros.cygnus.com> X-Trace: news.decus.org 888781369 16503 KILGALLEN [192.67.173.2] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.sys.dec,comp.lang.c++,comp.lang.c,comp.lang.modula2,comp.lang.modula3 In article <6dbgjv$lg$1@andros.cygnus.com>, billm@cygnus.com (Bill Moyer) writes: > I think that techniques discarded in the past for being slow, > inconvenient, or impractical (memory segmentation with bounds > checking, strong type checking, compile-time proving of code > correctness, et al) might be worth another look. Run-time > bounds checking increases the processor power required to run > applications, but applications which are bottlenecked by crash > frequency (eg, programmer error in pointer arithmetic) would > benefit from it. You may not have noticed the massive cross-posting, but this thread goes to comp.sys.dec where at least some of us now use strong type checking and avoid pointer arithmetic... > Changing the programming language to improve compile-time > verification of code correctness (with richer and stronger > types, richer static semantic sets, and compile-time range > tracking) would locate more bugs at compile-time, reduce the > number of bugs in a "finished" product, and reduce the overall > time spent in the development cycle (because finding run-time > bugs is a much longer and more laborious task than finding > them at compile-time). It has been proven that the imperative > languages are not provable (ie, for any turing-complete imper- > ative language, a program can be written which is not provably > correct or incorrect), but it is still possible to improve > provability by degrees, and we can do a lot better than C. ...not everyone reading your post uses C. Larry Kilgallen