12 comments

  • rockwotj18 days ago
    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.<p>Reminds me of the WAND vs MAXSCORE discussion by turbopuffer: <a href="https:&#x2F;&#x2F;turbopuffer.com&#x2F;blog&#x2F;fts-v2-maxscore" rel="nofollow">https:&#x2F;&#x2F;turbopuffer.com&#x2F;blog&#x2F;fts-v2-maxscore</a>
  • guessmyname18 days ago
    &gt; <i>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 […]</i><p>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.
  • XorNot18 days ago
    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).
  • hbogert9 days ago
    I&#x27;m salty they are embracing SIMD, but shove this proposal to the side:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;58610" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;golang&#x2F;go&#x2F;issues&#x2F;58610</a><p>if you know the ISPC compiler, the proposal is basically that for Go
  • ShayNehmad18 days ago
    Anton&#x27;s interactive tour is the best way to read the release notes IMO! As mentioned on Cup o&#x27; Go.
    • metaltyphoon18 days ago
      Cup ‘o Go? The name is familiar. If yes, love the show and listen to every episode even though I rarely use Go!
  • explodes17 days ago
    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
  • dmix18 days ago
    I don&#x27;t use Go often but that&#x27;s an excellent summary article.
  • alyandon17 days ago
    <p><pre><code> https:&#x2F;&#x2F;antonz.org&#x2F;go-1-26&#x2F;#httptest-example </code></pre> &gt; <i>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><p>I&#x27;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?
  • slantedview18 days ago
    The recursive type constraints are excellent.
  • SSchick18 days ago
    Fed *bool `json:&quot;is_fed&quot;` &#x2F;&#x2F; you can never be sure<p>felt that part
  • throwawaygod18 days ago
    The differences btwn new() and make() is even lesser now. Is the goal is to deprecate make()?
    • ptman18 days ago
      How would you dup := make([]int, 0, len(slice)) then?
  • binary13218 days ago
    Wow, big release. I wonder if it was AI facilitated?