logoalt Hacker News

infogulchtoday at 2:13 PM1 replyview on HN

Couldn't we just permanently solve the stack copying issue by always using a per-stack base pointer + offset for all stack objects? Copy stack -> update base pointer -> done. Trying to access a stack object on a different thread? That's retarded don't do that allocate it on the heap instead.


Replies

matheusmoreiratoday at 3:21 PM

Could be done, but it probably wouldn't work with existing C binary interfaces.