473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

The C language on Mars

There was a discussion some weeks ago about the C language
being "dead", where Mr Tisdale, as far as I know a NASA employee,
participated telling us that he is waiting for C programmers
to die off.

I have recently started to browse through the "MER analyst notebook"
(http://anserver1.eprsl.wustl.edu/). MER stands for Mars Exploration
Rover, the two spaceships that NASA sent to Mars.

In the logs of the activity we find lines like:

232 command 2004-114T16:32:45.289 136010002.844
2004-115T05:32:15.245 88025
RUN_SEQ completed with status = 0.
Sequenced Command Number 3 from Engine 2; Sequence ID s0881,
version 0 (seq_engine.c:3482)
^^^^^^^^^^^^^^^^^

Yes, "seq_engine.c" Mr Tisdale.

In other reports we find:
fme_class.c:3002 mrf_class.c:2724 cmd_dispatch.c:269
seq_controller.c:902 init.c:646
sapp_nate_mode_commander.c:274
vsbm_activities.c:247 sapp_iit.c:321
dwn_sbd.c:799 uhft.c:936 cbm_window.c:1410
use_measurement_set.c:464 fme_class.c:3012

The whole software of the spaceships is in C.

And for good reasons, Mr Tisdale.
Nov 14 '05 #1
23 1992
jacob navia wrote:
The whole software of the spaceships is in C.


NASA is like the military, it is very expensive and time consuming to test
and approve a language for use due to the high integrity required. I am
not surprized they have a conservative policy to change.

I always remember the classic FORTRAN line that cost them the voyager space
mission to mars when there was a line which said :-

FOR I=1.4

when it should have read :-

FOR I=1,4

and the compiler failed to pick it up as a warning or error.

an expensive "period" that !
Nov 14 '05 #2
john blackburn <jo*********************@lintonhealy.co.uk> scribbled the following:
jacob navia wrote:
The whole software of the spaceships is in C.
NASA is like the military, it is very expensive and time consuming to test
and approve a language for use due to the high integrity required. I am
not surprized they have a conservative policy to change. I always remember the classic FORTRAN line that cost them the voyager space
mission to mars when there was a line which said :- FOR I=1.4 when it should have read :- FOR I=1,4 and the compiler failed to pick it up as a warning or error. an expensive "period" that !


If I remember this right, the line that was there assigned the floating
point value 1.4 to a variable named "FOR I" (without the quotes).
Whereas the line that should have been there was like the C for loop
for (I=1; I<=4; I++) .
Quite a strange language, that Fortran...

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"'So called' means: 'There is a long explanation for this, but I have no
time to explain it here.'"
- JIPsoft
Nov 14 '05 #3
john blackburn <jo*********************@lintonhealy.co.uk> writes:
jacob navia wrote:
The whole software of the spaceships is in C.


NASA is like the military, it is very expensive and time consuming to test
and approve a language for use due to the high integrity required. I am
not surprized they have a conservative policy to change.

I always remember the classic FORTRAN line that cost them the voyager space
mission to mars when there was a line which said :-

FOR I=1.4

when it should have read :-

FOR I=1,4

and the compiler failed to pick it up as a warning or error.

an expensive "period" that !


<OT>

Wrong syntax, wrong bug, wrong spacecraft, wrong planet. Apart from
that, it's essentially correct.

The Fortran bug in question involves a DO loop. The correct syntax is:

DO 10 I = 1,10

A typo like:

DO 10 I = 1.10

is parsed as an assignment statement:

DO10I = 1.10

The legend is that this bug caused the loss of a Mariner probe. In
fact, the Mariner I Venus probe was lost due to an error in a
hand-written guidance equation. The DO10I bug did show up at about
the same time on Project Mercury; it was corrected before it caused
any real problems.

The details are in the alt.folklore.computers FAQ at
<http://members.chello.at/theodor.lauppert/computer/afc-faq.htm>;
see question III.1.

</OT>

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #4
Joona I Palaste <pa*****@cc.helsinki.fi> spoke thus:
If I remember this right, the line that was there assigned the floating
point value 1.4 to a variable named "FOR I" (without the quotes).


Well, one aid to memory might be

http://members.chello.at/theodor.lau...er/afc-faq.htm

although I'm not sure the incident under discussion is described
there.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #5
jacob navia wrote:
There was a discussion some weeks ago about the C language
being "dead", where Mr Tisdale, as far as I know a NASA employee,
participated telling us that he is waiting for C programmers
to die off.

I have recently started to browse through the "MER analyst notebook"
(http://anserver1.eprsl.wustl.edu/). MER stands for Mars Exploration
Rover, the two spaceships that NASA sent to Mars.

In the logs of the activity we find lines like:

232 command 2004-114T16:32:45.289 136010002.844
2004-115T05:32:15.245 88025
RUN_SEQ completed with status = 0.
Sequenced Command Number 3 from Engine 2; Sequence ID s0881,
version 0 (seq_engine.c:3482)
^^^^^^^^^^^^^^^^^

Yes, "seq_engine.c" Mr Tisdale.

In other reports we find:
fme_class.c:3002 mrf_class.c:2724 cmd_dispatch.c:269
seq_controller.c:902 init.c:646
sapp_nate_mode_commander.c:274
vsbm_activities.c:247 sapp_iit.c:321
dwn_sbd.c:799 uhft.c:936 cbm_window.c:1410
use_measurement_set.c:464 fme_class.c:3012

The whole software of the spaceships is in C.
lol. all production operating systems are in C if it's a consolation
C is a very good system-programming language for embedded devices and
operating systems (and far from dead), but it has been used in systems
which are far better implemented in safer languages like java or scripting
languages. Administrative systems are simply easier to write in java. you
need less skill to write those types of systems and being exposed to too
many design options (C, C++) can be daunting for simple programs.
And for good reasons, Mr Tisdale.


Nov 14 '05 #6
In <41***********************@news.zen.co.uk> john blackburn <jo*********************@lintonhealy.co.uk> writes:
I always remember the classic FORTRAN line that cost them the voyager space
mission to mars when there was a line which said :-

FOR I=1.4

when it should have read :-

FOR I=1,4

and the compiler failed to pick it up as a warning or error.

an expensive "period" that !


It's an urban legend and you didn't even get it right. There is no FOR
in Fortran, it was a DO loop:

DO 5 I = 1. 5

that got parsed as

DO5I = 1.5

and, although real, the bug was relatively harmless. The software errors
responsible for the loss of a NASA space mission are more complex.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #7
jacob navia wrote:
There was a discussion some weeks ago about the C language
being "dead", where Mr Tisdale, as far as I know a NASA employee,


Mr. Tisdale is an employee of Caltech.
Caltech runs the Jet Propulsion Laboratory for NASA.
Mr. Tisdale is *not* a spokesperson for Caltech, JPL or NASA.
Any opinions expressed by Mr. Tisdale are his own
and *not* necessarily the official position of Caltech, JPL or NASA.
Conversely, official positions taken by Caltech, JPL and NASA
are *not* necessarily Mr. Tisdale's positions.
Nov 14 '05 #8
jacob navia wrote:
The whole software of the spaceships is in C.

And for good reasons, Mr. Tisdale.


And what are those reasons?

I used Google

http://www.google.com/

to search for

+"C++" +"MER" +"JPL"

and I found lots of stuff.
Nov 14 '05 #9

"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message
news:cn**********@nntp1.jpl.nasa.gov...
jacob navia wrote:
The whole software of the spaceships is in C.

And for good reasons, Mr. Tisdale.


And what are those reasons?

I used Google

http://www.google.com/

to search for

+"C++" +"MER" +"JPL"

and I found lots of stuff.


This is going to be good reading. I haven't checked upthread for
everything, but I would *love* to see the code that didn't understand the
difference between feet and meters. (Not that a gazillion-dollar snafu is
unusual.) MPJ
Nov 14 '05 #10
In article <8v********************@comcast.com>,
Merrill & Michele <be********@comcast.net> wrote:

"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message
news:cn**********@nntp1.jpl.nasa.gov...
jacob navia wrote:
> The whole software of the spaceships is in C.
>
> And for good reasons, Mr. Tisdale.


And what are those reasons?

I used Google

http://www.google.com/

to search for

+"C++" +"MER" +"JPL"

and I found lots of stuff.


This is going to be good reading. I haven't checked upthread for
everything, but I would *love* to see the code that didn't understand the
difference between feet and meters. (Not that a gazillion-dollar snafu is
unusual.) MPJ


C is still popular at least according to the TIOBE Programming Community Index
for November 2004:

http://www.tiobe.com/tpci.htm

Napi

--
http://www.axiomsol.com
http://www.cs.indiana.edu/hyplan/napi.html
Nov 14 '05 #11
Mohd Hanafiah Abdullah <na**@cs.indiana.edu> spoke thus:
C is still popular at least according to the TIOBE Programming Community Index
for November 2004:


And look at how active this newsgroup is :)

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #12

In article <41***********************@news.skynet.be>, slurper <sl*********@hotmail.com> writes:

lol. all production operating systems are in C if it's a consolation


Patently false. Much of OS/400 is written in PL.8, for example.

--
Michael Wojcik mi************@microfocus.com
Nov 14 '05 #13
In <cn*********@news3.newsguy.com> mw*****@newsguy.com (Michael Wojcik) writes:

In article <41***********************@news.skynet.be>, slurper <sl*********@hotmail.com> writes:

lol. all production operating systems are in C if it's a consolation


Patently false. Much of OS/400 is written in PL.8, for example.


Most OSs whose history can be traced to before the time when C became
a mainstream programming language (about the early to mid eighties) are
unlikely to have been reimplemented in C. So, I wouldn't expect to
find much C in the code of MVS, VM, VMS, except for their POSIX
compatibility layers.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #14
>>C is still popular at least according to the TIOBE Programming Community Index
for November 2004:

And look at how active this newsgroup is :)


