Re: [go-nuts] Re: Why this compilation error ?

2025-03-18 Thread 'Davis Goodin' via golang-nuts
Inline cost is part of how Go decides what funcs to inline. There are some interesting patterns (maybe even idioms?) in Go that specifically try to inline a lot of code to prevent values from escaping to the heap when they don't have to. Concrete examples from -gcflags='-m -m': ./main.go:7:6: c

Re: [go-nuts] Re: Why this compilation error ?

2025-03-18 Thread 'Davis Goodin' via golang-nuts
See the section wrapped in """ in Jan's reply. Quoted differently: > A parsing ambiguity arises when a composite literal using the TypeName form of the LiteralType appears as an operand between the keyword and the opening brace of the block of an "if", "for", or "switch" statement, and the comp

Re: [go-nuts] Is there a way to browse the stdlib packages in pkg.go.dev?

2025-02-05 Thread 'Davis Goodin' via golang-nuts
Recently I noticed that https://pkg.go.dev takes you to the main/search page, but https://go.dev/pkg takes you right to https://pkg.go.dev/std. It seems like some quirk of the go.dev/pkg redirect, but maybe an interesting shortcut if you like typing in a short URL. On Monday, February 3, 2025 at

Re: [go-nuts] Backward compatibility of "go mod vendor"?

2024-09-03 Thread 'Davis Goodin' via golang-nuts
ue, Sep 3, 2024 at 10:59 AM 'Davis Goodin' via golang-nuts > wrote: > > > > I noticed today that taking the Go 1.22.6 source tree and running > "go1.22.6 mod vendor" and "go1.23.0 mod vendor" give me different results. > (Vendoring using go1.23

[go-nuts] Backward compatibility of "go mod vendor"?

2024-09-03 Thread 'Davis Goodin' via golang-nuts
I noticed today that taking the Go 1.22.6 source tree and running "go1.22.6 mod vendor" and "go1.23.0 mod vendor" give me different results. (Vendoring using go1.23.0 adds golang.org/x/crypto/sha3.) I've been working under the assumption that backward compatibility promises would extend to "go

Re: [go-nuts] Re: Go 1.21 / FIPS

2024-07-08 Thread 'Davis Goodin' via golang-nuts
Yes, these questions are specific to the Microsoft fork of Go (and to varying degrees, could apply to other FIPS-focused forks of Go). To repeat from earlier, in case it helps anyone seeing this thread later: > The GOEXPERIMENT=systemcrypto is a feature of the Microsoft fork of Go, not official