🇺🇦 Go performance channel – Telegram
🇺🇦 Go performance channel
1.49K subscribers
41 photos
410 links
Go performance, runtime, concurrency.

Talks, blogposts and open source projects for gophers.

Not affiliated with Go team.

https://go-perf.dev

(mail: hello@go-perf.dev / @olegkovalov)
Download Telegram
> 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/
Yay, #golang performance dashboard https://perf.golang.org/dashboard/
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/