Well, this kind of topic, is, well, *completely* off-topic.

Actively participating in a newsgroup on C to keep saying C is dead is
exactly what we call trolling.

Enough said.
Nov 14 '05 #15
Joona I Palaste <pa*****@cc.helsinki.fi> wrote in message news:<cm**********@oravannahka.helsinki.fi>...
john blackburn <jo*********************@lintonhealy.co.uk> scribbled the following:
jacob navia wrote:
The whole software of the spaceships is in C.

NASA is like the military, it is very expensive and time consuming to test
and approve a language for use due to the high integrity required. I am
not surprized they have a conservative policy to change.

I always remember the classic FORTRAN line that cost them the voyager space
mission to mars when there was a line which said :-

FOR I=1.4

when it should have read :-

FOR I=1,4

and the compiler failed to pick it up as a warning or error.

an expensive "period" that !


If I remember this right, the line that was there assigned the floating
point value 1.4 to a variable named "FOR I" (without the quotes).
Whereas the line that should have been there was like the C for loop
for (I=1; I<=4; I++) .
Quite a strange language, that Fortran...


C is not different in this reagrd. You can misplace a } and put it on
the wrong line and it will not do what you expect and will not be
flagged as a compile error. Most langauages have things that can be
ambiguous if done impropely and not be caught at compile time.

