[go-nuts] A message from the CoC committee

2021-03-23 Thread 'can...@google.com' via golang-nuts
Over the last few days, multiple reports were received at cond...@golang.org regarding public conduct on golang-nuts, as well as conduct in private channels. After review, permanent bans were given to multiple individuals, with no possibility for appeal. Further corrective actions like tempor

Re: [go-nuts] A message from the CoC committee

2021-03-23 Thread 'Axel Wagner' via golang-nuts
On Tue, Mar 23, 2021 at 3:02 PM 'can...@google.com' via golang-nuts < golang-nuts@googlegroups.com> wrote: > The last two factors also necessitate a public response, to assure those > who witness unacceptable behavior, particularly in public places, that > appropriate and fair corrective action wa

[go-nuts] getting-started page instructions unclear

2021-03-23 Thread fgergo
On page https://golang.org/doc/tutorial/getting-started#call : step 1.3. : visit https://pkg.go.dev/rsc.io/quote#pkg-index step 1.4. instructs "At the top of this page, note that package quote is included in the rsc.io/quote module." How can I "note that package quote is included in the rsc.io/quo

[go-nuts] meaning of SSA operation

2021-03-23 Thread Ge
Hi, Recently I encountered a problem which seems to be related to SSA optimization and feels hard to figure out what some SSA operation means. Code: case1: func main() { var x int go func() { for { x++ //no matter "-N" compile flags is specified or not,

Re: [go-nuts] Trying to port Go to HPE NonStop x86 - Need some guidance

2021-03-23 Thread Shiva
Trying to pick this up where it was left, we have the list of files *_linux.go, *_linux.s but not all of them have the build statements, do we create new nsx files only for those which have build statements in them or for all of those files? On Sunday, June 7, 2020 at 2:38:09 AM UTC+1 Ian Lanc

Re: [go-nuts] Trying to port Go to HPE NonStop x86 - Need some guidance

2021-03-23 Thread Ian Lance Taylor
On Tue, Mar 23, 2021 at 9:41 AM Shiva wrote: > > Trying to pick this up where it was left, we have the list of files > *_linux.go, *_linux.s but not all of them have the build statements, do we > create new nsx files only for those which have build statements in them or > for all of those files

[go-nuts] Type parameters syntax... Can it be improved?

2021-03-23 Thread atd...@gmail.com
Quick question... Why do we need brackets to define a parametered function, struct etc...? Why not change Go kinds to accept either a type (would produce a regular, function, structs, etc) or a new type parameter object that would implement the constraints (would produce a generic function defi

Re: [go-nuts] Type parameters syntax... Can it be improved?

2021-03-23 Thread Ian Lance Taylor
On Tue, Mar 23, 2021 at 2:17 PM atd...@gmail.com wrote: > > Quick question... > > Why do we need brackets to define a parametered function, struct etc...? > > Why not change Go kinds to accept either a type (would produce a regular, > function, structs, etc) or a new type parameter object that wo

Re: [go-nuts] Type parameters syntax... Can it be improved?

2021-03-23 Thread atd...@gmail.com
Since, we also know the type of v, It would be infered from it. There is no variance, no dependent type... Meaning that the type of a Go variable does not change. So the constraints do not change midway through the program, including type names/definitions. It does however require to have some

Re: [go-nuts] Type parameters syntax... Can it be improved?

2021-03-23 Thread Ian Lance Taylor
On Tue, Mar 23, 2021 at 3:19 PM atd...@gmail.com wrote: > > Since, we also know the type of v, It would be infered from it. > > There is no variance, no dependent type... Meaning that the type of a Go > variable does not change. > So the constraints do not change midway through the program, inclu

Re: [go-nuts] Code Review Checklist: Go Concurrency

2021-03-23 Thread Ian Lance Taylor
On Sun, Mar 21, 2021 at 1:22 PM Roman Leventov wrote: > > I've created a list of possible concurrency-related bugs and gotchas in Go > code: https://github.com/code-review-checklists/go-concurrency. > > The idea of this list is to accompany > https://github.com/golang/go/wiki/CodeReviewComments

[go-nuts] Question on module versioning expected behavior

2021-03-23 Thread Marcin Romaszewicz
I recently hit a little issue with go.mod versioning that's confusing me. My go.mod is straightforward: https://github.com/deepmap/oapi-codegen/blob/master/go.mod One of the packages in there is kin-openapi at v0.47.0: github.com/getkin/kin-openapi v0.47.0 We briefly had some code in the repo whi

Re: [go-nuts] Type parameters syntax... Can it be improved?

2021-03-23 Thread atd...@gmail.com
Mmmh, :/ depends. What is the type of IntMin for the compiler in your example? The same as Min? If not, it is basically defining a regular function out of a generic function definition. So it is merely about constraining the type parameter further to be of specific type int. A simple closure w

[go-nuts] Re: meaning of SSA operation

2021-03-23 Thread 'Keith Randall' via golang-nuts
On Tuesday, March 23, 2021 at 9:11:13 AM UTC-7 Ge wrote: > > Hi, > Recently I encountered a problem which seems to be related to SSA > optimization > and feels hard to figure out what some SSA operation means. > > Code: > case1: > func main() { > var x int > go func() { > for {

[go-nuts] Re: A message from the CoC committee

2021-03-23 Thread Anthony Martin
can...@google.com once said: > After review, permanent bans were given to multiple individuals, with no > possibility for appeal. Further corrective actions like temporary bans and > final warnings are being deliberated, pending further investigation. Where is the moderation log? Anthony --

Re: [go-nuts] Type parameters syntax... Can it be improved?

2021-03-23 Thread atd...@gmail.com
Nevermind, I forgot about function return values. Difficult to infer them without specifying them, isn'it? Sorry... should have thought better. On Wednesday, March 24, 2021 at 12:23:12 AM UTC+1 atd...@gmail.com wrote: > Mmmh, :/ depends. What is the type of IntMin for the compiler in your > exa

[go-nuts] sigTERM not intercepted

2021-03-23 Thread Madscientist Microneil
Hi, I've got a REST endpoint coded in go and it communicates with various child processes to get it's work done. I've used // Set up to handle signals so we can stop when asked done := make(chan os.Signal, 3) signal.Notify(done, os.Interrupt, syscall.SIGINT, syscall.SIGTERM) and <-done to

Re: [go-nuts] sigTERM not intercepted

2021-03-23 Thread Kurtis Rader
It sounds as if you might be running your "REST endpoint" program from an interactive shell (i.e., a terminal) and sending SIGTERM by pressing something like Ctrl-C. Interactive job control, which includes how signals generated by a "terminal" are handled, is a complex topic. So we need to know how