News for hackers. Stuff that matters.
Re:Four Years of Jai by pphysch on Saturday April 19, 2025 @11:34AM (#43737108)
I'm not saying you design a language with an optional GC, I'm saying the user can implement their own allocators i.e. large object pools nested in the GC-managed memory system. And then they get to avoid most of the allocation and deallocation overhead during runtime.
Re:Four Years of Jai by fleabitdev on Saturday April 19, 2025 @12:03PM (#43737300)
Sorry, I wasn't very clear - I think that using an object pool in a GCed language is like writing code in a dialect of that language which has no allocator.
Re:Four Years of Jai by pphysch on Saturday April 19, 2025 @01:33PM (#43737929)
Sure, but how is that any different than what you'd have to do in a regular GC-less lang to achieve good (allocation-avoiding) performance.