languages

languages

164 bookmarks
Newest
Slice Internals in Go: How the Runtime Expands Slices Efficiently
Slice Internals in Go: How the Runtime Expands Slices Efficiently
This article dives into the internals of Go slices, exploring how the runtime efficiently grows the slice’s backing array. It covers the key strategies used, including growth factors, CPU word size alignment, and the size class allocation table, all aimed at optimizing performance while maintaining flexibility.
·themsaid.com·
Slice Internals in Go: How the Runtime Expands Slices Efficiently
4 Ways of Bumping Major Versions in Your Go Project
4 Ways of Bumping Major Versions in Your Go Project
I've recently found myself in a rabbit hole of Go major version bumping to v2. What started as a simple task quickly turned into hours of sifting through conflicting information. Should I use a v2 directory? Create a new v2 branch? What about creating a new repository altogether? The more
·jerrynsh.com·
4 Ways of Bumping Major Versions in Your Go Project