| ▲ | connicpu 3 hours ago | ||||||||||||||||
Avoiding the heap entirely isn't required and will prevent you from working with substantial amounts of data. The real key is to allocate all the memory you need up front and use that large block for a long duration. | |||||||||||||||||
| ▲ | packetlost 2 hours ago | parent [-] | ||||||||||||||||
> Avoiding the heap ... will prevent you from working with substantial amounts of data This isn't really true of Goose, it's avoiding 'the heap' in the C sense, not in the OS allocated pages of memory sense. One is a programming abstraction provided by the other, but GP is only talking about the programming abstraction. I have never encountered a program that couldn't have memory be explicitly tied to lexical scope, but it can result in less efficient use of it in some cases. Goose is almost, but not exactly the "allocate all your stuff at the beginning" the programming language. It's honestly the most exciting language I've seen in quite some time. | |||||||||||||||||
| |||||||||||||||||