๐Ÿ‡บ๐Ÿ‡ฆ Go performance channel
1.5K subscribers
39 photos
400 links
Go performance, runtime, concurrency.

Talks, blogposts and open source projects for gophers.

Not affiliated with Go team.

https://go-perf.dev

(mail: [email protected] / @olegkovalov)
Download Telegram
From "#golang compiler and runtime meeting notes":

> do we want to have an external monthly version of this meeting?

for { println("YES") }

(please, don't comment on the issue, everything will be deleted as a spam)
https://github.com/golang/go/issues/43930#issuecomment-1122745144

I hope that making this meeting public will make @golang team life easier because feedback loop will be shorter with more eyes on 1 thing.
> Rather than one large survey each November, we plan to launch two smaller surveys at roughly six-month intervals during the year.

https://go.dev/blog/survey2022-q2

(no idea why this blogpost wasn't tweeted by @golang ๐Ÿคทโ€โ™€๏ธ)
Nice patch for #golang bigint:

math/big: make NewInt inlineable and zero allocation
Mark the assembly routines as not escaping their arguments.

https://go-review.googlesource.com/c/go/+/411254/
Forwarded from Daniel Lemire's blog
Go generics are not bad

When programming, we often need to write โ€˜genericโ€™ functions where the exact data type is not important. For example, you might want to write a simple function that sums up numbers. Go lacked this notion until recently, but it was recently added (as of version 1.18). So I took it out for a spin. In Java, generics work well enough as long as you need โ€œgenericโ€ containers (arrays, maps), and as long as stick with functional idioms. But Java will not let me code the way I would prefer. Here is how I would write a function that sums up numbers: int sum(int[] v) { int summer = 0; for(int k = 0; k < v.length; k++) { summer += v[k]; } return summer; } What if I need to support various number types? Then I would like to write the following generic function, but Java wonโ€™t let me. // this Java code won't compile static T sum(T[] v) { T summer = 0; for(int k = 0; k < v.length; k++) { summer += v[k]; }โ€ฆ

https://lemire.me/blog/2022/07/08/go-generics-are-not-bad/