From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffc31,8d2315bbfec7d11 X-Google-Attributes: gidffc31,public X-Google-Thread: fdd80,769bc7b1925998af X-Google-Attributes: gidfdd80,public X-Google-Thread: 10cebf,55be15e14d3dee4e X-Google-Attributes: gid10cebf,public X-Google-Thread: 1164f8,769bc7b1925998af X-Google-Attributes: gid1164f8,public From: bill@cs.uofs.edu (Bill Gunshannon) Subject: Re: Y2038 problems (Re: RT-11/TSX-PLUS Year 2000 Compliant Application Programs) Date: 1998/10/20 Message-ID: <70i1u3$lkv$1@info.cs.uofs.edu>#1/1 X-Deja-AN: 403169113 References: <3613A881.ED0E72FC@idirect.com> <70aoii$ejo$1@info.cs.uofs.edu> <70b49p$plo$1@andros.cygnus.com> <70fb3k$brb$1@info.cs.uofs.edu> <70g3ci$qi7$1@andros.cygnus.com> Organization: Computing Sciences Department, University of Scranton Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.sys.dec.micro,vmsnet.pdp-11 In article <70g3ci$qi7$1@andros.cygnus.com>, billm@cygnus.com (TTK Ciar) writes: |> |> I'm not talking about "writing bad code" here. The definition of |> the language itself puts hard limitations on what the compiler can do |> to optimize and error-check the code. For instance, in some languages |> having one parameter alias another is considered a programmer error |> and the compiler is free to assume that parameters refer to distinct |> data sets. Not only does C allow for aliasing, but it adopts a model |> which makes antialiasing particularly difficult (and in some cases |> theoretically impossible) to implement. This and other deficiencies |> prevent the compiler from utilizing ILP beyond a certain point and |> forces it to generate altogether too many load/store operations. C's |> weak typing etc makes it impossible to catch many errors at compile time, |> and makes it much harder to catch the classes of errors which can theo- |> retically be detected at compile time. So then I guess you also think screwdrivers should be outlawed as it is possible to use them for more than driving screws. If people use them for chisels, it is the fault of the design of the screwdriver so we should have no screwdrivers. Hmmm. |> |> We all know that the complete solution of detecting all errors at compile- |> time for a useful imperative language is impossible (it's called the halting |> problem), but we *can* catch some subset of all errors at compile-time, and |> the design of the language has great impact on on how large that subset can |> be. One should learn to program properly, but because many don't is no reason to handcuff the rest. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves bill@cs.uofs.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include