Hacker GitHub

← All repos

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

Mentions per year 1,947 mentions · busiest year 2023 (221)
20082026
  1. 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
  2. …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
  3. ▲ 2
    Go Proposal: runtime/trace flight recording
    story by jamesog · 2023-09-24 · 0 comments
  4. …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
  5. Just don't: https://github.com/golang/go/issues/28146
  6. …#(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
  7. …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
  8. …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
  9. …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
  10. 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
  11. …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
  12. …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
  13. …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
  14. …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
  15. Mullvad VPN breaks DNS over IPv6 https://github.com/golang/go/issues/61060
  16. …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
  17. 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
  18. …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...
  19. …- 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…
  20. …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.
  21. ▲ 1
    Proposal to add an intern package to Go
    story by todsacerdoti · 2023-09-07 · 0 comments
  22. …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.
  23. 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: >…
  24. ▲ 1
    Doc: Manual Pages for Go Tools
    story by Halvedat · 2023-08-28 · 0 comments
  25. ▲ 3
    Go 1.21 broke the XML encoder
    story by dcu · 2023-08-26 · 0 comments
  26. …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…
  27. …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)
  28. …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)
  29. …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)
  30. …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
  31. That's true. Besides Blazor, the WebAssembly Go port[1] does this as well. [1] https://github.com/golang/go/wiki/WebAssembly
  32. 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?
  33. …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
  34. 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
  35. …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
  36. …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
  37. …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
  38. 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
  39. 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
  40. …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…
  41. …been a far simpler language had it originally shipped with generics, iterators, and sum types. [1] https://github.com/golang/go/discussions/56413
  42. …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
  43. ▲ 1
    Go proposal for ITER: new package for iterators
    story by lycopodiopsida · 2023-08-10 · 0 comments
  44. …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
  45. For those wondering: https://github.com/golang/go/wiki/LoopvarExperiment
    comment by kristianp · 2023-08-08 · in Go 1.21 Released
  46. …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
  47. …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
  48. 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
  49. …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
  50. …cannot be used from regular Go code. [1]: https://github.com/rust-lang/rust/issues/62314 [2]: https://github.com/golang/go/issues/61751