Python Forum
Memory leaks sometimes don't matter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory leaks sometimes don't matter
#1
https://twitter.com/pomeranian99/status/...4438094848

Quote:This sparked and interesting memory for me.  I was once working with a
customer who was producing on-board software for a missile.  In my analysis
of the code, I pointed out that they had a number of problems with storage
leaks.  Imagine my surprise when the customers chief software engineer said
"Of course it leaks".  He went on to point out that they had calculated the
amount of memory the application would leak in the total possible flight time
for the missile and then doubled that number.  They added this much
additional memory to the hardware to "support" the leaks.  Since the missile
will explode when it hits it's target or at the end of it's flight, the
ultimate in garbage collection is performed without programmer intervention.

If the leak will take longer to eat all the memory than the hardware will exist... is it really a problem?

   
Reply
#2
Memory leaks are a solved problem, so it seems silly to throw hardware at it. I would consider them code smell in a case like this; I wouldn't be confident that the missile will wait to explode until it arrives.

I get that from a project perspective, it might be cheaper to throw hardware at it than engineers, but that sounds like a horrendous risk to be taking.
Reply
#3
Maybe that's why only half the Tomahawks actually made it to their destination?  Huh
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#4
i agree with Andreia Gaita. Some yahoo sticks the same software in a missile twice the range and the next thing you know, the missile plows into a school. Something unexpected always happens. Remember the patriot missile incident ?
Recommended Tutorials:
Reply
#5
(May-07-2017, 09:11 PM)sparkz_alot Wrote: Maybe that's why only half the Tomahawks actually made it to their destination?  Huh
Wow, someone actually believed "only half the Tomahawks" spin Doh ?!
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply
#6
Quote:Maybe that's why only half the Tomahawks actually made it to their destination
I believe that only one didn't make it
Reply
#7
(May-08-2017, 01:51 AM)Larz60+ Wrote: I believe that only one didn't make it
You'be obviously sold your soul to imperialist propaganda  Naughty . The oculist won't lie  Snooty
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply
#8
(May-07-2017, 09:32 PM)volcano63 Wrote: Wow, someone actually believed "only half the Tomahawks" spin  ?!

Yup, I also believe global warming is a reality, despite what the government says. Then again, there is very little that comes out of Washington that I take at face value.  That's the beauty of the internet (which I don't believe was invented by Al Gore),  we now have the ability to check multiple news sources.

@nilamo, after reading the quote, it made me wish I had $10 to buy the original article by Dr. Herbert Lin The development of software for ballistic-missile defense (Scientific American, December 1985) to see what else he had to say  Think

EDIT: Added December to published date.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#9
(May-07-2017, 09:11 PM).sparkz_alot Wrote: Maybe that's why only half the Tomahawks actually made it to their destination?  Huh

I was told that during the operation Allied Force against Yugoslavia (March-June 1999), they used large numbers of Tomahawks (218 total...) because because the missiles were reaching their use-by date anyway, since their inboard guidance software wouldn't support the GPS calendar rollover that would happen later on August 21, 1999 and refurbishing them would be too expensive (it made more sense to buy the new generation ones).

"We aren't bombing you, we are just dumping our old missiles"
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply
#10
Actually there was an accident with those rockets during Yougoslavia conflict. One of the rockets have crossed the country borders and hit a roof of a house in Bulgaria.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020