Go

Every post we follow in this topic, newest first.

Recent posts

Newest first
  1. Go proposal tracker

    A Go proposal tracker was built to provide quick summaries of implemented, accepted, and likely accepted proposals, with an RSS feed and weekly digest.

  2. A Go Gotcha: Context Keys Are Typed

    A Go gotcha involves typed context keys, where different string types prevent context value lookups between packages.

  3. Probabilistic data structures in Go, part 2

    Probabilistic data structures in Go, like the binary fuse filter, offer memory savings for approximate set membership checks with trade-offs in accuracy and mutability.

  4. Accepted proposal: omit the type in composite literals

    Go 1.28 will allow omitting the type in composite literals when the type is already known by the compiler.

  5. Probabilistic data structures in Go

    Probabilistic data structures offer approximate answers to data queries with reduced memory usage, and the Go package unsure implements these structures efficiently.

  6. Accepted proposal: grow an existing map with maps.Grow

    Go's new maps.Grow function allows pre-allocating space in existing maps to avoid repeated reallocations and rehashing.

  7. gobench: a tool for comparing Go benchmark runs across branches

    Gobench is a new Go tool designed to streamline the comparison of benchmark runs across different branches, improving upon manual scripting methods.

  8. Partial updates with field masks

    Using an update_mask query parameter with PATCH requests allows APIs to differentiate between undefined, null, and updated fields.

  9. Relying on Go

    Solod is a systems language for C and Go developers that is a literal subset of Go, reusing its tooling and standard library.

  10. Going Backward: Reinventing Go's iterator

    Go's slices package Backward function iterates over slice elements in reverse order, evolving from simple copies to closures and callbacks.

  11. Accepted proposal: range over all command-line flags

    Go's package flag proposal adds an IsSet field to flags, simplifying environment variable overrides by allowing direct iteration over all flags.

  12. Accepted proposal: Go examples with any signature

    Go's proposal to allow examples with any signature, including parameters and return values, was accepted to improve documentation and testing capabilities.

  13. Supervised fire-and-forget in Go

    A supervised fire-and-forget approach for Go goroutines uses a worker pool to manage background tasks, bounding concurrency and handling errors.

  14. On interactive Go tours

    Interactive tours for Go releases, from 1.22 to 1.26, will no longer be published due to the author's decision to stop.

  15. GC shape stenciling in Go generics

    Go's generics implementation uses GC shape stenciling, compiling one function body per type's GC shape rather than full monomorphization or type erasure.

  16. Modernizers & go fix

    Go 1.26's rebuilt go fix tool automatically modernizes code by applying language and library updates, becoming a favorite feature for developers.

  17. Request coalescing with Go singleflight

    Go's singleflight package deduplicates concurrent calls for the same key, preventing database stampedes by ensuring an expensive upstream operation runs only once.

  18. Solod 0.2: Networking, new targets, friendlier interop

    Solod v0.2 introduces networking support for TCP, UDP, and Unix domain sockets, alongside expanded compilation targets and improved C interop.

  19. Channel iteration and goroutine leak

    A custom cron scheduler's channel iteration misuse leads to a goroutine leak, which is fixed by closing the channel after all jobs report their outcomes.

  20. Accepted proposal: a goroutine leak profile in the Go standard library

    Go 1.27 will include a goroutine leak detector in runtime/pprof, leveraging the garbage collector for provable detection of unrecoverable goroutines.

  21. How my minimal, memory-safe Go rsync steers clear of vulnerabilities

    A minimal, memory-safe Go rsync implementation is examined for its effectiveness in mitigating security vulnerabilities present in the original C version.