4 ms·
I'm playing the devil's advocate a bit. I come from a compiler background. If your language has strong memory guarantees, a good compiler might even be able to
by tachyonbeam 7y ago
I'm playing the devil's advocate a bit. I come from a compiler background. If your language has strong memory guarantees, a good compiler might even be able to eliminate temporary allocations completely in some cases, which is pretty neat (ie: make you think you're heap allocating something, when in reality it's on the stack, or in registers).
- chrisseaton 7y agoBut that also requires managed memory. If your model is to call an opaque function `malloc` then the compiler can't reason about it to scalar replace it.