[go-nuts] Who are the Go maintainers?

2022-11-09 Thread Matt Hickford
https://go.dev/doc/contribute says "Only Go maintainers (also referred to as “approvers”) can cast a +2 vote." Who are the Go maintainers? Is this the same set of people as https://github.com/orgs/golang/people (seems to be mostly Googlers and ex-Googlers)? Or a subset? -- You received this mess

[go-nuts] Which one is the latest optimization: ASM/Pure Go implementations?

2022-11-09 Thread Holloway Kean Ho
Hi all, To clarify, which one is latest and right optimization development direction? Example case: (floor_asm.go <--> floor_amd64.s VS floor_noasm.go) 1) https://cs.opensource.google/go/go/+/refs/tags/go1.19.2:src/math/floor_asm.go;bpv=0;bpt=0 2) https://cs.opensource.google/go/go/+/ref

Re: [go-nuts] Go code owners: what are primary and secondary owners?

2022-11-09 Thread Ian Lance Taylor
On Wed, Nov 9, 2022 at 2:15 PM M Hickford wrote: > > Presumably all primaries and secondaries are Go maintainers? Probably? I haven't checked, though. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] Go code owners: what are primary and secondary owners?

2022-11-09 Thread Ian Lance Taylor
On Wed, Nov 9, 2022 at 2:11 PM M Hickford wrote: > > On Wed, 9 Nov 2022 at 19:39, Ian Lance Taylor wrote: > > > > On Wed, Nov 9, 2022 at 11:28 AM M Hickford wrote: > > > > > > https://dev.golang.org/owners list primary and secondary owners, but > > > doesn't explain what this means. What do pri

Re: [go-nuts] Go code owners: what are primary and secondary owners?

2022-11-09 Thread M Hickford
Presumably all primaries and secondaries are Go maintainers? -- 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. To view thi

Re: [go-nuts] Go code owners: what are primary and secondary owners?

2022-11-09 Thread M Hickford
On Wed, 9 Nov 2022 at 19:39, Ian Lance Taylor wrote: > > On Wed, Nov 9, 2022 at 11:28 AM M Hickford wrote: > > > > https://dev.golang.org/owners list primary and secondary owners, but > > doesn't explain what this means. What do primaries and secondaries do? > > It's pretty informal. For most p

Re: [go-nuts] Idea for a language addition for error handling: inject/eject

2022-11-09 Thread Gorka Guardiola
On Wed, Nov 9, 2022, 20:47 Ian Lance Taylor wrote: > On Wed, Nov 9, 2022 at 10:40 AM Gorka Guardiola wrote: > > Seems related to https://go.dev/issue/54361, although due to inject it > is not the same. > I hadn't seen that proposal. > It is similar in the sense that it is a more powerful retur

Re: [go-nuts] Issues with parsing `time.String()` in Go 1.19

2022-11-09 Thread Erez Rokah
Thanks for the response, I somehow thought that was added in Go 1.19. Sorry for the confusion and thanks again for the help On Wednesday, 9 November 2022 at 21:54:18 UTC+2 Ian Lance Taylor wrote: > On Wed, Nov 9, 2022 at 9:00 AM Erez Rokah wrote: > > > > The string format used is `"2006-01-02

Re: [go-nuts] Issues with parsing `time.String()` in Go 1.19

2022-11-09 Thread Ian Lance Taylor
On Wed, Nov 9, 2022 at 9:00 AM Erez Rokah wrote: > > The string format used is `"2006-01-02 15:04:05.9 -0700 MST"` which > is `time.String()` internal format Thanks. You originally asked whether this is a bug or not. I don't think this is a bug. It's true that it's not easy to use tim

Re: [go-nuts] Idea for a language addition for error handling: inject/eject

2022-11-09 Thread Ian Lance Taylor
On Wed, Nov 9, 2022 at 10:40 AM Gorka Guardiola wrote: > > I have the following idea [1] for decluttering error handling in go. It looks > similar to others already presented, but is is different in important ways: > > 1) It does not interfere with or use panic > 2) Is general enough that one can

Re: [go-nuts] Go code owners: what are primary and secondary owners?

2022-11-09 Thread Ian Lance Taylor
On Wed, Nov 9, 2022 at 11:28 AM M Hickford wrote: > > https://dev.golang.org/owners list primary and secondary owners, but doesn't > explain what this means. What do primaries and secondaries do? It's pretty informal. For most packages primary owners are people who take responsibility for the f

[go-nuts] Go code owners: what are primary and secondary owners?

2022-11-09 Thread M Hickford
https://dev.golang.org/owners list primary and secondary owners, but doesn't explain what this means. What do primaries and secondaries do? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails f

[go-nuts] Go tour translation workflow

2022-11-09 Thread Viktor Pakhuchyi
Hi there! I'm writing on behalf of Go community from Ukraine. We want to add Ukrainian translation to the Go tour. I've found that the already existing documentation doesn't cover all my questions. That's why I've decided to ask you here for some tips. What is clear: 1. Repository can be cloned

[go-nuts] Idea for a language addition for error handling: inject/eject

2022-11-09 Thread Gorka Guardiola
I have the following idea [1] for decluttering error handling in go. It looks similar to others already presented, but is is different in important ways: 1) It does not interfere with or use panic 2) Is general enough that one can wrap errors with other errors or check different kinds of errors. 3

[go-nuts] Creating c-archive that uses external symbols

2022-11-09 Thread Aviram Hassan
Hi, I wish to create a c-archive that contains only specific symbols, importing on runtime the needed symbols. I managed to create a `.o` file that I believe contains only my functions using `go tool compile -shared -dynlink main.go` but then when I do `go tool link -buildmode=c-archive -extld clan

