https://slicker.me/rust/ownership_and_borrowing_vs_reference_counting.html #Rust #Management #ReferenceCounting #HackerNews #ngated
Rust Memory Management: Ownership vs. Reference Counting
https://slicker.me/rust/ownership_and_borrowing_vs_reference_counting.html
#HackerNews #Rust #Memory #Management #Ownership #ReferenceCounting #ProgrammingLanguages
Was stuck the past week(s) in my #lisp implementation in #zig on #closures, as they provide an real challange with their capturing properties. Espc bc I didn't wanted to resort to using things like arbitary "rules" to restrict the language only for closure to work, or already implementing a tracing #garbagecollector for this.
I rather choose to use #ARC (Atomically Reference counting) for this, which comes with a few problems. And as I found nobody that has solved this problem, I've come up with a solution to it myself: 'Switchable references with strongchain elemination'. A bit bulky name, and the technique is still in it's beginning, but when implemented in rust the compiler dosnt complain and valgrind dosn't detects any leaks.
I've written a fairly big blogpost about it too, including not only the whole explanation how it works but also alternatives I've considered. Check it out if you're interested!
Now I only need to translate it over to zig, but hopefully that dosnt take so long x3
#coding #programming #software #oss #foss #ossdev #fossdev #lisp #zig #rust #softwaredevelopment #pldev #programminglanguages #referencecounting #rc #arc
Bold assertions, without *any* supporting hard evidence 🙄:
"Reference Count, Don't Garbage Collect", Kevin Lawler (https://kevinlawler.com/refcount).
Via HN: https://news.ycombinator.com/item?id=32276580
#MemoryManagement #RC #GC #ReferenceCounting #GarbageCollection #ARC #Programming #PLDI
Nice:
"Low-Latency, High-Throughput Garbage Collection" [PDF], Wenyu Zhao, et al, PLDI 2022 (https://users.cecs.anu.edu.au/~steveb/pubs/papers/lxr-pldi-2022.pdf).
On HN: https://news.ycombinator.com/item?id=31153434
On Lobsters: https://lobste.rs/s/zav74i/low_latency_high_throughput_garbage
#LXR #RC #GC #ReferenceCounting #GarbageCollection #MemoryManagement #OpenJDK #Java
Chris Lattner (of #LLVM & #Swift fame) talks about #GarbageCollection vs #ARC on the #AccidentalTechPodcast with John Siracusa [2017]: https://atp.fm/205-chris-lattner-interview-transcript#gc
Via HN: https://news.ycombinator.com/item?id=31139610
#GC #MemoryManagement #Programming #AutomaticReferenceCounting #RC #ReferenceCounting