On Fri, Aug 31, 2018 at 9:50 AM Eric Raymond <e...@thyrsus.com> wrote: > That was helpful. I feel like I have a more solid grasp now, though I'm a > bit worried about what details might have changed.
IIRC, as of some years ago (Go 1.3 or 1.4??), the value inside an interface is now always a pointer, because something something precise (as opposed to conservative) garbage collection. This invalidates the second of the techniques in "Memory Optimizations" on that doc, when the value is word-sized (or smaller). So, yes, the implementation details (for one compiler) might have changed, but the language has not (and will not wrt interface semantics for the forseeable future, a la https://golang.org/doc/go1compat). I don't think you need to worry. As Ian said, in terms of concepts (instead of implementation details), nothing has changed. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.