Go 1.27 Interactive Tour(victoriametrics.com)
360 points by Hixon10 45 days ago | 196 comments
tl;dr: Go 1.27's headline feature is generic methods, allowing method declarations to have their own type parameters independent of the receiver (though interfaces still can't declare them). Other notable additions include a standard library `uuid` package, `encoding/json/v2` graduating from experimental status (with v1 now backed by v2), post-quantum ML-DSA signatures, an experimental portable `simd` package, promoted-field struct literal selectors, and generalized function type inference. Performance improvements include size-specialized memory allocation (~30% faster for small allocations) and three new compiler optimizations enabled by default.
HN Discussion:
  • Generic method syntax is too cognitively heavy and hard to read
  • ~Request for clearer explanation comparing generics to familiar non-generic examples
  • Appreciation for Go's standard library additions like crypto and simd
  • ~Concern about silent behavior changes like auto-draining HTTP response bodies
  • Enthusiasm for the expansion of generics functionality