Go 1.21 Release Candidate

3 years ago by nickel to c/golang

Go 1.21 RC brings language improvements, new standard library packages, PGO GA, backward and forward compatibility in the toolchain and faster builds.

Go 1.21 RC released today. Some really interesting new additions. I'm pretty excited to see the map and slice package additions that contain a lot of generic methods. Will be nice not to have to maintain my own going forward.

kamstrup 8 points 3 years ago

I am super excited for this release. I think varargs min/max() built-ins are my favorite feature. Closely followed by clear() and improved type-param inference

path: 0 431517, hotness: undefined, score: 8, children: 1
bttk 2 points 3 years ago path: 0 431517 577248, hotness: undefined, score: 2, children: 0
nickel 5 points 3 years ago

Curious to know if slog will finally allow the community to settle on a standard logger. I've been using logr.Logr interface for a long time now with zap as the backend. Will be nice to at least replace zap with the slog as the underlying logging mechanism to remove at least one dependency.

path: 0 445991, hotness: undefined, score: 5, children: 0
wilk 3 points 3 years ago

@nickel Not boring release this time !

path: 0 433497, hotness: undefined, score: 3, children: 1
nickel 3 points 3 years ago

Yea there is some really interesting stuff in this release! Love the addition of generics in the packages. I feel like future Go releases will have a lot more of these nice generic utils in them to help clean up userland code.

path: 0 433497 446001, hotness: undefined, score: 3, children: 0
stoex 3 points 3 years ago

Love the new built-ins. Also the addition of the slice and map packages are welcome.

I’m still experimenting with PGO, but in my current projects it sadly does not lead to performance gains. Looking forward to working with the feature more in-depth though.

path: 0 432772, hotness: undefined, score: 3, children: 0
wyrmroot 1 point 3 years ago

That was a good write up of the loop var issue, I had run into that only once and figured it was just a part of the learning curve I hadn’t hit yet. Glad to see it’s an area everyone agreed could improve!

path: 0 688716, hotness: undefined, score: 1, children: 0
golang
golang

@programming.dev

login for more options
2784
318
26

This is a community dedicated to the go programming language.

Useful Links:

Rules:

  • Posts must be relevant to Go
  • No NSFW content
  • No hate speech, bigotry, etc
  • Try to keep discussions on topic
  • No spam of tools/companies/advertisements
  • It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

go to feed...