#golang proposal: add package for using SIMD instructions
https://github.com/golang/go/issues/53171
(Check this too https://github.com/mmcloughlin/avo by @mbmcloughlin π)
https://github.com/golang/go/issues/53171
(Check this too https://github.com/mmcloughlin/avo by @mbmcloughlin π)
GitHub
proposal: add package for using SIMD instructions Β· Issue #53171 Β· golang/go
SIMD has the potential to greatly increase performance of a lot of data processing applications. Since #35307 was closed with the remark We agree that there is an opportunity here, but we don't...
Yay, #golang performance dashboard https://perf.golang.org/dashboard/
Scaling our Spreadsheet Engine from Thousands to Billions of Cells in #golang
https://www.causal.app/blog/scaling by @CausalHQ
https://www.causal.app/blog/scaling by @CausalHQ
www.causal.app
Scaling our Spreadsheet Engine from Thousands to Billions of Cells - The Causal Blog
From Maps to Arrays
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/
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/
πΊπ¦ Go performance channel
https://twitter.com/calebspare/status/1546928290123812864
Twitter
New #Go memory model seems to be like Java: no undefined behavior due to data races, only race conditions (all variables are atomic-ish). This inhibits lots of compiler optimizations C/C++ compilers typically do.
But races on strings/maps still lead to arbitraryβ¦
But races on strings/maps still lead to arbitraryβ¦
Nice #golang proposal by twitter.com/mbmcloughlin is accepted π:
testing: add Elapsed() method to testing.B
https://github.com/golang/go/issues/43620
testing: add Elapsed() method to testing.B
https://github.com/golang/go/issues/43620
X (formerly Twitter)
Michael McLoughlin (@mbmcloughlin) on X
Mathematical Software Engineer.
Mastodon @[email protected]
Bluesky @mmcloughlin.com
Mastodon @[email protected]
Bluesky @mmcloughlin.com
πΊπ¦ Go performance channel
Nice #golang proposal by twitter.com/mbmcloughlin is accepted π: testing: add Elapsed() method to testing.B https://github.com/golang/go/issues/43620
One more step to the better #golang benchmarks (now by twitter.com/mknyswe, also accepted π):
testing: report GC/op when b.ReportAllocs is called
https://github.com/golang/go/issues/52466
testing: report GC/op when b.ReportAllocs is called
https://github.com/golang/go/issues/52466
X (formerly Twitter)
mknyszek (@mknyswe) on X
works on @golang runtime | he/him