473,597 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

computer language used to program Mars Lander

Interesting article I came across on Slashdot:

http://developers.slashdot.org/devel...0/213211.shtml

They are using C at JPL to program Mars Lander and just about
everything now! Not Ada. Anyone got an explanation? I wonder also, do
they really mean C++ when they say C. In my experience, this is a
frequent, although disagreeable usage.
Jul 14 '08 #1
32 2544
jh*****@gmail.c om wrote:
Interesting article I came across on Slashdot:

http://developers.slashdot.org/devel...0/213211.shtml

They are using C at JPL to program Mars Lander and just about
everything now! Not Ada. Anyone got an explanation? I wonder also, do
they really mean C++ when they say C. In my experience, this is a
frequent, although disagreeable usage.
They do not use even memory allocation. They use a subset of C

I am sure they do not use C++!
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Jul 14 '08 #2
On 14 Jul, 12:18, "jhc0...@gmail. com" <jhc0...@gmail. comwrote:
Interesting article I came across on Slashdot:

http://developers.slashdot.org/devel...0/213211.shtml

They are using C at JPL to program Mars Lander and just about
everything now! Not Ada. Anyone got an explanation? I wonder also, do
they really mean C++ when they say C. In my experience, this is a
frequent, although disagreeable usage.
contrary to popular expectations space probes are very
conservative in their use of technolgy. Processors are old
(and hence proven) memorys are small (less vulnerable to radiation).

Rememeber if there's a bug they can't just upgrade the software.
Well they can but it has to be mostly working for the download
to work.

These are essetially embedded systems and C is still popular
in that world.

I suspect its a damn sight easier to prove C correct than C++.

a = b + c;

probably does what it says in C (assuming b and c have good values
and it doesn't overflow). In C++ there could be half a dozen
overloaded
operators in there.

--
Nick Keighley

I know not what I appear to the world, but to myself I seem to have
been
only like a boy playing on the sea-shore, and diverting myself in now
and
then finding a smoother pebble or a prettier shell, whilest the great
ocean of truth lay all undiscovered before me.
(Sir Issac Newton)
Jul 14 '08 #3
On Jul 14, 7:18 am, "jhc0...@gmail. com" <jhc0...@gmail. comwrote:
Interesting article I came across on Slashdot:

http://developers.slashdot.org/devel...0/213211.shtml

They are using C at JPL to program Mars Lander and just about
everything now! Not Ada. Anyone got an explanation? I wonder also, do
they really mean C++ when they say C. In my experience, this is a
frequent, although disagreeable usage.
As pointed out it was subset of C and the size of the software is
relatively small by todays standards if it all fits in 128M (no VM
AFAIK).

The specifics of this project differs from earthly "life safety" type
of applications. If probe software fails, watchdog will reboot it into
the safe mode. There it will sit waiting the instructions/patches from
home. Therefore, a critical part is a bootstrap and communication
module. The rest is allowed to fail and can be fixed.

George
Jul 14 '08 #4
"jh*****@gmail. com" <jh*****@gmail. comwrites:
Interesting article I came across on Slashdot:

http://developers.slashdot.org/devel...0/213211.shtml

They are using C at JPL to program Mars Lander and just about
everything now! Not Ada. Anyone got an explanation? I wonder also, do
they really mean C++ when they say C. In my experience, this is a
frequent, although disagreeable usage.
This was cross-posted to comp.lang.ada and comp.lang.c. I suggest we
all refuse to take the bait and *not* start a cross-language flame
war.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jul 14 '08 #5
On 14 Lip, 13:21, jacob navia <ja...@nospam.c omwrote:
They do not use even memory allocation. They use a subset of C

I am sure they do not use C++!
Why? I would expect some parts of C++ being used, no matter how much
constrained is the target environment.
In particular, C++ has better and more expressive type system,
destructors that can ensure proper execution of "exit" actions, better
support for encapsulation, etc. All these are real advantages as far
as safe and secure code is concerned and none of these require
additional run-time resources.

For example, would you like to have custom integer types with range
checking in this critical software? (Expected answer on this group is
"yes".) This is trivial in C++ and almost impossible in C. This alone
is already a reason to prefer C++ over C for such systems.

Now, why there is no Ada on Mars is another story - but don't worry
about what Martians will think: they will not see the source code
anyway. ;-)

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com
Jul 14 '08 #6
Keith Thompson wrote:
"jh*****@gmail. com" <jh*****@gmail. comwrites:
>Interesting article I came across on Slashdot:

