Gentoo Archives: gentoo-user

From: gottlieb@×××.edu
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: old farts slum_code enforcement
Date: Mon, 15 Sep 2014 19:00:03
Message-Id: 87d2aw90bf.fsf@nyu.edu
In Reply to: Re: [gentoo-user] OT: old farts slum_code enforcement by Alan McKinnon
1 On Mon, Sep 15 2014, Alan McKinnon wrote:
2
3 > My favourite Fortran story:
4 >
5 > One of the Mariner spacecraft yonks ago was sent a routine regular
6 > course correction. It flew off at some wild angle and was never seen
7 > again, and because the antenna was pointing in the wrong direction comms
8 > could not be re-established. Oops. Expensive spacecraft down the drain....
9 >
10 > The bug was eventually trace to a comma instead of a period in some
11 > Fortran code (made a huge difference). Note that many code reviews
12 > missed the bug, and the compiler accepted it as valid syntax
13
14 Perhaps instead of
15
16 Do 15 i=1,10
17
18 a loop from 1 to 10
19
20 we had
21
22 Do 15 i=1.10
23
24 which is the same in fortran as
25
26 do15i = 1.0
27
28 an assignment statement.
29
30 allan

Replies

Subject Author
Re: [gentoo-user] OT: old farts slum_code enforcement Alan McKinnon <alan.mckinnon@×××××.com>