6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 21, 2024 10:51 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sun Nov 03, 2024 8:02 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8504
Location: Midwestern USA
In this article, mention is made of the Voyager 1 space probe that was launched 47 years ago and, incredibly, is still functioning, although with some difficulty.  The probe is now 15 billion miles (24 billion kilometers) from Earth and complicating things, it takes nearly two days after a command is sent to it before an acknowledgement is received.  Talk about propagation delay!  It’s all pretty amazing, when you consider the age of the technology, and the many things that can go wrong.

Voyager 1 had a velocity of over 38,000 MPH (61,300 KPH) when it traveled through the heliopause and entered interstellar space.  At that speed, over 17,000 years will be needed for the probe to travel one light-year—and the nearest star, Alpha Centauri, is over four light years from Earth.  Barring a collision with some object, Voyager 1 will be on an eternal voyage, literally traveling until the end of time.  :shock:

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Sun Nov 03, 2024 5:02 pm 
Offline

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 282
Location: Placerville, CA
Now that's engineering.


Top
 Profile  
Reply with quote  
PostPosted: Sun Nov 03, 2024 9:04 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8504
Location: Midwestern USA
commodorejohn wrote:
Now that's engineering.

Yes it is, especially when you consider just how hostile space is to man and his machines.

When I was a youngster, I avidly read science fiction and the tales of people going on deep space voyages.  Asimov’s stories, in particular, were fascinating, even if I didn’t fully understand them at the time (in my teenage years, I read his “I, Robot” stories and was deeply impressed with the quality of his writing and the fertility of his imagination).

That said, by the time I was 10 years old, I knew enough about space and celestial mechanics to understand why the stories about deep space travel were pure fantasy.  Science fiction writers often cheerfully ignored minor technical details, such as intense radiation exposure, hard vacuum, mind-boggling distances, the limiting speed of light, and all that other stuff that gets in the way of going on a weekend excursion to, say, Jupiter—never mind what the gas giant’s gravity will do to you when you get there.  :shock:

While I seldom say “never” when it comes to science and technology, I think I can safely say the human race, as we know it, will never venture to the edge of the Solar System, let alone enter interstellar space.  We can’t go fast enough with any known means of propulsion to cover the distance in a reasonable amount of time.  Even if traveling at the pace of Voyager 1 (~38,000 MPH, nearly 20 times the speed of a .30 caliber rifle bullet), a trip to Mars would likely take an absolute minimum of 55 days—if Earth and Mars are exactly in opposition (which only happens at two year intervals).  All sorts of logistical problems would have to be solved, not the least of which would be carrying enough food and other supplies to sustain the crew for the 110 day round-trip, as well as any time spent on or near the Red Planet.  Unlike embarking on a trip to the heliopause and back, a crewed voyage to Mars is technically possible right now, but I don’t think it will happen in any of our lifetimes.

Now, prove me wrong, NASA!  :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 04, 2024 1:58 am 
Offline
User avatar

Joined: Tue Feb 28, 2023 11:39 pm
Posts: 257
Location: Texas
BigDumbDinosaur wrote:
commodorejohn wrote:
Now that's engineering.

Yes it is, especially when you consider just how hostile space is to man and his machines.


Yep, they engineered that stuff to be rock solid. To use an age old phrase, they just don't build them like they used to.

Quote:
When I was a youngster, I avidly read science fiction and the tales of people going on deep space voyages.  Asimov’s stories, in particular, were fascinating, even if I didn’t fully understand them at the time (in my teenage years, I read his “I, Robot” stories and was deeply impressed with the quality of his writing and the fertility of his imagination).


Mmmm.... Asimov...... Spent a lot of time at airports reading the various Asimov stories.

Quote:
Science fiction writers often cheerfully ignored minor technical details, such as intense radiation exposure, hard vacuum, mind-boggling distances, the limiting speed of light, and all that other stuff that gets in the way of going on a weekend excursion to, say, Jupiter—never mind what the gas giant’s gravity will do to you when you get there.  :shock:


The radiation of Jupiter would kill you before the gravity would. I had looked into the details of having a story set on a moon of a gas giant, and Jupiter was just a no go place for the most part. Saturn on the other hand, it's a bit friendlier.

It goes to show how much we tend to forget all that the magnetosphere that Earth has does for us.

Quote:
While I seldom say “never” when it comes to science and technology, I think I can safely say the human race, as we know it, will never venture to the edge of the Solar System, let alone enter interstellar space.  We can’t go fast enough with any known means of propulsion to cover the distance in a reasonable amount of time.  Even if traveling at the pace of Voyager 1 (~38,000 MPH, nearly 20 times the speed of a .30 caliber rifle bullet), a trip to Mars would likely take an absolute minimum of 55 days—if Earth and Mars are exactly in opposition (which only happens at two year intervals).  All sorts of logistical problems would have to be solved, not the least of which would be carrying enough food and other supplies to sustain the crew for the 110 day round-trip, as well as any time spent on or near the Red Planet.  Unlike embarking on a trip to the heliopause and back, a crewed voyage to Mars is technically possible right now, but I don’t think it will happen in any of our lifetimes.