Re: [go-nuts] Choosing ABI for a function

2022-11-09 Thread Aviram Hassan
Thank you. I found that the best way (or only?) is to have an assembly function reference a Go function, then the compiler creates a wrapper that can be used. On Tue, Nov 8, 2022 at 7:14 PM Ian Lance Taylor wrote: > On Tue, Nov 8, 2022 at 7:55 AM Aviram Hassan > wrote: > > > > I see that some r

Re: [go-nuts] Is it possible to switch on type T in a generic function?

2022-11-09 Thread 'Mark' via golang-nuts
Thank you! I've now switched to using any as you suggested & also use strings.Builder. On Wednesday, November 9, 2022 at 4:33:48 PM UTC dun...@harris3.org wrote: > > Interestingly, I couldn't put the asStr() code in the String() function > since doing so produced this error: > > > > invalid op

Re: [go-nuts] Issues with parsing `time.String()` in Go 1.19

2022-11-09 Thread Erez Rokah
The string format used is `"2006-01-02 15:04:05.9 -0700 MST"` which is `time.String()` internal format On Wednesday, 9 November 2022 at 18:48:09 UTC+2 Ian Lance Taylor wrote: > On Wed, Nov 9, 2022 at 8:33 AM Erez Rokah wrote: > > > > I'm not sure if this is a bug or not. The following t

Re: [go-nuts] Issues with parsing `time.String()` in Go 1.19

2022-11-09 Thread Ian Lance Taylor
On Wed, Nov 9, 2022 at 8:33 AM Erez Rokah wrote: > > I'm not sure if this is a bug or not. The following test will print both > error messages: > > ``` > func TestTimeStringParse(t *testing.T) { > for i := 0; i < 10; i++ { > timeString := time.Now().Add(time.Duration(rand.Int63())).Stri

Re: [go-nuts] Is it possible to switch on type T in a generic function?

2022-11-09 Thread Duncan Harris
> Interestingly, I couldn't put the asStr() code in the String() function since doing so produced this error: > > invalid operation: cannot use type assertion on type parameter value element (variable of type T constrained by comparable) You need to convert to "any": https://go.dev/play/p/1pMhs

[go-nuts] Issues with parsing `time.String()` in Go 1.19

2022-11-09 Thread Erez Rokah
Hello! I'm not sure if this is a bug or not. The following test will print both error messages: ``` func TestTimeStringParse(t *testing.T) { for i := 0; i < 10; i++ { timeString := time.Now().Add(time.Duration(rand.Int63())).String() _, err := time.Parse(defaultStringFormat, timeSt

Re: [go-nuts] Re: Go implementation of CLP

2022-11-09 Thread Bharghava Varun Ayada
I'm exploring CLP for a logging platform and I think either a cgo or native go library might be something that would help us. On Tuesday, 4 October 2022 at 22:03:34 UTC+5:30 david...@gmail.com wrote: > It would be awesome to help SeaweedFS, so I'm eager to hear more about > your ideas to try an