3 ms·
> I'm curious if the algorithm for reusing memory is smart enough to handle something like manually allocating the maximum amount of memory needed for the lifet
by davemp 2y ago
> I'm curious if the algorithm for reusing memory is smart enough to handle something like manually allocating the maximum amount of memory needed for the lifetime of the program up front and then re-using that for the duration of the program to avoid needing to allocate anything dynamically at all
I imagine this would be equivalent to solving the halting problem. So you’d need to restrict the language in some significant ways. I’d definitely still be interested.