[go-nuts] Re: Does sync.(*Pool).Put slow to cause latency spikes sometimes?

2018-08-12 Thread nealhoo
Yes, there is only pointers in sync.Pool. I think the sync.Pool only slow during GCing is a normal behavior. If the sync.Pool's method slow with out GCing is a runtime issue. I donot agree: sync.Pool just amortizes the cost of creating garbage The sync.Pool is reusing object and reducing crea

[go-nuts] Re: Does sync.(*Pool).Put slow to cause latency spikes sometimes?

2018-08-12 Thread Tamás Gulácsi
sync.Pool just amortizes the cost of creating garbage, does not eliminiate it... You have to pay for your garbage somewhere! Are you sure you put only pointers into yout Pool? 2018. augusztus 13., hétfő 6:57:48 UTC+2 időpontban nea...@gmail.com a következőt írta: > > Hi, > > My services show so

[go-nuts] Re: Cross-compiled program for Raspberry Pi crashes

2018-08-12 Thread Dave Cheney
This is likely to be issue https://github.com/golang/go/issues/599, https://play.golang.org/p/zZm-6zWwFoi On Monday, 13 August 2018 01:29:43 UTC+10, Stephan Mühlstrasser wrote: > > Hi, > > I'm developing my first Go program that is supposed to upload files into a > Google Cloud Storage bucket f

[go-nuts] Re: CGO - http.post returns execption

2018-08-12 Thread nicolas_boiteux via golang-nuts
i don't find any information about this problem :( it doesnt seems to be relative to c.cstring cause when i use a simple string "hello" instead of the data return the dll crash too. if i use the same code in .exe it works fine. Le dimanche 12 août 2018 10:33:54 UTC+2, nicolas...@yahoo.fr a écr

Re: [go-nuts] Cross-compiled program for Raspberry Pi crashes

2018-08-12 Thread Stephan Mühlstrasser
Am Sonntag, 12. August 2018 19:33:19 UTC+2 schrieb Skip: > > Rpi1 model B requires setting GOARM=5 I believe. > >> Thanks for the suggestion, I indeed have used GOARM=6. But I just verified that the crash still occurs also when I compile with GOARM=5. -- You received this message because you are

[go-nuts] Re: Bug? http2 double slash gives "invalid request :path"

2018-08-12 Thread Willem de Groot
It is indeed a bug and fixed here: https://github.com/c3mb0/net/commit/bdd343fc172dd9790b5936c77a9d6f7b580c3591 Fixed with a $ go get -u golang.org/x/net On Thursday, August 9, 2018 at 8:06:49 PM UTC+2, Willem de Groot wrote: > > A http2 crawler with custom transport chokes on URIs with double s

Re: [go-nuts] Cross-compiled program for Raspberry Pi crashes

2018-08-12 Thread Skip Tavakkolian
Rpi1 model B requires setting GOARM=5 I believe. On Sun, Aug 12, 2018, 8:29 AM Stephan Mühlstrasser < stephan.muehlstras...@gmail.com> wrote: > Hi, > > I'm developing my first Go program that is supposed to upload files into a > Google Cloud Storage bucket from a Raspberry Pi 1. It uses the > htt

Re: [go-nuts] Re: Is there a way to clear a map similar to slice = slice[:0]?

2018-08-12 Thread Michael Jones
What does it mean to clear a map? Even if Go admitted that a map was a specific form of hash table with certain chaining/bucket choices, what would an empty one be that is different than a new one? I can think of answers to this but if you say what behavior you want to optimize by clearing and reus

[go-nuts] Cross-compiled program for Raspberry Pi crashes

2018-08-12 Thread Stephan Mühlstrasser
Hi, I'm developing my first Go program that is supposed to upload files into a Google Cloud Storage bucket from a Raspberry Pi 1. It uses the https://github.com/blackjack/webcam library to grab a picture from an USB camera. I can compile the program on the Raspberry Pi itself with Go 1.7.4 tha

[go-nuts] HTTP/2 Adventure in the Go World

2018-08-12 Thread Eyal
Hi, You are welcome to read a blog post I wrote about a short experience with HTTP/2 and Go. https://posener.github.io/http2/ Cheers, Eyal -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

[go-nuts] Re: Local shared libraries and forks without vendor and GOPATH

2018-08-12 Thread 'meta keule' via golang-nuts
Thanks, Paul! Must have missed it. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://grou

[go-nuts] Is there a way to clear a map similar to slice = slice[:0]?

2018-08-12 Thread Peter Edge
With slices, you can do slice = slice[:0] to remove the values from the slice, but keep the backing slice with the same capacity (although the elements aren't marked for GC I believe, if that's a concern). With maps, is there a similar pattern? I've tried: for key := range m { delete(m, key)

[go-nuts] CGO - http.post returns execption

2018-08-12 Thread nicolas_boiteux via golang-nuts
Hello, I need some assistance with a little code relative to http.post client that request a remote json. jsonData := map[string]string{"firstname": "Nic", "lastname": "Raboy"} jsonValue, _ := json.Marshal(jsonData) response, err = http.Post("https://httpbin.org/post";, "application

Re: [go-nuts] Local shared libraries and forks without vendor and GOPATH

2018-08-12 Thread Paul Jolly
Hi Benny, > if I understand correctly, the plan with versioned packages and modules is to > deprecate the vendor folder and GOPATH some time after Go 1.11. That is true of GOPATH; the case is less clear-cut with vendor. See also the discussion about vendor as part of: https://github.com/golang/