Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
emfree
on Oct 9, 2018
|
parent
|
context
|
favorite
| on:
Why you can have millions of goroutines but only t...
Goroutine stacks are in fact allocated on the heap. All the details are in here:
https://github.com/golang/go/blob/master/src/runtime/stack.g...
pcwalton
on Oct 9, 2018
[–]
By heap allocating stack frames I mean that each time you call a function, SML/NJ allocates space for that individual frame on the heap. It then uses the garbage collector to clean up frames after the function call has returned.
twic
on Oct 9, 2018
|
parent
[–]
Smalltalk-80 did this too. Later implementations try to avoid it, but sometimes still do:
http://www.wirfs-brock.com/allen/things/smalltalk-things/eff...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: