golang/go
View on GitHub ↗ ★ 139,735 Go
The Go programming language
1,947 mentions on Hacker News by 1,181 people: 291 stories, 1,656 comments · first 2014-12-08 · latest 2026-10-22
20082026
-
Yeah. Effective Go feels a little dated now. My most frequent link is to Code Review Comments: https://github.com/golang/go/wiki/CodeReviewComments
comment by jrockway · 2023-09-27 · in Deconstructing Go Type Parameters -
…of more than 2-3 years. [1]: https://developer.apple.com/library/archive/qa/qa1118/_index... [2]: https://github.com/golang/go/issues/16606 [3]: https://support.apple.com/guide/security/trust-caches-sec7d3...
comment by lgg · 2023-09-26 · in macOS Containers v0.0.1 -
▲ 2
Go Proposal: runtime/trace flight recordingstory by jamesog · 2023-09-24 · 0 comments
-
…the slice pointer. I had to look it up from a blog post, because the source for append() is gnarly https://github.com/golang/go/blob/go1.16.7/src/cmd/compile/i...
comment by xmcqdpt2 · 2023-09-21 · in Fixing for loops in Go 1.22 -
Just don't: https://github.com/golang/go/issues/28146
comment by domust · 2023-09-20 · in Official guide for organizing Go projects and modules -
…#(programs broken) is accepted, we might as well remove the compatibility promise page [2]. --- [1] https://github.com/golang/go/issues/60078 [2] https://go.dev/doc/go1compat
comment by beltsazar · 2023-09-20 · in Fixing for loops in Go 1.22 -
…open source release of the language, at least according to some of the issue threads such as https://github.com/golang/go/issues/19412 If they're laughably simple, then please contribute a proposal for how to add them to the language.…
comment by xyzzy_plugh · 2023-09-20 · in Fixing for loops in Go 1.22 -
…nil types that implements the interface; which must be done with `reflect.ValueOf(x).IsNil()`. https://github.com/golang/go/issues/30865
comment by gwd · 2023-09-19 · in Fixing for loops in Go 1.22 -
…bug). Google saw no statistically significant change in their benchmarks or internal applications. https://github.com/golang/go/wiki/LoopvarExperiment#will-the...
comment by jsmith45 · 2023-09-19 · in Fixing for loops in Go 1.22 -
jaredpar on the C# team offered the very first comment on the Github issue for this proposal: https://github.com/golang/go/discussions/56010 I think it played a large part in helping get past the default-deny that any language change…
comment by jerf · 2023-09-19 · in Fixing for loops in Go 1.22 -
…a technical reason that go would be unable to load and invoke a .dll even if one had to name it .so https://github.com/golang/go/blob/go1.21.1/src/plugin/plugin...
comment by mdaniel · 2023-09-17 · in Java 21 makes me like Java again -
…Go team to add fmt.Errorf in the very next release. This is simply not true. Error values proposal: https://github.com/golang/go/issues/29934 Jan 25, 2019, launch decision on May 6, 2019 Try proposal: https://github.com/golang/go/issues/324…
comment by mseepgood · 2023-09-17 · in In search of better error handling for Go -
…true for local variables with limited scope. Prefer c to lineCount. Prefer i to sliceIndex. https://github.com/golang/go/wiki/CodeReviewComments#variabl...
comment by speedgoose · 2023-09-17 · in Java 21 makes me like Java again -
…to be some work getting cosmopolitan libc support in Go, but it is not ready like it is for c/c++: https://github.com/golang/go/issues/51900 Edit: There can be some problems with using static, if you are using your system package manager…
comment by mathiasgredal · 2023-09-17 · in Java 21 makes me like Java again -
Mullvad VPN breaks DNS over IPv6 https://github.com/golang/go/issues/61060
comment by anacrolix · 2023-09-14 · in Bug in macOS 14 Sonoma prevents our app from working -
…Go WASM, it’s experimental and does not come with the same compatibility promise as Go itself: https://github.com/golang/go/wiki/WebAssembly
comment by cplli · 2023-09-14 · in WASI Support in Go -
I'm also waiting for that :) See https://github.com/golang/go/issues/42372
comment by viccuad · 2023-09-13 · in WASI Support in Go -
…the namespace immediately instead of waiting for all open handles to the file to be closed. [1] https://github.com/golang/go/issues/32088#issuecomment-50285...
comment by mananaysiempre · 2023-09-13 · in Any sufficiently advanced uninstaller is indistinguishable from malware -
…- also reminds me that languages like go[0] and java[1] did disagree to even attempt using it [0]: https://github.com/golang/go/issues/32088#issuecomment-53759... [1]: https://bugs.openjdk.org/browse/JDK-6607535 So to me it's just not…
comment by xxs · 2023-09-13 · in Any sufficiently advanced uninstaller is indistinguishable from malware -
…yield can run forever, stalling the system. You may be referring to this particular issue in Go https://github.com/golang/go/issues/10958 which I think was somewhat addresses a couple releases back.
comment by bboozzoo · 2023-09-08 · in Maybe Rust isn’t a good tool for massively concurrent, userspace software -
▲ 1
Proposal to add an intern package to Gostory by todsacerdoti · 2023-09-07 · 0 comments
-
…and load everything, you can do so and it's devoid of javascript so you can ctrl-f all day. https://github.com/golang/go/issues/21498/partials/load_more You get pagination in both API's, go write some code.
comment by bastardoperator · 2023-09-01 · in Gothub: Alternative front-end for GitHub written with Go -
the real problem with GitHub is the awful issue pages. For example look at this: https://github.com/golang/go/issues/21498 they put this randomly in the middle of the page: > 456 hidden items > Load more you click it, then you get this: >…
comment by 38 · 2023-09-01 · in Gothub: Alternative front-end for GitHub written with Go -
▲ 1
Doc: Manual Pages for Go Toolsstory by Halvedat · 2023-08-28 · 0 comments
-
▲ 3
Go 1.21 broke the XML encoderstory by dcu · 2023-08-26 · 0 comments
-
…if block, and a quick trip to a disassembler showed it using binary search. This commit: https://github.com/golang/go/commit/1ba96d8c0909eca59e28c048... added the jump table and has some nice analysis on where it makes sense to do binary…
comment by suresk · 2023-08-24 · in Jacobin: A more than minimal JVM written in Go -
…where implementation details on CPUs change. Compilers can respond and target your exact CPU. [1]: https://github.com/golang/go/issues/14630 (notice how one comments the same patch that gives 1.6x boost for OP gives them a 5x degradation)
comment by magicalhippo · 2023-08-21 · in Transcoding Latin 1 strings to UTF-8 strings at 12 GB/s using AVX-512 -
…that Golang doesn't automatically fetch dependencies when you just do `go run random_script.go`: https://github.com/golang/go/issues/36513 I am not fixating on Golang in particular. But IMO next_bash_or_something should be due Soon™. It's…
comment by pdimitar · 2023-08-20 · in Scripting with Go (2022) -
…Pike, it's 2023. Type inferred composite literals may be an OK compromise.. if we ever see them: https://github.com/golang/go/issues/12854 - Unused import = will not compile. Unused variable = Will not compile. Give us the ability to turn…
comment by geenat · 2023-08-20 · in Scripting with Go (2022) -
…though is that he's not that important to have significant influence on the evolution of Go. [0] https://github.com/golang/go/issues/19412
comment by bPspGiJT8Y · 2023-08-20 · in Rob Pike explains why every programmer should know about the array languages -
That's true. Besides Blazor, the WebAssembly Go port[1] does this as well. [1] https://github.com/golang/go/wiki/WebAssembly
comment by fulafel · 2023-08-17 · in A world to win: WebAssembly for the rest of us -
There's a proposal, for what it's worth: https://github.com/golang/go/issues/57644 Although I'm curious, what is your use case that cannot be fulfilled by interfaces, but can with sum types?
comment by bheadmaster · 2023-08-16 · in I built a garbage collector for a language that doesn’t need one -
…there are some issues with the implementation details, but I'm hoping they get ironed out. [0] https://github.com/golang/go/issues/57644
comment by bheadmaster · 2023-08-15 · in Backward Compatibility, Go 1.21, and Go 2 -
You can read the proposal here: https://github.com/golang/go/issues/61405 . It is linked in the first paragraph of TFA. Yes, I know you can build a 100x-too-slow version of this on top of channels, but that's not the proposed extension to…
comment by anonymoushn · 2023-08-13 · in Iterators in Go: A proposed extension -
…same workspace, `go mod vendor` will copy these workspace modules to the vendor folder as well. [1] https://github.com/golang/go/issues/50750
comment by luuio · 2023-08-13 · in Rust vs. Go in 2023 -
…same workspace, `go mod vendor` will copy these workspace modules to the vendor folder as well. [1] https://github.com/golang/go/issues/50750
comment by luuio · 2023-08-13 · in Rust vs. Go in 2023 -
…iterators as a value, and degrades them almost completely to just a `range` helper. --- edit from https://github.com/golang/go/issues/61405 > To convert one of these functions to a "next-based" or "pull-based" iterator, we plan to add a…
comment by Groxx · 2023-08-12 · in Iterators in Go: A proposed extension -
This was already proposed and rejected. See the prior discussions on GitHub. https://github.com/golang/go/discussions/54245
comment by earthboundkid · 2023-08-12 · in Iterators in Go: A proposed extension -
I would rather have type inferred literals: https://github.com/golang/go/issues/12854
comment by eNV25 · 2023-08-12 · in Iterators in Go: A proposed extension -
…2017. https://reviews.llvm.org/D32277 Also, Golang is gradually reducing the number of slow LEAs. https://github.com/golang/go/issues/21735 > grep '\blea\b' | wc -l This maybe isn't sophisticated enough? The other links seem to explain two…
comment by orra · 2023-08-12 · in What is gained and lost with 63-bit integers? (2014) -
…been a far simpler language had it originally shipped with generics, iterators, and sum types. [1] https://github.com/golang/go/discussions/56413
comment by Mawr · 2023-08-12 · in Iterators in Go: A proposed extension -
…to adding a standard interface that `range` accepts. Some discussions have happened before, eg https://github.com/golang/go/discussions/54245 A standard interface feels a cleaner than these nested callback functions.
comment by kevmo314 · 2023-08-12 · in Iterators in Go: A proposed extension -
▲ 1
Go proposal for ITER: new package for iteratorsstory by lycopodiopsida · 2023-08-10 · 0 comments
-
…attacks are generally considered out of scope, but it's still nice for the library to be safe. (See https://github.com/golang/go/issues/53849 )
comment by Zamicol · 2023-08-09 · in Go 1.21 Released -
For those wondering: https://github.com/golang/go/wiki/LoopvarExperiment
comment by kristianp · 2023-08-08 · in Go 1.21 Released -
…addition in go 1.22: encoding/yaml FYI, encoding/yaml was recently requested, and was declined in https://github.com/golang/go/issues/61023#issuecomment-16106... , for reasons I largely agree with. (I work for Google but not on Go)
comment by liggitt · 2023-08-08 · in Go 1.21 Released -
…counter++ print(counter) }() } } It will print 111 when the change is made. More surprising cases: https://github.com/golang/go/issues/60078#issuecomment-15443...
comment by tapirl · 2023-08-08 · in Go 1.21 Released -
Re: https://github.com/golang/go/wiki/LoopvarExperiment I've mainly used Java which doesn't suffer from this particular problem. But I've often heard Java criticized on the grounds it captures values not variables, and that most other…
comment by adrianmsmith · 2023-08-08 · in Go 1.21 Released -
…is: // Invariant: x[i-1] < target, x[j] >= target. In the golang implementation of binary search: https://github.com/golang/go/blob/master/src/slices/sort.go#...
comment by dunham · 2023-08-07 · in Fantastic Learning Resources -
…cannot be used from regular Go code. [1]: https://github.com/rust-lang/rust/issues/62314 [2]: https://github.com/golang/go/issues/61751
comment by cyphar · 2023-08-07 · in Barco: Linux Containers from Scratch in C