News for hackers. Stuff that matters.
Re:Notes by djb on using Fil-C (2025) by mbrock on Sunday November 02, 2025 @09:52AM (#45790741)
You can wrack some people's brains by stating that for some problems, a GC is a great way to alleviate the performance problems caused by manual memory management.
Re:Notes by djb on using Fil-C (2025) by jeltz on Sunday November 02, 2025 @10:55AM (#45791222)
For those problems arena allocators tend to perform even better.
Re:Notes by djb on using Fil-C (2025) by mbrock on Sunday November 02, 2025 @11:09AM (#45791313)
Yeah, but if you actually need to retain a live subgraph of the allocated heap, the arena can't help you. So you make an arena allocator that only frees its slab after moving out the reachable set to a new compacted arena. Congratulations, you've implemented a Cheney-style compacting GC!
Re:Notes by djb on using Fil-C (2025) by quotemstr on Sunday November 02, 2025 @11:17AM (#45791370)
Not for all allocation patterns. It's hard to beat bump pointer allocation and escape analysis in general.