Also, this error did not cause the lost of the craft. That was
something else entirely.
Nov 14 '05 #16

"Stuart Gerchick" <sg*******@bloomberg.net> wrote in message
news:e2**************************@posting.google.c om...
Joona I Palaste <pa*****@cc.helsinki.fi> wrote in message

news:<cm**********@oravannahka.helsinki.fi>...
john blackburn <jo*********************@lintonhealy.co.uk> scribbled the following:
jacob navia wrote:
> The whole software of the spaceships is in C.

NASA is like the military, it is very expensive and time consuming to test and approve a language for use due to the high integrity required. I am not surprized they have a conservative policy to change.

I always remember the classic FORTRAN line that cost them the voyager space mission to mars when there was a line which said :-

FOR I=1.4

when it should have read :-

FOR I=1,4

and the compiler failed to pick it up as a warning or error.

an expensive "period" that !


If I remember this right, the line that was there assigned the floating
point value 1.4 to a variable named "FOR I" (without the quotes).
Whereas the line that should have been there was like the C for loop
for (I=1; I<=4; I++) .
Quite a strange language, that Fortran...


C is not different in this reagrd. You can misplace a } and put it on
the wrong line and it will not do what you expect and will not be
flagged as a compile error. Most langauages have things that can be
ambiguous if done impropely and not be caught at compile time.

Also, this error did not cause the lost of the craft. That was
something else entirely.


namely...? MPJ
Nov 14 '05 #17
"Merrill & Michele" <be********@comcast.net> writes:
"Stuart Gerchick" <sg*******@bloomberg.net> wrote in message

[...]
Also, this error did not cause the lost of the craft. That was
something else entirely.


namely...? MPJ


I posted a pointer to the details elsewhere in this thread. Search
for the alt.folklore.computers FAQ, then search for "Mariner".

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #18
"Merrill & Michele" <be********@comcast.net> wrote in message
news:8v********************@comcast.com...

"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message
news:cn**********@nntp1.jpl.nasa.gov...
jacob navia wrote:
The whole software of the spaceships is in C.

And for good reasons, Mr. Tisdale.
And what are those reasons?

I used Google

http://www.google.com/

to search for

+"C++" +"MER" +"JPL"

and I found lots of stuff.


This is going to be good reading. I haven't checked upthread for
everything, but I would *love* to see the code that didn't understand

the difference between feet and meters. (Not that a gazillion-dollar snafu is unusual.) MPJ


Which is kind of surprising when you realize that "Space is big. Really
big."

Imagine how far off we'll be when we try to get to Betelgeuse...

--
Mabden
Nov 14 '05 #19

"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...
"Merrill & Michele" <be********@comcast.net> writes:
"Stuart Gerchick" <sg*******@bloomberg.net> wrote in message

[...]
Also, this error did not cause the lost of the craft. That was
something else entirely.


namely...? MPJ


I posted a pointer to the details elsewhere in this thread. Search
for the alt.folklore.computers FAQ, then search for "Mariner".

