by grammarxcore · 6y ago · 0 comments
https://github.com/golang/go/issues/20058
The recommended fix is to use a library like this one. However, that means your containers blow up with complicated dependency trees so it's not really a good solution for a distributed container architecture (eg Kubernetes).
I love working with Go because of its simple binaries and small containers, but there are some things that it just does not do well.
math/big.addMulVVW
There was some work on it recently.
https://go-review.googlesource.com/q/addMulVVW
But I feel like this issue might have been ignored.
https://go-review.googlesource.com/c/go/+/164966
It might be addressed in Go 1.14 (although it's been marked as Backlog since I last looked at that issue).
https://github.com/golang/go/issues/32492
Point being Go, like OP of this thread suggests, has some issues. This is, to me, a critical flaw preventing my teams from using Go as a primary web language. It is both consistently faster and consistently timed to make an external call to, say, gpg2 to generate a key than it is to use the opengpg lib that relies on math/big. That's nuts.