argv[-1]argv_minus_one@mastodon.sdf.org
Sep 18, 2026, 7:11 PMHeap allocation with a GC isn't cheap; its cost is just deferred, like buying something on a loan instead of paying up front.
It's pretty much a natural law that heap allocation is expensive. You can defer the cost, and you can use various elaborate strategies to reduce the cost a little, but it's still expensive.
And yeah, taking references to stack memory safely is difficult. That's why Rust is such a big deal: it has a solution for that thorny problem.