http://developers.slashdot.org/devel...0/213211.shtml

They are using C at JPL to program Mars Lander and just about
everything now! Not Ada. Anyone got an explanation? I wonder
also, do they really mean C++ when they say C. In my experience,
this is a frequent, although disagreeable usage.

This was cross-posted to comp.lang.ada and comp.lang.c. I
suggest we all refuse to take the bait and *not* start a
cross-language flame war.
It has nothing to do with wars. It is simply an illustration that
proves that it is _possible_ to generate accurate code with C. It
is also possible with assembly language. However, doing so
requires good programmers with plenty of experience. You can get
equal quality from poorer programmers with less experience by using
Ada. I leave it to you what you will get with experienced good
programmers and Ada.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
Jul 14 '08 #7
On 14 Lip, 13:49, Nick Keighley <nick_keighley_ nos...@hotmail. com>
wrote:
I suspect its a damn sight easier to prove C correct than C++.

* * a = b + c;

probably does what it says in C (assuming b and c have good values
and it doesn't overflow). In C++ there could be half a dozen
overloaded
operators in there.
Your reasoning is completely broken.
Let's try this one:

I suspect its a damn sight easier to prove C correct than Ada.

a = b + c;

probably does what it says in C. In Ada (substitute := for = ) there
could be half a dozen overloaded operators in there (and some
controlled operations as well).

Do you think that there are some monkeys in the project that randomly
overload operators? If yes, then Ada is equally vulnerable.

Another point: the operator + in C *is* overloaded and not only its
meaning, but also the generated object code differs depending on the
types of a and b. Yes, this is what overloading is all about and yes,
you can have serious errors in C because of that, especially when
combined with implicit conversions. What C++ or Ada can offer in this
area is at least to get rid of those implicit conversions. This is a
huge gain for proving correctness of the code.

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com
Jul 15 '08 #8
"jh*****@gmail. com" <jh*****@gmail. comwrites:
Interesting article I came across on Slashdot:

http://developers.slashdot.org/devel...0/213211.shtml

They are using C at JPL to program Mars Lander and just about
everything now! Not Ada. Anyone got an explanation?
They are comfortable with their current tools, and simply refuse to
consider others.

I run into that attitude all the time. Even when they are considering
adding tools like static analyzers, they won't consider changing
languages. It's extremely frustrating!

In the short run, sticking with what you know is safe. In the long
run, it is a significant loss of productivity. JPL and many, many
other places are sticking with the safe route.

--
-- Stephe
Jul 15 '08 #9
On Jul 14, 4:49 am, Nick Keighley <nick_keighley_ nos...@hotmail. com>
wrote:
contrary to popular expectations space probes are very
conservative in their use of technolgy.
I disagree. Actually, the space industry will try anything and stick
with it until stuff explodes (Ariane rocket) or crashes into the wrong
celestial body because of faulty software. They did use Ada widely
before, and they even programmed some of their probes in Lisp. Seems
like C is the new fad there. Wait until they get bitten by macros and
dangling pointers.
Jul 16 '08 #10

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

Similar topics

24
3060
by: Kari Laitinen | last post by:
I have written a computer programming book that uses C++. The book is for beginners in the field of computer programming, but it might give useful ideas also for more experienced programmers. Computer programs are presented in a very easy-to-read way in my book. To find out what that exactly means, please read the pages at http://www.naturalprogramming.com/cppbook.html There you can find free sample pages for printing and other
23
2009
by: jacob navia | last post by:
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:
669
25773
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
14
3203
namcintosh
by: namcintosh | last post by:
Hello, everyone. Well, let me cut to the chase and explain my problem. I am trying to devise a menu plan that uses the if/else if and the while loop. The program calculates the user's weight on a given planet. It first asks for the user's weight, asks them for a choice. If they choose choices 1 though 9, the user's weight will be calculated on whatever choice they picked (for example, if the user inputs 150 as their weight and choose...
4
318
by: jacob navia | last post by:
The Mars lander Phoenix uses the best language for the job. Here is an excerpt of the interview of O'Reilly with Peter Gluck, NASA software engineer. <quote> That's right. Yeah. The spacecraft software is entirely in C. C? Really? That surprises me a little bit.
0
7965
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
7885
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3881
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3923
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1231
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.