News for hackers. Stuff that matters.
Re:Go 1.26 Interactive Tour by ShayNehmad on Tuesday January 20, 2026 @12:17AM (#46688183)
Anton's interactive tour is the best way to read the release notes IMO! As mentioned on Cup o' Go.
Re:Go 1.26 Interactive Tour by metaltyphoon on Tuesday January 20, 2026 @02:18AM (#46688869)
Cup ‘o Go? The name is familiar. If yes, love the show and listen to every episode even though I rarely use Go!
Re:Go 1.26 Interactive Tour by rockwotj on Monday January 19, 2026 @10:58PM (#46687769)
With the new GC I really love the trend of understanding memory bandwidth is the bottleneck for many things and the combination of locality and SIMD is a big performance unlock.

Reminds me of the WAND vs MAXSCORE discussion by turbopuffer: https://turbopuffer.com/blog/fts-v2-maxscore

Re:Go 1.26 Interactive Tour by guessmyname on Monday January 19, 2026 @11:54PM (#46688050)
> Optimized fmt.Errorf — With the new Go release, this debate should finally be settled. For unformatted strings, fmt.Errorf now allocates less and generally matches the allocations for errors.New. Specifically, fmt.Errorf goes from 2 allocations to 0 allocations for a non-escaping error, and from 2 allocations to 1 allocation for an escaping error […]

Thank you so much!!! I used to always take an extra second to decide which one to use based on the function’s parameter(s), and now I feel like I’m getting that time back, no sarcasm at all. This is a genuinely great improvement.

Re:Go 1.26 Interactive Tour by slantedview on Monday January 19, 2026 @11:46PM (#46688015)
The recursive type constraints are excellent.
Re:Go 1.26 Interactive Tour by dmix on Monday January 19, 2026 @11:21PM (#46687882)
I don't use Go often but that's an excellent summary article.
Re:Go 1.26 Interactive Tour by SSchick on Monday January 19, 2026 @11:02PM (#46687784)
Fed *bool `json:"is_fed"` // you can never be sure

felt that part

Re:Go 1.26 Interactive Tour by binary132 on Tuesday January 20, 2026 @12:41AM (#46688296)
Wow, big release. I wonder if it was AI facilitated?
Re:Go 1.26 Interactive Tour by XorNot on Tuesday January 20, 2026 @12:50AM (#46688340)
Oh wow the changes to new() are an enormous ergonomics unlock. ErrAsType will also replace a similar package for me (too bad value errors will still be a thing though, and beginning new type errors still so wordy).
Re:Go 1.26 Interactive Tour by throwawaygod on Tuesday January 20, 2026 @02:38AM (#46688987)
The differences btwn new() and make() is even lesser now. Is the goal is to deprecate make()?
Re:Go 1.26 Interactive Tour by ptman on Tuesday January 20, 2026 @06:10AM (#46690553)
How would you dup := make([]int, 0, len(slice)) then?
Re:Go 1.26 Interactive Tour by alyandon on Tuesday January 20, 2026 @11:43AM (#46694038)

  https://antonz.org/go-1-26/#httptest-example
> To fix this issue, the HTTP client returned by httptest.Server.Client now redirects requests for example.com and its subdomains to the test server

I'm really conflicted about the idea that the https client should silently hijack requests to example.com in order to make a dummy certificate work... or am I just really misunderstanding?

Re:Go 1.26 Interactive Tour by explodes on Tuesday January 20, 2026 @07:32PM (#46699675)
This was a great read, even without having been working with Go for some time. It was well written, the examples demonstrated nearly everything, and being able to edit samples to test everything else, all on my phone, is quite delightful. Cheers to the author
Re:Go 1.26 Interactive Tour by hbogert on Thursday January 29, 2026 @03:05AM (#46807167)
I'm salty they are embracing SIMD, but shove this proposal to the side:

https://github.com/golang/go/issues/58610

if you know the ISPC compiler, the proposal is basically that for Go