Until the cruise missile shop down the hall decides to reuse your controller.
If all software is built to protect against all possible future anticipated use cases, your software will take longer to make, perform worse, and be more likely to have bugs. If all software is built only to solve the problem at hand, it will take less time to develop, be less likely to have bugs, and perform better. It isn't clear that coding for reuse is going to get you a net win, especially since computing platfo…
Does memory leak? (1995)
11–20 of 289 posts
Re: Does memory leak? (1995)
#12What a cute story about writing software to kill people by shredding them with shrapnel.
Re: Does memory leak? (1995)
#13In this case I assume that a massive amount of testing mitigates these issues however.
Re: Does memory leak? (1995)
#14What a cute story about writing software to kill people by shredding them with shrapnel.
Re: Does memory leak? (1995)
#15a) calculating maximum leakage
b) doubling physical memory
instead of just fixing the leaks? Was it to save cycles? Prevent memory fragmentation? I feel this story misses the details that would make it more than just a cute anecdote.
Re: Does memory leak? (1995)
#16One other class of applications that don't really require garbage collection is HTTP request handlers if run as isolated processes. They are usually very short-lived - they can't even live longer than some maximum enforced by the server. For example, PHP takes advantage of this and allows you not to worry about circular references much.
My best guess is a security guarantee.
Re: Does memory leak? (1995)
#17This whole procedure appears to be a bit unbelievable. And we're not even talking about code/system maintainability.
Re: Does memory leak? (1995)
#18Until the cruise missile shop down the hall decides to reuse your controller.
Re: Does memory leak? (1995)
#19Why go through the trouble of a) calculating maximum leakage b) doubling physical memory instead of just fixing the leaks? Was it to save cycles? Prevent memory fragmentation? I feel this story misses the details that would make it more than just a cute anecdote.
Re: Does memory leak? (1995)
#20One other class of applications that don't really require garbage collection is HTTP request handlers if run as isolated processes. They are usually very short-lived - they can't even live longer than some maximum enforced by the server. For example, PHP takes advantage of this and allows you not to worry about circular references much.