A toddlers guide to memory leaks in JavaScript
1–10 of 12 posts
Re: A toddlers guide to memory leaks in JavaScript
#2Re: A toddlers guide to memory leaks in JavaScript
#3Re: A toddlers guide to memory leaks in JavaScript
#4All of these issues could’ve been avoided if we didn’t use functional programming. I think imperative languages are better because things like memory leaks and algorithmic errors are easy to conceptualize in the first place, hence less chance of typos.
Re: A toddlers guide to memory leaks in JavaScript
#5This is just “using lots of memory”, not a “leak”.
Re: A toddlers guide to memory leaks in JavaScript
#6This is just “using lots of memory”, not a “leak”.
Re: A toddlers guide to memory leaks in JavaScript
#7All of these issues could’ve been avoided if we didn’t use functional programming. I think imperative languages are better because things like memory leaks and algorithmic errors are easy to conceptualize in the first place, hence less chance of typos.
All of these issues could’ve been avoided if we didn’t use imperative programming. I think functional languages are better because things like memory leaks and algorithmic errors are easy to conceptualize in the first place, hence less chance of typos.
Re: A toddlers guide to memory leaks in JavaScript
#8Re: A toddlers guide to memory leaks in JavaScript
#9This is just “using lots of memory”, not a “leak”.
In the context of a language with a working garbage collector, doesn't "memory leak" just mean "accidentally using lots of memory"?
If this is not a definition of a memory leak I don't know what is.
Re: A toddlers guide to memory leaks in JavaScript
#10Earlier quoted context omitted.
In the context of a language with a working garbage collector, doesn't "memory leak" just mean "accidentally using lots of memory"?
With cyclical references add "freed sometime between now and eternity". If this is not a definition of a memory leak I don't know what is.
Now, if you're merely approximating garbage collection with reference counting then sure, you have a problem.