Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 10 Jul 2011 13:29:44 -0500 Date: Sun, 10 Jul 2011 11:29:39 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Arithmetic overflow checking References: <015aeb15-57db-48ab-9cd4-77f8448b632f@w24g2000yqw.googlegroups.com> <2rydnez7l-H5BYnTnZ2dnUVZ_vGdnZ2d@earthlink.com> <9LWdnZH2hdfmyYvTnZ2dnUVZ_vidnZ2d@posted.palinacquisition> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <1K2dnVVEK60FcoTTnZ2dnUVZ_hKdnZ2d@earthlink.com> Lines: 42 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 75.11.53.97 X-Trace: sv3-TYfoW2sqpfHb9W2VtIvIOA/xxKmIssu0aZftornJVFCJB4Ow2r0V6gpLkxibjqx9qc9q4b6XEWNDx6V!BOFim7X3w5Sbg06Y9IAQk45GTyCiuv5i9PQfNg/YycjADj0eOOLaMCcdkBtCia/8+mS6zf5+ifbD!yVGdr5v+dJnbCVeiy/XLL+hOcPsySjzhpAbCJS3lLYw= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3413 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6055 On 7/10/2011 11:07 AM, Martin Gregorie wrote: > On Sun, 10 Jul 2011 10:53:09 -0400, David Lamb wrote: > >> On 08/07/2011 12:30 AM, Eric Sosman wrote: >>> On 7/7/2011 8:51 PM, Peter Duniho wrote: >>>> [...] >>>> I would not worry about the "simple" or "efficient" criteria. IMHO, if >>>> one is deciding to apply overflow checking to every computation, one >>>> has already abandoned the hope of efficiency. >>> >>> I've used machines that raised overflow traps "for free," >> ... >>> (The machines I speak of were from forty-odd years ago >> >> When microprocessors started to arrive on the scene, a lot of old-timey >> hardware folks said they'd forgotten 30+ years of hardware design. When >> operating systems for computers based on said processors came out, a lot >> of old-timey software folks said they'd forgotten 30+ years of operating >> system design. We seem to still be suffering the consequences. > > That happened not once, but twice. > > The first great leap backward was the minicomputer era, when the likes of > the PDP-8 arrived with a single user, single tasking OS reminiscent of > early computers, except they generally had teletypes instead of banks of > switches and flashing lights. By then the better mainframes were multi- > user, multitasking beasts. > > Then the first microcomputers arrived in the mid/late '70s. By this time > the better minis had multi-tasking operating systems, but micros had re- > implemented the earliest mini OSes - CP/M was near as dammit a copy of > the old PDP-8 OS (RSTS?) from the late 60s - and the earliest micros even > had switches and flashing lights (KIM-1, IMSAI 8080). By 1980 the minis > were running UNIX but the latest and greatest micros had - drumroll - MS- > DOS! > > Only twice? Aren't you forgetting "smart" phones. One of the great advances in Android is (Drum roll!) multitasking!!! Patricia