Hacker News new | ask | show | jobs
by stmw 104 days ago
Some may argue that the real problem here is the unstated assumption of wanting to have a garbage collector in the first place.
1 comments

Even if you use C++, and your lambdas allocate to the heap when created and deallocate when going out of scope, this paper could still help reduce the need for heap allocation for capturing lambdas in the first place, improving performance.
to be clear, C++ doesn't allocate lambdas on the heap. The allocation is under user control like for any other type.