Remix.run Logo
▲ Aardappel 6 hours ago

Only top level growable arrays get their own "stack", if you create an array of arrays it only uses one stack.

How you deal with the inner stack growing depends, ideally they don't grow (construction only), or you can make them fixed size, or with a capacity, or in the worst case, as a pool. The language has facilities for all of these.

▲amluto 4 hours ago | parent [-]

What’s the “pool” case? A function allocates a growable arena in normal heap or virtual memory?

▲Aardappel 4 hours ago | parent [-]

https://aardappel.github.io/goose/docs/reference.html#14-reu...