'. '

Garbage Collection

From APIDesign

(Difference between revisions)
Jump to: navigation, search

JaroslavTulach (Talk | contribs)
(New page: Every modern language has garbage collection! In a language like C one had to manually deallocate all the allocated memory - wit...)
Next diff →

Revision as of 05:43, 26 March 2022

Every modern language has garbage collection! In a language like C one had to manually deallocate all the allocated memory - without such clean up the running program would continually eat more and more memory. Garbage Collection offers a mechanism to do such cleanup automatically. It comes with some overhead, but at the end of last century Java demonstrated, it can be implemented quite effectively. Since then every modern language uses it - be it a dynamic language (Python, JavaScript, Ruby, etc.) or even a compiled language like Go. There is just a single exception so far: Rust.

Personal tools
buy