<p><a href="https://fosstodon.org/tags/rustlang" class="mention hashtag" rel="tag">#<span>rustlang</span></a> <a href="https://fosstodon.org/tags/garbage_collector" class="mention hashtag" rel="tag">#<span>garbage_collector</span></a> </p><p>&gt; ... Rust&#39;s ownership system _is_ a garbage collector, one that automatically calculates lifetime expiration based on lexical scope during compilation rather than at runtime based on ref-counts or root-traceability. What you call statically managed memory, I call lexical garbage collection.</p><p>&gt; Usually I dub GC as &quot;automatic dynamic memory management&quot;, C as &quot;manual static memory management&quot;, and Rust as &quot;automatic static memory management.</p><p><a href="https://www.reddit.com/r/ProgrammingLanguages/comments/6sq6nv/comment/dlerbd5/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://www.</span><span class="ellipsis">reddit.com/r/ProgrammingLangua</span><span class="invisible">ges/comments/6sq6nv/comment/dlerbd5/</span></a></p>
Reply