Hacker News new | ask | show | jobs
by Findecanor 1472 days ago
There are algorithms for doing garbage collection in real-time systems, but these tend to have more overhead in total than stop-the-world GC.

On microcontrollers, which often have very limited RAM, I'd prefer avoiding doing any heap allocation at all. If there is any need for any dynamic allocations, they are within fixed-size memory pools — each with only fixed-size objects or with objects on a stack.