←Older revision | Revision as of 05:56, 26 March 2022 | ||
Line 1: | Line 1: | ||
- | Every modern language has [[wikipedia:garbage collection (computer science)|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]]. | + | Every modern language has [[wikipedia:garbage collection (computer science)|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.), [[Java]]-like [[language]] like [[CSharp]] or even a compiled language like [[Go]]. There is just a single exception so far: [[Rust]]. |