logoalt Hacker News

netbioserrortoday at 1:21 PM1 replyview on HN

Nim does much the same. It prefers the stack, wraps dynamic heap types in value-semantic unique pointers by default, and avoids implicit copies wherever it can. I could see compiled languages trending in the stack-managed direction long term.


Replies

zozbot234today at 2:59 PM

It's more like a seamless generalization of the "stack-managed" pattern since async contexts also usually manage resources but don't reside on a stack.