This article is about Go, but I wonder how many C/C++ developers realize that you've always had the ability to allocate on the stack using alloca() rather than malloc().

Of course use cases are limited (variable length buffers/strings, etc) since the lifetime of anything on the stack has to match the lifetime of the stack frame (i.e the calling function), but it's super fast since it's just bumping up the stack pointer.

LEGAL_NOTICE: This website acts solely as an automated content aggregator. We do not host, store, or upload any media shown above. All content is indexed via machine logic from external sources.