3 ms·
It's a shame that the author blows his credibility asserting that garbage collection reduces accidental complexity, because he is right that the amount of the l
by ncmncm 7y ago
It's a shame that the author blows his credibility asserting that garbage collection reduces accidental complexity, because he is right that the amount of the latter really has been much larger than Brooks estimated.
If you have ever watched the hoops somebody jumped through to plug a memory leak in a Java program, you will be forced to agree.
A fundamentally very similar process appears as a functional programmer unravels a program to fix a performance bottleneck. The reason it is similar is that, just as ballooning memory usage indicates a memory leak, a ballooning runtime indicates a time leak.
And, just as GC languages provide inadequate facilities to manage resource use, functional languages provide minimal resources to manage time use.
You could argue that memory and time management are on the accidental side of the ledger, and while the scientist in us would be tempted to agree, the engineer knows that managing limited resources is the essence of engineering, and taking away the tools needed to manage resources makes resource problems balloon out of control, breeding extremes of accidental complexity.
- commandlinefan 7y ago> If you have ever watched the hoops somebody jumped through to plug a memory leak in a Java program, you will be forced to agree. In my observation, a lot of “improvements” in software development are of this kind: they make it quicker and easier to get started, but make troubleshooting a lot more complex specifically because they’ve hidden what’s actually going on in an attempt to simplify things. Not that managed memory is a bad thing! But ideally it would be wielded by people who’d spent a fair amount of time manually managing memory so that they know what to look for.
- ncmncm 7y agoManaged memory is more of a superfluous thing. When you have resource management, memory is among the easier to manage, and GC looks like a solution without a problem.