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. …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
  2. …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
  3. …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
  4. 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
  5. …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
  6. …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
  7. …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
  8. …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
  9. Mullvad VPN breaks DNS over IPv6 https://github.com/golang/go/issues/61060
  10. …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
  11. 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
  12. …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...
  13. …- 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…
  14. …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.
  15. …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.
  16. 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: >…
  17. …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…
  18. …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)
  19. …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)
  20. …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)
  21. …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
  22. That's true. Besides Blazor, the WebAssembly Go port[1] does this as well. [1] https://github.com/golang/go/wiki/WebAssembly
  23. 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?
  24. …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
  25. 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
  26. …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
  27. …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
  28. …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
  29. 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
  30. 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
  31. …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…
  32. …been a far simpler language had it originally shipped with generics, iterators, and sum types. [1] https://github.com/golang/go/discussions/56413
  33. …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
  34. …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
  35. For those wondering: https://github.com/golang/go/wiki/LoopvarExperiment
    comment by kristianp · 2023-08-08 · in Go 1.21 Released
  36. …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
  37. …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
  38. 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
  39. …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
  40. …cannot be used from regular Go code. [1]: https://github.com/rust-lang/rust/issues/62314 [2]: https://github.com/golang/go/issues/61751
  41. Go tried the same, and chose to let the user opt-in. https://github.com/golang/go/discussions/58409 The privacy design for Go was actually sound. https://research.swtch.com/telemetry-design
  42. …nobody ever actually ran the upstream version and or (2) downstream software is papering it over: https://github.com/golang/go/issues/21083
    comment by stefan_ · 2023-07-30 · in Musl 1.2.4 adds TCP DNS fallback
  43. …on Windows, not about what valid file names applications may encounter. Here's a counter-example: https://github.com/golang/go/issues/32334
    comment by skitter · 2023-07-25 · in Unicode is harder than you think
  44. …answers, but the runtime source has some pointers that would likely get you the answer you seek: https://github.com/golang/go/blob/master/src/runtime/HACKING... It sounds like blocking calls switch to a system stack and return the Go stack…
    comment by sharkbot · 2023-07-25 · in Threads and Goroutines
  45. This was referenced, which I thought was interesting: https://github.com/golang/go/issues/13492 golang cannot be compiled as a C static library with musl.
    comment by djoldman · 2023-07-21 · in How Turborepo is porting from Go to Rust
  46. …true. this is good code: https://github.com/torvalds/linux/blob/master/fs/file.c this is good code: https://github.com/golang/go/blob/master/src/strconv/atoc.go its formatted, commented, direct. the fact that you struggle with writing time…
  47. …a lot to say the least, to become 'mainstream', Golang actually has to embrace more use cases. https://github.com/golang/go/issues/47788
  48. …this, rf is still experimental and not complete: https://pkg.go.dev/rsc.io/rf . Example use case: https://github.com/golang/go/issues/46792 I much prefer the non-viral public/private attributes other languages use.
  49. …without allocating read buffers for the entire connection. I.e. a solution to problems discussed in https://github.com/golang/go/issues/15735 . Goroutines provide a great way to have non-blocking IO with synchronous code – but when it…
    comment by FZambia · 2023-07-18 · in Coroutines for Go
  50. …keeping the optimization of coroutines as a runtime implementation detail. I feel vindicated. :-) https://github.com/golang/go/discussions/56413#discussioncom...
    comment by earthboundkid · 2023-07-18 · in Coroutines for Go