[go-nuts] how golang choose instructions?

2020-08-22 Thread xie cui
we can find same dynamic programming algorithm(like BURS bottom rewriting system), to choose instructions in book about compiler technique. but as far as i know, it seems that golang just transform ast to ssa IR, then lower to machine instruction. how i find the min cost of instructions? -- Yo

Re: [go-nuts] Go routines stuck in runtime_pollwait

2020-08-22 Thread Ian Lance Taylor
On Sat, Aug 22, 2020 at 12:06 PM Siddhesh Divekar wrote: > > We saw an issue with our process running in k8s on ubuntu 18.04. > Most of the go routines are stuck for several minutes in http/http2 net code. > > Have you seen similar issues ? > > goroutine 2800143 [select, 324 minutes]: > net/http.

[go-nuts] Go routines stuck in runtime_pollwait

2020-08-22 Thread Siddhesh Divekar
Hi All, We saw an issue with our process running in k8s on ubuntu 18.04. Most of the go routines are stuck for several minutes in http/http2 net code. Have you seen similar issues ? goroutine 2800143 [select, 324 minutes]: net/http.(*persistConn).readLoop(0xc00187d440) /usr/local/go/src/net/h

Re: [go-nuts] [ generics] Moving forward with the generics design draft

2020-08-22 Thread Awh6al
This is absolutely big improvement to make go generics simple and remove the gap between the old and new syntax :). On Saturday, August 22, 2020 at 1:23:34 PM UTC+1 vkojo...@gmail.com wrote: > On Saturday, August 22, 2020 at 12:49:21 AM UTC+2 rog wrote: > >> On Fri, 21 Aug 2020 at 23:12, jimmy

Re: [go-nuts] [ generics] Moving forward with the generics design draft

2020-08-22 Thread Viktor Kojouharov
On Saturday, August 22, 2020 at 12:49:21 AM UTC+2 rog wrote: > On Fri, 21 Aug 2020 at 23:12, jimmy frasche wrote: > >> I don't want a generic min unless it looks like this: >> >> func Min[T constraints.Ordered](a, b T) T { >> switch T { >> case float32: >> return T(math.Min(float32(a),

Re: [go-nuts] [ generics] Moving forward with the generics design draft

2020-08-22 Thread Volker Dobler
On Friday, 21 August 2020 20:15:46 UTC+2, burak serdar wrote: > > [...] > I don't see why anybody would find it attractive as a return type. People > don't use the empty interface because they like it so much, but because Go > doesn't have parametric polymorphism / "generics" yet. There are man