News for hackers. Stuff that matters.
Re:Space Shuttle computer has 1MB of RAM by tomkinstinch on Monday March 29, 2010 @12:49PM (#1226903)
Here is an article about developing the 'perfect' software that runs the shuttle:

"They Write the Right Stuff"

http://www.fastcompany.com/node/28121/print

Re:Space Shuttle computer has 1MB of RAM by aidenn0 on Monday March 29, 2010 @01:02PM (#1226934)
And it's 260 engineers to write 420 KLOC. This is why software is buggy; it's to expensive to make it not buggy.
Re:Space Shuttle computer has 1MB of RAM by izend on Monday March 29, 2010 @01:31PM (#1227027)
And it required 380 engineers to build the Burj Dubai.

The only difference is for most software projects it is acceptable to have "bugs" as customers will still pay for it, even if it's in a poor state of quality. But "bugs" in a 2,717 ft tower are unacceptable.

It comes down to, in general the cost of a bug in most software is relatively low compared to other engineering disciplines. Of course if the software is critical support systems for Astronauts that's a different story.

Re:Space Shuttle computer has 1MB of RAM by wreel on Monday March 29, 2010 @02:25PM (#1227173)
> But "bugs" in a 2,717 ft tower are unacceptable.

People have a tendency to overlook "bugs" in architecture because of the immutability of the medium. But once you start noticing that the HVAC is uneven on your floor, the hot water takes five minutes for ramp up in your office's break room and the conduit runs for networking are bizarre you start to understand that architects and builders run into design and implementation problems as well.

In fact they have their own word for patching. Renovations.

Re:Space Shuttle computer has 1MB of RAM by electromagnetic on Monday March 29, 2010 @10:47PM (#1228208)
Having worked doing building renovations I can honestly say it's rather frequent that you look at how the building is laid out and how the wiring/water/gas was run and say "what the heck was this person thinking?" - and that's not even including the times I've seen things completely impractical or wholly illegal.

In my present house we cannot have the central air turned on in the downstairs toilet if we want heating to the smallest bedroom (the 'infant' room) upstairs. Similarly the basement air vent was so distant from the conduits that the main level essentially has a heated floor (hot air can be felt escaping through almost every gap in the basement ceiling except the air vent it's supposed to come out of. Similarly the plumbing is so unbalanced that the shower can essentially be turned off by a good configuration of tap turns and toilet flushes.

Architecture is a joke, and the 'engineers' who design them should really consider building a house themselves, because I've seen every crazy design from doors being hinged to trap people in the corner of a hallway (literally you'd have to step into the far corner to squeeze around the door to exit the bedroom), to lighting layouts that didn't illuminate the room, or switches completely impracticably placed.

You're entirely right, people overlook 'bugs' in architecture, although in my experience it's largely because of ignorance of what it being right is. How do you compare a poor plumbing design in your house? Do you run through your best friend's place screwing around with his sinks and toilets while he's in the shower?

It's easy to compare two software programs to find a less buggy option, however it's hard to compare two houses to find a less buggy option.

Re:Space Shuttle computer has 1MB of RAM by kjhgfvgbjnm on Monday March 29, 2010 @02:20PM (#1227157)
The Burj Dubai, like any other structure is full of bugs.

The point of engineering is to make a system that is resilient to a certain level of faults. That's why the tower doesn't collapse if there is a 0.1 mm crack in one of the bolts.

Re:Space Shuttle computer has 1MB of RAM by Groxx on Monday March 29, 2010 @02:25PM (#1227175)
It also depends on how you define a "bug". A car that crumples too much and injures the driver when hit at this angle or that angle within these speeds could be considered a bug. In which case, counting the number of knobs that fall off, plastic that cracks, and parts that wear out prematurely, not to mention discoveries of toxic fumes / paint / etc, cars do have thousands of bugs.
Re:Space Shuttle computer has 1MB of RAM by kjhgfvgbjnm on Monday March 29, 2010 @02:40PM (#1227200)
The main problem with software 'engineering' is the fragility of software. In a structure you know there will be cracks, so you choose a material that is ductile enough that a crack can't grow to dangerous size in the lifetime of the component. The problem with software is that generally a single bit wrong is a total failure.

I was involved in a case with a turbine blade fracture. The user claimed that there must have been a flaw, and yes the crack must have started at a single atom sized crystal flaw in the meta. But the choice of alloy was such that the crack would have grown at a rate which means it was under the failure size for at least twice the inspection interval - where the customer missed it.

Re:Space Shuttle computer has 1MB of RAM by abstractbill on Monday March 29, 2010 @04:00PM (#1227406)
The problem with software is that generally a single bit wrong is a total failure.

This doesn't mesh with my experience to be honest. I often come across code that contains nasty bugs but is still somehow working accidentally. And even more often, there are bugs that stop just one feature from working while the rest of a large system pretty much acts as if the bug didn't exist.

Re:Space Shuttle computer has 1MB of RAM by khafra on Monday March 29, 2010 @02:50PM (#1227230)
Perhaps the problem with software is that, after the original QA process, there's seldom a regular inspection except adversarially.
Re:Space Shuttle computer has 1MB of RAM by dkl on Monday March 29, 2010 @04:53PM (#1227526)
The door knob example is terrible. How about this: an office that is either too hot or cold? Would that qualify as a bug? I think it does, and it happens all the time in new buildings.
Re:Space Shuttle computer has 1MB of RAM by nostrademons on Monday March 29, 2010 @11:35PM (#1228273)
Tunnels in Boston or bridges in San Francisco, however...
Re:Space Shuttle computer has 1MB of RAM by andr on Tuesday March 30, 2010 @03:14AM (#1228588)
Last week all the public parts of the Burj Dubai were closed for maintenance. I guess they did have some bugs.
Re:Space Shuttle computer has 1MB of RAM by rbanffy on Tuesday March 30, 2010 @07:03AM (#1228797)
That's just a bad excuse.
Re:Space Shuttle computer has 1MB of RAM by pmiller2 on Tuesday March 30, 2010 @07:49AM (#1228861)
>That's just a bad excuse.

No, it's good economics. In commercial software development, after a certain point, the marginal benefit of fixing bugs divided by the marginal cost of doing so starts to exceed what the market will bear for consumer software. We literally get what we pay for when it comes to commercial software.

Re:Space Shuttle computer has 1MB of RAM by rbanffy on Tuesday March 30, 2010 @09:58AM (#1229131)
I believe we have come a long way from the days when the shuttle computer was cutting edge.

In fact, it's a bit of a shame we still haven't got how to make correct software, but it's no way impossible and should be getting cheaper by the day.

I think should is the important word here. It's not and we have nobody but ourselves to blame.

Re:Space Shuttle computer has 1MB of RAM by Groxx on Monday March 29, 2010 @02:08PM (#1227132)
Must be nice to have such clearly defined problems.

edit: woah, feature-fail == bug? Why'd it take them until 2007 to not have to reboot whenever they reached a new year? I'd call that a rather significant, costly bug, even if they don't, and it may very well be one of the longest-running in actively-developed software.

Re:Space Shuttle computer has 1MB of RAM by jonknee on Monday March 29, 2010 @02:55PM (#1227246)
I'd imagine they go by if it's not in the spec it's not a bug. They can't do something not in the spec. It was a known limitation, not a "bug".
Re:Space Shuttle computer has 1MB of RAM by Groxx on Monday March 29, 2010 @03:05PM (#1227264)
It was a known limitation, not a "bug".

That pretty strongly implies that all known strange-behavior is not a bug. Also, all known bugs are not bugs, as they can be known and worked around.

If you had to shut down your computer during the year cross-over, would you consider it a bug? Or what if you couldn't go on your business trip because of the year cross-over.

And a bug in the spec is still a bug. Oversights in specifications are equivalent to oversights in programming.

Re:Space Shuttle computer has 1MB of RAM by jonknee on Monday March 29, 2010 @04:21PM (#1227457)
If I commissioned a computer to be made that wasn't supposed to be able to span the new year then no I would not consider it a bug that it could not span the new year. Sure it would be great if it would do that (though only if I had asked that it would), but as long as it behaves exactly as expected then I'm happy. No astronauts die and my budget won't cut. Success.

A similar parallel in consumer computing is switchable graphics. The first models that supported this required a reboot to accomplish it. That wasn't a bug, just part of the plan. They have since gotten more advanced and allow switching without a restart.

Re:Space Shuttle computer has 1MB of RAM by Groxx on Monday March 29, 2010 @07:09PM (#1227805)
Which is why I specifically included the business trip part. They had to schedule around those dates, losing a week or more of possible launch times, because they couldn't handle a year+1 operation. Given how picky they are with launch windows, this could easily mean large delays, meaning large amounts of money.

Not a minor feature, methinks.

Re:Space Shuttle computer has 1MB of RAM by jonknee on Monday March 29, 2010 @07:44PM (#1227868)
I don't know why planning a launch several years in advance a week later means a huge cost. They never scheduled a flight and had to change it because of the limitation, it was built into the calendar. Not having shuttles in the air during New Years might actually save money--less overtime pay.
Re:Space Shuttle computer has 1MB of RAM by derefr on Monday March 29, 2010 @11:59PM (#1228328)
The difference is that NASA uses systems engineers. From their point of view, it is not the "program" which can have bugs, but rather the "system" in its entirety—where "system" consists of the software, the hardware in the field, the hardware in the control center, and all the operations staff paid to perform certain tasks (i.e. execute algorithms—basically additional hardware.) If one part of your system (the software) needs to be rebooted, but another part (the people) is "programmed" to do it autonomously, then the system as a whole has no bugs.

It's sort of the thinking that goes into Erlang programs—rather than, say, thinking out complex GC strategies, you just create little process-sized vessels which grow, overflow, are killed, and then are recreated by other processes. It's not a "bug" that an individual process has died any more than it's a bug when one of the cells in your body dies.

Re:Space Shuttle computer has 1MB of RAM by robryan on Monday March 29, 2010 @07:42PM (#1227859)
I think the article skims over a little bit at the end the cost of developing software in this way. For the vast majority of non critical systems there really isn't much value in this methodology.