I know you. Don't know him. Believe it or not, I'm going to walk through
life thinking that if I had to know things about this event, I would talk to
you, and I think this post reveals the form that Richard Bos was getting at.
MPJ
Nov 14 '05 #20

"Mabden" <mabden@sbc_global.net> wrote in message
news:GM******************@newssvr21.news.prodigy.c om...
"Merrill & Michele" <be********@comcast.net> wrote in message
news:8v********************@comcast.com...

"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message
news:cn**********@nntp1.jpl.nasa.gov...
jacob navia wrote:

> The whole software of the spaceships is in C.
>
> And for good reasons, Mr. Tisdale.

And what are those reasons?

I used Google

http://www.google.com/

to search for

+"C++" +"MER" +"JPL"

and I found lots of stuff.
This is going to be good reading. I haven't checked upthread for
everything, but I would *love* to see the code that didn't understand

the
difference between feet and meters. (Not that a gazillion-dollar

snafu is
unusual.) MPJ

Mabden:

Which is kind of surprising when you realize that "Space is big. Really
big." With which curvature? Almost nothing in our solar system except in the
immediate vicinity of massive objects. Else perturbate. MPJ Imagine how far off we'll be when we try to get to Betelgeuse...


Puh-lease. I saw Betelgeuse just fine before it got even too chilly for me.
The legacy of Hans Bethe is quite secure tonight, unlike the Russian
topologist's 'proof' of Poincare's conjecture. I'll grant him his proof if
there antecedently exists not the number three among the naturals. MPJ
Nov 14 '05 #21
"Merrill & Michele" <be********@comcast.net> wrote:
"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...
"Merrill & Michele" <be********@comcast.net> writes:
"Stuart Gerchick" <sg*******@bloomberg.net> wrote in message

[...]
> Also, this error did not cause the lost of the craft. That was
> something else entirely.

namely...? MPJ


I posted a pointer to the details elsewhere in this thread. Search
for the alt.folklore.computers FAQ, then search for "Mariner".

I know you. Don't know him. Believe it or not, I'm going to walk through
life thinking that if I had to know things about this event, I would talk to
you, and I think this post reveals the form that Richard Bos was getting at.


Beg pardon?

Richard
Nov 14 '05 #22

"Richard Bos" <rl*@hoekstra-uitgeverij.nl> wrote in message
news:41***************@news.individual.net...
"Merrill & Michele" <be********@comcast.net> wrote:
"Keith Thompson" <ks***@mib.org> wrote in message
news:ln************@nuthaus.mib.org...
"Merrill & Michele" <be********@comcast.net> writes:
> "Stuart Gerchick" <sg*******@bloomberg.net> wrote in message
[...]
>> Also, this error did not cause the lost of the craft. That was
>> something else entirely.
>
> namely...? MPJ

I posted a pointer to the details elsewhere in this thread. Search
for the alt.folklore.computers FAQ, then search for "Mariner". I know you. Don't know him. Believe it or not, I'm going to walk through life thinking that if I had to know things about this event, I would talk to you, and I think this post reveals the form that Richard Bos was getting

at.
Beg pardon?

You thought my way of attributing and snipping was less than ideal, which
surprised me because I thought to put a fair amount of effort into it. But
as I look at this message, my > > comments don't seem to have antecedents on
the pronouns. (?) MPJ
Nov 14 '05 #23
"Merrill & Michele" <be********@comcast.net> wrote:
"Richard Bos" <rl*@hoekstra-uitgeverij.nl> wrote in message
news:41***************@news.individual.net...
"Merrill & Michele" <be********@comcast.net> wrote:
I know you. Don't know him. Believe it or not, I'm going to walk through
life thinking that if I had to know things about this event, I would talk to
you, and I think this post reveals the form that Richard Bos was getting at.


Beg pardon?

You thought my way of attributing and snipping was less than ideal, which
surprised me because I thought to put a fair amount of effort into it. But
as I look at this message, my > > comments don't seem to have antecedents on
the pronouns. (?) MPJ


Ah, right.

Richard
Nov 14 '05 #24

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

198
by: Michael N. Christoff | last post by:
Java, the software developed by Sun Microsystems in the mid-1990s as a universal operating system for Internet applications, gave NASA a low-cost and easy-to-use option for running Spirit, the...
3
by: LW | last post by:
"Consider the U.S. government's recognition and protection of intellectual property in the computer industry. Inventors of computer hardware were able to patent their inventions, and the government...
33
by: jacob navia | last post by:
Mankind has now two robots wandering about in the planet Mars. No, it wasn't Mars that invaded Earth, but Earth that landed in Mars more than two years ago. After some initial OS glitches (Chris...
32
by: jhc0033 | last post by:
Interesting article I came across on Slashdot: http://developers.slashdot.org/developers/08/07/10/213211.shtml They are using C at JPL to program Mars Lander and just about everything now! Not...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.