3 ms·
Yes, I've repeatedly encountered programmers who insist that leaks aren't possible in GC languages, and they then build ugly stuff where nothing ever gets freed
by not2b 5y ago
Yes, I've repeatedly encountered programmers who insist that leaks aren't possible in GC languages, and they then build ugly stuff where nothing ever gets freed because a tangle of references connects everything to everything, and they won't even call this situation a leak, even though they have allocated objects that will never be used again that keep growing.
- howinteresting 5y agoYeah, GC inevitably leads to hideous memory leaks. In some cases that's totally fine! For example, if you have a stateless fleet of server-side applications and you can restart any of them at any time, or if you have a CLI that runs for short amounts of time. In other cases, for example long-running stateful servers, games or GUI apps, it can quickly become a real problem.