Re: [go-nuts] why the go install package download from official website of go1.21 is less than go1.20?

2023-08-15 Thread Kurtis Rader
All of the packages are significantly smaller -- not just those for macOS. So this isn't due to anything specific to the macOS package(s). Looking at the release notes for Go 1.21.0 I don't see an obvious explanation for the reduction. Downloading and extracting those two packages shows the

[go-nuts] why the go install package download from official website of go1.21 is less than go1.20?

2023-08-15 Thread xie cui
go1.20.7.darwin-arm64.tar.gz ArchivemacOSARM6492MB go1.21.0.darwin-arm64.tar.gz ArchivemacOSARM6462MB this size reduce about 30%. why the size reduce a lot? -- You received this message because

Re: [go-nuts] cgo pam module signal handling

2023-08-15 Thread Ian Lance Taylor
On Mon, Aug 14, 2023 at 4:52 PM Chandrasekhar R wrote: > > The scenario is: > 1) sudo starts and sets up a signal handler for SIGCHLD > 2) pam modules gets loaded > 3) Go gets initialized and sets the SA_ONSTACK flag specifically by calling > rt_sigaction with a pointer to the existing signal

Re: [go-nuts] I need confirmation about whether I'm in front of a linter false positive.

2023-08-15 Thread Amnon
I would stop using that particular linter. And keep calling your error value err. It is idiomatic. On Monday, 14 August 2023 at 22:36:11 UTC+1 David Finkel wrote: > On Mon, Aug 14, 2023 at 4:54 PM Pablo Caballero wrote: > >> I started working on a Golang project (from my work). The following

Re: [go-nuts] Generic zero value for compiler optimization

2023-08-15 Thread 'Keith Randall' via golang-nuts
It would be nice if the compiler could figure this out (both for *new(T) and zeroT). When 61372 is implemented it will certainly be easier to just detect the zero builtin. Perhaps we should just wait for that. On Monday, August 14, 2023 at 5:31:16 PM UTC-7 Diego Augusto Molina wrote: > Thank

[go-nuts] Re: What does `shallow clone` mean?

2023-08-15 Thread Shinya Sakae
Hi Brian. Thanks for reaching out. I understand. On Monday, August 14, 2023 at 4:11:56 PM UTC+9 Brian Candler wrote: > On Friday, 11 August 2023 at 17:56:01 UTC+1 Shinya Sakae wrote: > > I often hear the term `shallow copy', but I don't know what `shallow > clone` means. > > > Don't worry: they

[go-nuts] Go Toolchain Management from 1.21.0 onwards

2023-08-15 Thread Stephen Illingworth
With regards to the new Toolchain Management feature introduced in 1.21.0 Currently, my toolchain management is: download the source; compile; set paths to point to the new version. I like this and it works for me. Am I correct in thinking that the environment variable, GOTOOLCHAIN=local, will