From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,b0b9a5eaad4ab6eb X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,b0b9a5eaad4ab6eb X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,b0b9a5eaad4ab6eb X-Google-Attributes: gid102b75,public From: albaugh@agames.com (Mike Albaugh) Subject: Re: Wildfire and NT Date: 1998/02/25 Message-ID: <6d1ima$csr$1@void.agames.com>#1/1 X-Deja-AN: 328551857 References: <6csl81$rb9@news-rocq.inria.fr> <34F3B7C5.5FD1@earthlink.net> Followup-To: comp.arch Organization: Atari Games Corporation Newsgroups: comp.sys.dec,vmsnet.alpha,comp.arch,comp.sys.intel I _was_ just going to reply, but apparently the header is wedged. Oh, well, you comp.arch guys are used to my ramblings and the rest of you might consider: (Note, I trimmed the followups) Sean Burke (Iburke@earthlink.net) wrote: : Today, we use malloc'ed objects, storing the pointers in linked-lists, : btrees and hash tables. These data structures come with a lot of : overhead both in space and time - malloc overhead, pointer-indirection, : etc. But they are more flexible than arrays, and in modern systems, : the overhead just isn't often noticeable. Of course, this is also not as reliable, especially if, as is still _way_ too common, the programmer ignores the possibility of a NULL return value from malloc, or the system "overcommits" swap space in an attempt to push that NULL return further into the future. The symptoms of this disease are exactly what we see in "modern" software, random crashes for no apparent reason, well past the initial cause, rather than that annoying old "I can't do that for you right now" sort of error message. Better? Well, obviously so, since the market has voted for it. I just can't wait until the Air Route Traffic Control (or Flight Management) software is re-written to such modern standards... :-) BTW, "exceptions" are not so clearly "the answer" either, since they may force some pretty sophisticatd "post mortem" code to be run in what, by definition, is an "exceptional" (hence, probably lightly exercised and more likely to have bugs) circumstance. TANSTAAFL. Mike | albaugh@agames.com, speaking only for myself