Now, prove me wrong, NASA!  :D


To quote another great Sci Fi author:
"When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong." -- Arthur C. Clarke

;)


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 04, 2024 5:47 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 983
Location: Potsdam, DE
We could argue about the merits of various SF authors all day - I'm a big fan of 'golden age', though I never particularly liked Asimov's style.

As pointed out above, Jupiter is not a particularly healthy place to be, but I expected by now that people would be all over the asteroid belt - and in particular, working around Saturn. It has those great gaudy rings, conveniently already at orbital velocity, made of ice, and in convenient-sized chunks to launch at Mars...

Get enough water on Mars and it rapidly[1] becomes a livable place - water vapour at high altitude disassociates into free oxygen and hydrogen under the influence of solar radiation, and the mean free speed of the hydrogen means it escapes the atmosphere while the oxygen stays behind. And water at lower levels remains, well, wet water.

Neil

[1] Well, a few hundred years depending how fast you can start kicking icebergs on their way. But there is a small moon's worth of water ice in Saturn's rings, and it's surely worth the wait to have another basket to put our species' eggs, no?


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 04, 2024 8:05 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8504
Location: Midwestern USA
Yuri wrote:
To quote another great Sci Fi author:
"When a distinguished but elderly scientist states that something is possible, he is almost certainly right.  When he states that something is impossible, he is very probably wrong." -- Arthur C. Clarke

Yep, I recall that from years ago.  I’m not a “distinguished but elderly scientist,” just elderly, but from my current vantage point looking at the space technology we have and how long it took to get it working (and of course, disasters have killed people in the process), I am not foreseeing any trips to the heliopause.  Clarke’s aphorism was from a time when we were still in the early stages of space exploration.  We’re well past that point.  Things could change, something new could be devised that solves, among other things, the problem of attaining the hyper-velocities need for long voyages.  However, most of the big leaps in space technology have already occurred.

In particular, solving the logistics of a long space voyage is something that has consistently eluded science.  It took Voyager 1 nearly 36 years to reach the heliopause, whilst traveling at more than 38,000 MPH.  Imagine a space ship that is hurtling out of the Solar System at that speed over such a long period of time...with people on board.  How do you replenish the food supply, the water supply, deal with the psychological issues that will arise on such a long voyage, etc., etc..  What about medical emergencies?  It’s not as though you can dispatch an ambulance if a crew member suffers a life-threatening medical event.

Until we can figure out how to sustain a crew over such a long period, I says it ain’t gonna happen.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 04, 2024 8:34 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 983
Location: Potsdam, DE
Plenty of SF regarding many of the issues of generation ships... :p

Neil


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 04, 2024 12:55 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
I'm reminded of a piece it turns out I've mentioned before, in a different OT thread
BigEd wrote:
... I was going to link to Ron Garrett's interesting (and sad) piece about Lisp at JPL. But it turns out he's also done a presentation on the subject, so here's a different link which encompasses both:
http://irreal.org/blog/?p=748
The original:
http://www.flownet.com/gat/jpl-lisp.html


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 04, 2024 3:03 pm 
Offline

Joined: Sun Nov 08, 2009 1:56 am
Posts: 411
Location: Minnesota
Judging from what I can gather from the timeline of that rant, I'm guessing these rules came about after Lisp was gone from JPL and C-like languages became the only ones allowed.

https://en.wikipedia.org/wiki/The_Power ... tical_Code

These rules have come up here before, of course. Now I'm wondering if the demise of Lisp had anything to do with how hard it is to statically analyze what it's doing.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 04, 2024 4:20 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Ah, a complement to MISRA...


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 05, 2024 3:47 pm 
Offline

Joined: Sun Nov 08, 2009 1:56 am
Posts: 411
Location: Minnesota
Of course now I'm wondering why NASA has all these guidelines for how to "safely" use an imperative language in the first place. Why not create a new language whose grammar and syntax makes it at least difficult, ideally impossible, to write problematic code in the first place? Why all the emphasis on after-the-fact checking tools?

1) Don't allow GOTO by not having it in the first place. For recursion, the first thought that occurs to me is that at run time, entry to a function first examines the stack to see if it's already there. Just in case static analysis misses this. A bit more time-consuming, yes, but contemporary processors are very fast.

2) Give loops a default bound. Explicitly change it if necessary. Make this built-in so everyone knows one is always there. Kind of like default array bounds in BASIC. You don't have to rely on them, but they're always there.

