Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch > #33479

Re: Help with a Mill-team internal discussion re preclusion of nasal demons?

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.arch
Subject Re: Help with a Mill-team internal discussion re preclusion of nasal demons?
Date 2016-02-04 13:18 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2016Feb4.141817@mips.complang.tuwien.ac.at> (permalink)
References <n8u0jv$4tl$1@dont-email.me>

Show all headers | View raw


Ivan Godard <ivan@millcomputing.com> writes:
>So much for background. The team discussion revolves around what our 
>compiler should do given the presence of implicit zero initialization. 
>We are using the clang/llvm toolset, but the same issues arise with gcc. 

A bad tree cannot bear good fruit (Matthew 7:18).  Either you want
nasal demons or you don't.  In the latter case, clang/llvm and gcc are
bad trees; they are big programs, and the nasal demon assumption is
spread wide and deep throughout them, and is getting spread wider and
deeper with every release by the current maintainers.  My guess is
that it's easier to write a new compiler or at least front end than to
sanitize these compilers from nasal demons, especially if you consider
maintenance.

Given that you chose to work with clang/LLVM, trying to work around
nasal demons by trying to insert additional IR code looks not very
promising as a general approach to me, but I guess your people have
thought about this much more than I have, so I may be wrong.

If you are not looking for getting rid of nasal demons in general, but
only of those related to the use of uninitialized variables, I wonder
about the cost/benefit ratio.  Even programmers who do not expect
nasal demons from compilers tend to avoid using uninitialized
variables, because the values of these variables tend to change on
maintenance, even if not in different executions; and they have been
helped in avoiding that by compiler warnings even in the days when
nasal demons were just figments from a C-hater's dream.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html

Back to comp.arch | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Help with a Mill-team internal discussion re preclusion of nasal demons? Ivan Godard <ivan@millcomputing.com> - 2016-02-03 14:59 -0800
  Re: Help with a Mill-team internal discussion re preclusion of nasal demons? Noob <root@127.0.0.1> - 2016-02-04 09:07 +0100
    Re: Help with a Mill-team internal discussion re preclusion of nasal demons? rpw3@rpw3.org (Rob Warnock) - 2016-02-04 10:20 +0000
      Re: Help with a Mill-team internal discussion re preclusion of nasal demons? Noob <root@127.0.0.1> - 2016-02-04 13:46 +0100
        Re: Help with a Mill-team internal discussion re preclusion of nasal demons? rpw3@rpw3.org (Rob Warnock) - 2016-02-04 14:06 +0000
    Re: Help with a Mill-team internal discussion re preclusion of nasal demons? nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-04 10:30 +0000
      Re: Help with a Mill-team internal discussion re preclusion of nasal demons? Noob <root@127.0.0.1> - 2016-02-04 13:55 +0100
        Re: Help with a Mill-team internal discussion re preclusion of nasal demons? nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-04 14:52 +0000
          Re: Help with a Mill-team internal discussion re preclusion of nasal demons? Noob <root@127.0.0.1> - 2016-02-04 16:28 +0100
            Re: Help with a Mill-team internal discussion re preclusion of nasal demons? nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-04 16:38 +0000
  Re: Help with a Mill-team internal discussion re preclusion of nasal demons? nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-04 10:40 +0000
    Re: Help with a Mill-team internal discussion re preclusion of nasal demons? Ivan Godard <ivan@millcomputing.com> - 2016-02-04 02:58 -0800
      Re: Help with a Mill-team internal discussion re preclusion of nasal demons? nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-04 12:20 +0000
        Re: Help with a Mill-team internal discussion re preclusion of nasal demons? Ivan Godard <ivan@millcomputing.com> - 2016-02-04 09:34 -0800
          Re: Help with a Mill-team internal discussion re preclusion of nasal demons? nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-04 18:25 +0000
      Re: Help with a Mill-team internal discussion re preclusion of nasal demons? Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-02-04 12:46 +0000
      Re: Help with a Mill-team internal discussion re preclusion of nasal demons? MitchAlsup <MitchAlsup@aol.com> - 2016-02-04 06:43 -0800
        Re: Help with a Mill-team internal discussion re preclusion of nasal demons? nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-04 14:49 +0000
  Re: Help with a Mill-team internal discussion re preclusion of nasal demons? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-04 13:18 +0000
  Re: Help with a Mill-team internal discussion re preclusion of nasal demons? timcaffrey@aol.com - 2016-02-04 10:05 -0800

csiph-web