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. …slice tricks will soon be replaced with "container/slice" (although you'll still need a few)! [1] https://github.com/golang/go/issues/45955
    comment by parhamn · 2021-10-03 · in Effective Go
  2. …and all external dependencies should always be distributed in source-form, not as binaries (e.g. https://github.com/golang/go/issues/2775 ).
  3. Also https://github.com/golang/go/wiki/CodeReviewComments
    comment by louis-paul · 2021-10-03 · in Effective Go
  4. A bunch of other docs I've looked up number of times and found handy: - Slice tricks: https://github.com/golang/go/wiki/SliceTricks - Rest of the Golang Github Wiki: https://github.com/golang/go/wiki#additional-go-programming-... - Spec -…
    comment by oxplot · 2021-10-03 · in Effective Go
  5. - Go Code Review Comments: https://github.com/golang/go/wiki/CodeReviewComments
    comment by rob74 · 2021-10-03 · in Effective Go
  6. In the spirit of this, the Go project has a "common code review comments" document ( https://github.com/golang/go/wiki/CodeReviewComments ) - topics that come up frequently when reviewing pull requests. Reading these can certainly help you…
  7. …whose code I'm reviewing are competent, idiomatic go programmers who follow go's style guide ( https://github.com/golang/go/wiki/CodeReviewComments ) to the extent that it exists. I find it far more difficult to tease out what a stanza of…
    comment by joshuamorton · 2021-09-14 · in Go’ing Insane: Endless Error Handling
  8. …require a SAT-solver (dependency hell is NP-complete https://research.swtch.com/version-sat ) https://github.com/golang/go/issues/24301 https://go.googlesource.com/proposal/+/master/design/24301-v... https://research.swtch.com/vgo…
  9. …a proposal in motion to do exactly this, with support among both devs and the language maintainers: https://github.com/golang/go/issues/21182#issuecomment-54241...
    comment by jesseduffield · 2021-09-14 · in Go’ing Insane: Endless Error Handling
  10. …would have just used type switches for efficiency -- it looks like it does for common cases ( https://github.com/golang/go/blob/d62866ef793872779c9011161e... ) but then falls back to reflect. I wonder why it doesn't just do all of that…
  11. …individual fields (though the common cases are done without reflect, using ordinary type switches: https://github.com/golang/go/blob/d62866ef793872779c9011161e... ).
  12. That was the second bug. The first bug was this one (CL sent on 2014-08-19 and merged on 2014-09-24): https://github.com/golang/go/issues/7978 https://codereview.appspot.com/131910043 I particularly like this comment: "Ping. Could somebody…
  13. …of Go is something I value a lot, so I don’t mind stop-gaps like this too much on balance. [0] https://github.com/golang/go/issues/20148 [1] https://github.com/golangci/golangci-lint
    comment by xh-dude · 2021-08-24 · in Error stack traces in Go with x/xerror
  14. …I'd take ADTs over generics any day, but it's not a dichotomy maybe we'll still get them some day. https://github.com/golang/go/issues/19412
    comment by infogulch · 2021-08-21 · in Generics enabled by default in Go tip
  15. …to spend time maintaining a website search function? [0] "Make website search case-insensitive" https://github.com/golang/go/issues/40217 [1] "Make search box remember what you typed" https://github.com/golang/go/issues/40218 [2] "show…
    comment by mleonhard · 2021-08-20 · in What is ‘elite overproduction’?
  16. …that well. What I meant is that you can ignore the returned value altogether, including the error. https://github.com/golang/go/issues/20803 In contrast, e.g. Zig requires you to use _ if you want to ignore.
    comment by int_19h · 2021-08-18 · in Go 1.17 Release Notes
  17. There is also a WIP Go proposal for adding a set to the standard library using the upcoming generics: https://github.com/golang/go/discussions/47331
    comment by typical182 · 2021-08-17 · in Go 1.17 Release Notes
  18. …fit well with the current register allocator, and the fix was larger than we wanted to risk. (See https://github.com/golang/go/issues/46216 )
    comment by drchase · 2021-08-17 · in Go 1.17 Release Notes
  19. …of memory, so it's not chaff.) You might like the slices proposal for utility functions like these: https://github.com/golang/go/issues/45955
    comment by jrockway · 2021-08-17 · in Go 1.17 Release Notes
  20. With the introduction of generics in Go 1.18 and the accompanying "slices" package ( https://github.com/golang/go/issues/45955 ), we might soon write that as: a = slices.Delete(a, i, i+1) That said, in code I write, I rarely need to do an…
    comment by benhoyt · 2021-08-17 · in Go 1.17 Release Notes
  21. …and Go programmers recognize it instantly? Or maybe they don't deal with slices that often? https://github.com/golang/go/wiki/SliceTricks
    comment by ridiculous_fish · 2021-08-16 · in Go 1.17 Release Notes
  22. Downloads: https://golang.org/dl/ 1.16.7 issues: https://github.com/golang/go/issues?q=milestone%3AGo1.16.7+l... 1.15.15 issues: https://github.com/golang/go/issues?q=milestone%3AGo1.15.15+...
    comment by LysPJ · 2021-08-06 · in Go 1.16.7 and 1.15.15 are released
  23. …it stomped on that one person's Go named language. F in the chat for them. Found the link - issue#9 https://github.com/golang/go/issues/9
  24. > purely for ideological reasons There are no ideological reasons. https://github.com/golang/go/commit/dd64f86e0874804d0ec5b713... "Generics may well come at some point." https://golang.org/doc/faq#generics "A language proposal…
  25. …I/O operations consume threads (in contrast with network ones), so is not easy to parallelize them: https://github.com/golang/go/issues/6817 Btw, you forgot Rust :)
    comment by nahuel0x · 2021-07-25 · in Ncdu 2: Less hungry and more Ziggy
  26. os.Open has been using openat since 2015. https://github.com/golang/go/commit/e7a7352e527ca275a2b66cc3...
    comment by donio · 2021-07-22 · in Implement unprivileged chroot
  27. This exact thing is being discussed https://github.com/golang/go/issues/25849 here. Maybe take a look
  28. …[2]: https://blog.golang.org/go2-here-we-come [3]: https://blog.golang.org/go2-next-steps [4]: https://github.com/golang/go/issues/43651 [5]: https://blog.golang.org/generics-proposal
    comment by LukeShu · 2021-07-13 · in Go 1.17 Release Candidate 1
  29. Please fix SSL system cert verification on Windows! https://github.com/golang/go/issues/16736
    comment by welder · 2021-07-13 · in Go 1.17 Release Candidate 1
  30. …frustration comes from you wanted to use channels for any scenarios. This is not recommended too. https://github.com/golang/go/wiki/MutexOrChannel
    comment by tapirl · 2021-07-12 · in Updating the Go Memory Model
  31. …bug in the kernel [3]. [1] https://forum.restic.net/t/troubleshooting-unreproducible-co... [2] https://github.com/golang/go/issues/35777 [3] https://bugzilla.kernel.org/show_bug.cgi?id=205663
  32. …an intentional design choice. Fun fact: the first commit in the Go repository is from 1972. In B. https://github.com/golang/go/commit/7d7c6a97f8 Followed by a commit from 1974 to convert it to C, and 1988 to convert it to ANSI C:…
  33. …use of 'go get' did not link to the original proposal/implementation issues: initial proposal: https://github.com/golang/go/issues/40276 1.16 deprecation delay: https://github.com/golang/go/issues/42885 1.17 deprecation:…
  34. …my software could not cope with and I was not smart enough to fix it in the upstream module. [0]: https://github.com/golang/go/issues/18576
    comment by dijit · 2021-06-22 · in Upgrade Your SSH Key to Ed25519 (2018)
  35. …the blog on the repository: https://github.com/Dentrax/go-tilde-operator/ Find the issue proposal: https://github.com/golang/go/issues/46847 Find the implementation PR: https://github.com/golang/go/pull/46848
  36. …then, the C++ re2 implementation has many optimizations that are not in the Go implementation. [1] https://github.com/golang/go/issues/19629#issuecomment-28815...
  37. …has both Async tasks and OS threads, meaning you can choose what works best for your workload. [1] https://github.com/golang/go/issues/10958 [2] https://github.com/golang/go/issues/36365
    comment by littlestymaar · 2021-06-18 · in Six ways to make async Rust easier
  38. …language itself, since Rust doesn't ship a scheduler the runtime being a third-party library. [1]: https://github.com/golang/go/issues/36365 [2]: https://github.com/golang/go/issues/40722
    comment by littlestymaar · 2021-06-18 · in Six ways to make async Rust easier
  39. …you can use threads (and as it's completely orthogonal to async, it combines well with it). [1]: https://github.com/golang/go/issues/10958
    comment by littlestymaar · 2021-06-18 · in Six ways to make async Rust easier
  40. …and tested in your favorite event loop or I/O abstraction library. Here's some open issues and PRs: https://github.com/golang/go/issues/31908 https://github.com/libuv/libuv/pull/2322 https://github.com/tokio-rs/mio/issues/923…
    comment by zxzax · 2021-06-17 · in Io_uring is not an event system
  41. He finally did [0]! [0]: https://github.com/golang/go/commit/c90d392ce3d3203e0c32b3f9...
    comment by ctoth · 2021-06-17 · in Sponsored-By Proposal
  42. When I need to copy a slice it's usually a []byte. I'm looking forward to https://github.com/golang/go/issues/45038
    comment by icholy · 2021-06-11 · in Go 1.17 Beta
  43. …up leading back to this still-open but seemingly forgotten issue about adding InactivityTimeout: https://github.com/golang/go/issues/22982 I'd love to see this one addressed but it's not looking too hopeful at this stage.
    comment by shabbyrobe · 2021-06-10 · in Go 1.17 Beta
  44. …the issue creator). It's been a multi-year effort, so congrats to those who've made it happen. [1] https://github.com/golang/go/issues/19109 [2] https://github.com/golang/go/issues/44551
    comment by dorian-graph · 2021-06-04 · in Go: Fuzzing Is Beta Ready
  45. And the code: https://github.com/golang/go/blob/dev.fuzz/src/internal/fuzz... Edit: and here's the mechanism that guides mutations towards increased coverage: https://github.com/golang/go/blob/5542c10fbf19cb199d1659c189...
    comment by greyface- · 2021-06-04 · in Go: Fuzzing Is Beta Ready
  46. …the conformance tests. [1]: https://github.com/protocolbuffers/protobuf/tree/master/conf... [2]: https://github.com/golang/go/blob/master/src/encoding/binary... [3]: https://en.wikipedia.org/wiki/Feedback_arc_set#Minimum_feedb...
    comment by sa46 · 2021-06-03 · in A new ProtoBuf generator for Go
  47. …intentionally introduced randomness into map iteration order to shake out bugs. For evidence, see: https://github.com/golang/go/issues/6719 https://stackoverflow.com/a/55925880 https://codereview.appspot.com/5285042
  48. …from hello-world Go WASM init by pre-processing. 0 - https://github.com/cretz/go-wasm-bake 1 - https://github.com/golang/go/issues/26622
    comment by kodablah · 2021-06-02 · in Making JavaScript run fast on WebAssembly
  49. …a bad way). With most Go code today, you can just look at the indentation, or count the for loops. https://github.com/golang/go/issues/45955#issuecomment-83235...
  50. Yeah, that default ruleset is quite sparse. It would be nice to see Go's Code Review Comments ( https://github.com/golang/go/wiki/CodeReviewComments ) added as a basic ruleset.
    comment by jidiculous · 2021-05-25 · in Discovering Goroutine Leaks with Semgrep