Y
Hacker News
new
|
ask
|
show
|
jobs
by
iambvk
3815 days ago
I don't understand how resumable functions can be used to build stack-full coroutines, like in Go language, can anyone give an example or some links?
1 comments
gepoch
3815 days ago
Go has an interesting history surrounding its stacks. Originally the stack was a doubly linked-list (segmented stack), but it changed into a more vector-like format (contiguous stacks) in 1.3. Here's a pretty good write-up:
http://agis.io/2014/03/25/contiguous-stacks-in-go.html
link
http://agis.io/2014/03/25/contiguous-stacks-in-go.html