3) Don't like the heap? Don't have one. Darn thing fragments anyway.

4) It's easy enough to figure out the maximum number of characters on a page. Have the compiler barf if you try to feed it more than that.

5) Not sure how to automate this, aside from looking to see how they are often used in practice and trying to get the run-time package to check for the most common cases anyway.

6) Make it really hard to access data outside its declaration scope. I kind of like how in Python I can read a variable as long as it's in a higher scope, but I can't write it unless I somehow note that it's not in the current scope. That could be pushed to make both reading and writing an out of scope variable painful, and hence avoided whenever possible.

7) Make checking return value mandatory. Compile time failure if not done.

8) Don't like the preprocessor? Don't have one. It's mostly a kind of syntactic sugar anyway.

9) Fine, don't allow more than one level of de-reference (you can't even write such a thing). And don't make functions first-class objects that can be indirectly referenced.

10) Have the compiler sulk and refuse to create an object file if it sees the least little thing it doesn't like. That would lead to a lot of programmer frustration, but hey, we're talking safety here!

There could be a "C-NASA" version of the language, if you like. Might even be possible to eliminate some of the ambiguities along the way. No more "undefined behavior" quirks.

I'm just going to note that the software for the Voyageur probes was created decades before these guidelines came into place. There was probably some system of checking in place even at that time. What happened to those? They seem to have worked well. Are the ones in place now easier, simpler or more effective?


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 06, 2024 9:43 am 
Offline
User avatar

Joined: Thu Sep 07, 2023 5:41 pm
Posts: 10
Location: Germany
This is what happens if you build things without planned obsolescence :lol:
Now it's just "build to blast" everywhere instead of "build to last", and that's kind of sad.

_________________
ROR A? Where we're coding, we don't need A.


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 16, 2024 9:42 am 
Offline

Joined: Sun Sep 19, 2021 11:21 am
Posts: 39
It may be my age and the nostalgia associated with the Apollo missions (although I was born by then, I was too young to watch the moon landings) but it seemed to be a golden age of discovery we'll probably never rediscover. However, the sheer effort required to put humans on the moon was a catalyst for technological advancement of which we're probably still reaping the benefits.

It never ceases to amaze me of the technology available at the time and how it was leveraged to do what was needed. I mean wire rope memory - what on earth!?

Spurred by this, the Voyager and Viking probes were further literal voyages of discovery.

Then it seems, something changed, and I can't put my finger on it. Our attitude to risk? Would we dare send 3 people to the moon now using that technology? The proliferation of computers into every system, sub-system, sub-sub-system - necessary but introducing a weakness?

We (collectively as a species) now seem to have had quite a few space related failures - but at least they were unmanned. Mars, travel outside the solar system, landing on asteroids - I think that the uber-complexity of systems required to accomplish such things means it's very difficult to not have "undocumented features" in software if there are millions (if not billions across all systems) of lines of code. Even if the code base is 99.999% correct, it going to leave potential for a few errors. It's then blind luck as to where and when they come to the surface.

One thing that has drawn me (back) to 6502 assembly is that fact that when I see a code listing, I see ALL the code. There no libraries of 1000s of lines of someone else's code of which I know nothing about. Using python or Visual Basic to print "Hello, World!" leads to obscene sizes of code. A few tens of lines of 6502 instructions accomplishes the same. I'm sure I've read that the 6502 is the only microprocessor approved for using in medical equipment like pacemakers. Testiment to its robustness in terms of reliability.

Maybe the bizarre answer is to write even more code? Have supervisor systems that poll, say, 3 applications written by different teams independenly that do the same things but in different ways and go with the consensus - a committee of computers?


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 16, 2024 12:19 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 983
Location: Potsdam, DE
IIRC from monitoring the NASA output when the first space shuttle flew (I was working for BBC News at the time) the shuttle had five computers, one from a different maker - though I don't know if the code was different - and all five had to agree before the blue touch paper could be lit.

There was at least one occasion where the singleton disagreed with the other four, and it turned out that it was right and they were wrong.

I suppose the issue with multiple systems having to agree is that with each computer design and each software design, you have the chance for a whole new set of bugs, either hardware or software.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 16, 2024 7:54 pm 
Offline

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 282
Location: Placerville, CA
DRG wrote:
The proliferation of computers into every system, sub-system, sub-sub-system - necessary but introducing a weakness?

It's worth reading up on the Apollo Guidance Computer - that was a real lesson in resilient design. The first fully fly-by-wire craft in history, and since they couldn't get things ironed out to the point where they could guarantee against crashing...they just made it as quick and simple as possible for it to resume from a crash, pick up where it left off, and give the pilot control again ;) Aldrin actually did have to reboot it several times during the lunar descent...!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: