News for hackers. Stuff that matters.
Re:Why I Don't Want to Learn Go by axiak on Monday March 19, 2012 @11:41AM (#3724407)
My understanding is that go still provides a lot of tools to indicate when you want memory allocated and where the memory will go (which can optionally be left out). If these were used, wouldn't that make it easier for the go gc to perform better?
Re:Why I Don't Want to Learn Go by ootachi on Monday March 19, 2012 @01:40PM (#3725096)
It doesn't. Go provides stack allocation and heap allocation. Stack allocation is the default (except for some always-on-heap things), and stack allocation is silently converted to heap allocation when you take the address of an object.

Go's memory management story is basically the same as Java's with the "use escape analysis to place objects on the stack" flag enabled. (To be fair, there is one extra thing that Go provides: the ability to allocate objects inside other objects.)