Re: [go-nuts] Makefiles for Go Programs

2021-08-22 Thread Kurtis Rader
On Sun, Aug 22, 2021 at 8:11 PM jlfo...@berkeley.edu wrote: > I've noticed that few, if any, Go programs use Makefiles. Is that because > the overhead of using make is greater than the overhead of just always > compiling and linking everything? > One piece of evidence for this is that the Go comp

[go-nuts] Makefiles for Go Programs

2021-08-22 Thread jlfo...@berkeley.edu
I've noticed that few, if any, Go programs use Makefiles. Is that because the overhead of using make is greater than the overhead of just always compiling and linking everything? One piece of evidence for this is that the Go compiler leaves no artifacts, like object files, so as is make wouldn'

Re: [go-nuts] Re: Is there a preview Golang version I can download to try out generics ?

2021-08-22 Thread Rob Pike
> > > (But in the normal case you shouldn't have to set GOOS/GOARCH > yourself, the build process should pick the right ones.) Although this sounds like good advice, my experience suggests that one be explicit. The Apple on-the-fly handling of binary translation means both that you must bootstrap

Re: [go-nuts] Re: Is there a preview Golang version I can download to try out generics ?

2021-08-22 Thread Ian Lance Taylor
On Sun, Aug 22, 2021 at 2:59 PM Serge Hulne wrote: > > Do you know which values of GOOS / GOARCH I should use for a Mac with an M1 > ("apple silicon") chip, is it darwin / amd64 ? darwin/arm64 (But in the normal case you shouldn't have to set GOOS/GOARCH yourself, the build process should pick

Re: [go-nuts] Re: Is there a preview Golang version I can download to try out generics ?

2021-08-22 Thread Ian Lance Taylor
On Sun, Aug 22, 2021 at 12:27 PM Lennart Espe wrote: > > You can run Go 1.17 and use a special compile-time flag. Just use `go build > -gcflags=-G=3` and you're good to go. > > gotip should have generics enabled by default as well. Actually please do not try to use the -G=3 support in the Go 1.1

[go-nuts] Re: Is there a preview Golang version I can download to try out generics ?

2021-08-22 Thread Lennart Espe
You can run Go 1.17 and use a special compile-time flag. Just use `go build -gcflags=-G=3` and you're good to go. gotip should have generics enabled by default as well. On Sunday, 22 August 2021 at 19:49:48 UTC+2 Serge Hulne wrote: > Is there a preview

Re: [go-nuts] Is there a preview Golang version I can download to try out generics ?

2021-08-22 Thread Jan Mercl
On Sun, Aug 22, 2021 at 7:50 PM Serge Hulne wrote: > Is there a preview Golang version I can download to try out generics ? Use this doc: https://golang.org/doc/install/source And follow this optional step: https://golang.org/doc/install/source#head Not tested. -- You received this message b

[go-nuts] Is there a preview Golang version I can download to try out generics ?

2021-08-22 Thread Serge Hulne
Is there a preview Golang version I can download to try out generics ? I have written a library, which I believe would benefit from generics. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving ema