Re: [go-nuts] sigaction implementation on darwin

2021-11-08 Thread Ian Lance Taylor
On Mon, Nov 8, 2021 at 1:20 AM sydnash wrote: > > Where is the sigaction implementation on macos with purego?I only found the > cgo implementation in runtime/sys_darwin.go. The implementation in runtime/sys_darwin.go is actually the one that is used when not using cgo (it is also used when usin

Re: [go-nuts] net.Buffers escapes to heap on WriteTo?

2021-11-08 Thread Ian Lance Taylor
On Mon, Nov 8, 2021 at 9:59 AM Shivaram Lingamneni wrote: > > I'm sending strings delimited by CRLF over a socket. As an exercise, I'm > trying to do it while minimizing the total number of allocations. > > I wrote a demo with two implementations, CopyWithTerminatingNewlines1 and > CopyWithTermi

[go-nuts] Re: Go http/2 implementation is x5 less per performant than http/1.1

2021-11-08 Thread Andrew Rodland
I also maintain an app that moves several Gbit/s of data, and have noticed that it bottlenecks while using http2, but handles much more throughput per instance, with lower tail latency, when running under GODEBUG=http2client=0. Possibly relevant is that it makes a large number of requests to a

[go-nuts] Re: Correct usage of Google Api Client

2021-11-08 Thread Mikhail Ladonkin
Thanks a lot! Have a good day! понедельник, 8 ноября 2021 г. в 21:36:04 UTC+3, seank...@gmail.com: > svc, err := indexing.NewService() > res, err := svc.UrlNotifications.Publish(&indexing.UrlNotification{ /* > things in here */ }).Do() > > On Monday, November 8, 2021 at 6:59:31 PM UTC+1 ladonki

[go-nuts] Re: Correct usage of Google Api Client

2021-11-08 Thread Sean Liao
svc, err := indexing.NewService() res, err := svc.UrlNotifications.Publish(&indexing.UrlNotification{ /* things in here */ }).Do() On Monday, November 8, 2021 at 6:59:31 PM UTC+1 ladonkin...@gmail.com wrote: > Hi, > > I'm new to Golang so sorry if the question seems stupid. > > I'm trying to inf

[go-nuts] net.Buffers escapes to heap on WriteTo?

2021-11-08 Thread Shivaram Lingamneni
I'm sending strings delimited by CRLF over a socket. As an exercise, I'm trying to do it while minimizing the total number of allocations. I wrote a demo with two implementations, CopyWithTerminatingNewlines1 and CopyWithTerminatingNewlines2, both of which copy lines from a `chan []byte` to an

[go-nuts] Correct usage of Google Api Client

2021-11-08 Thread Mikhail Ladonkin
Hi, I'm new to Golang so sorry if the question seems stupid. I'm trying to inform google about a new job on my website using the following documentation - https://developers.google.com/search/apis/indexing-api/v3/prereqs At the end of the page they provide the instructions of how to do it usin

[go-nuts] Go http/2 implementation is x5 less per performant than http/1.1

2021-11-08 Thread Kirth Gersen
http/2 implementation seems ~5x slower in bytes per seconds (when transfer is cpu capped). POC: https://github.com/nspeed-app/http2issue I submitted an issue about this 3 months ago in the Go Github ( https://github.com/golang/go/issues/47840 ) but first commenter misunderstood it and it got b

Re: [go-nuts] Limits of type parameter inference in function calls

2021-11-08 Thread roger peppe
See https://github.com/golang/go/issues/41176. On Sun, 7 Nov 2021, 12:47 Florian Weimer, wrote: > * Axel Wagner: > > > One way to fix this is to change the signatures to > > > > func Contains[I Iterator[T], T comparable](c I, value T) bool > > func Contains2[I Iterator[T], T comparable](value T,

Re: [go-nuts] Various questions about posts from The Go Blog

2021-11-08 Thread Leam Hall
I agree with Kamil. Go is young and growing. Committing to keeping at least the "official" blogs updated will help us on-board new gophers and get them productive quickly. I appreciate the effort the Go team puts into the blogs and documents. How can we make it easier and better? Leam On 11/

Re: [go-nuts] Various questions about posts from The Go Blog

2021-11-08 Thread Kamil Ziemian
"Blog posts should really be viewed as a snapshot that is valid when they're published (that's why they contain a date)" I agree, but since page that you are referring contains numbers of links to Go Blog posts with description "The official blog of the Go project , featur

Re: [go-nuts] Various questions about posts from The Go Blog

2021-11-08 Thread Sean Liao
Blog posts should really be viewed as a snapshot that is valid when they're published (that's why they contain a date) The guides under https://golang.org/doc/#getting-started however should be kept up to date with the latest releases On Monday, November 8, 2021 at 11:24:48 AM UTC+1 kziem...@gma

Re: [go-nuts] Various questions about posts from The Go Blog

2021-11-08 Thread Kamil Ziemian
"Technically that behaviour is still available via GO111MODULE=auto. Go 1.16 changed the default from "auto" to "on"." Thank you for that information. It is surprisingly hard to me to learn basic of Go and Go tools, when things don't works as described. I found few another places where "Using Go

Re: [go-nuts] Re: Amateur's questions about "Go lang spec"

2021-11-08 Thread Kamil Ziemian
Thank you Jan Mercl, now I start to understand this rule. Best Kamil niedziela, 7 listopada 2021 o 19:34:41 UTC+1 Jan Mercl napisał(a): > On Sun, Nov 7, 2021 at 7:23 PM Kamil Ziemian wrote: > > > Can anyone give me explicit example when semicolon is omitted in > accordance to the second rule a

[go-nuts] sigaction implementation on darwin

2021-11-08 Thread sydnash
Where is the sigaction implementation on macos with purego?I only found the cgo implementation in runtime/sys_darwin.go. -- 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 a