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. …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
  2. …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’?
  3. …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
  4. 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
  5. …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
  6. …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
  7. 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
  8. …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
  9. ▲ 1
    Go proposal: maps: new package to provide generic map functions
    story by pjmlp · 2021-08-12 · 0 comments
  10. ▲ 3
    Go proposal: maps: new package to provide generic map functions
    story by srathi · 2021-08-12 · 0 comments
  11. 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
  12. …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
  13. > 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…
  14. …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
  15. ▲ 1
    rcs responds to Go siv optional proposal
    story by UkiahSmith · 2021-07-23 · 0 comments
  16. 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
  17. This exact thing is being discussed https://github.com/golang/go/issues/25849 here. Maybe take a look
  18. …[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
  19. 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
  20. …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
  21. …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
  22. …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:…
  23. ▲ 6
    Go team quiet weeks: issue tracker responses will be delayed
    story by arberavdullahu · 2021-06-26 · 0 comments
  24. …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:…
  25. …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)
  26. …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
  27. …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...
  28. …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
  29. …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
  30. …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
  31. …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
  32. He finally did [0]! [0]: https://github.com/golang/go/commit/c90d392ce3d3203e0c32b3f9...
    comment by ctoth · 2021-06-17 · in Sponsored-By Proposal
  33. 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
  34. …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
  35. …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
  36. 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
  37. …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
  38. …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
  39. …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
  40. …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...
  41. 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
  42. …see some higher level functions exist for to help reduce boilerplate. For example, this proposal: https://github.com/golang/go/issues/45955 to add Filter, Map, etc. to slices. That seems like a practical set of functions to add to minimize…
    comment by ZealousIdeal · 2021-05-16 · in Half a million lines of Go
  43. …operators? > he language that is the easiest to read Generic programming is now a part of Go[2] [1] https://github.com/golang/go/issues/45955 [2] https://github.com/golang/go/issues/43651
    comment by halfmatthalfcat · 2021-05-16 · in Half a million lines of Go
  44. …Russ Cox's following comments pretty much demonstrate this attitude against GNUisms and BSDisms: https://github.com/golang/go/issues/2096#issuecomment-660578... https://news.ycombinator.com/item?id=9207316 On the other hand, Russ clearly…
    comment by unscaled · 2021-05-13 · in Big list of HTTP static server one-liners
  45. There's a CompareAndSwap to do a quick acquire when there isn't contention: https://github.com/golang/go/blob/master/src/sync/mutex.go#L... If you look at the slow path, there are many interesting paths that a lock can take in there. They…
  46. Yup, there is an upstream issue to improve this: https://github.com/golang/go/issues/44920 FWIW I'm planning to work on the problem from downstream as well by adding more docs here: https://github.com/felixge/go-profiler-notes . I haven't…
  47. …richer platform- and architecture-specific data can be discussed separately. Discussion [1]: https://github.com/golang/go/issues/36821 Proposal [2]: https://go.googlesource.com/proposal/+/refs/changes/08/21950...
  48. ▲ 208
    Go proposal: new package to provide generic slice functions
    story by todsacerdoti · 2021-05-05 · 178 comments
  49. …go mod how-tos tutorial[2] [0] https://golang.cafe/blog/how-to-upgrade-golang-dependencies.... [1] https://github.com/golang/go/wiki/Modules#how-to-upgrade-and... [2] https://www.youtube.com/watch?v=AJxKKmzRTUY
    comment by throwawaygc123 · 2021-05-03 · in Go Modules Cheat Sheet
  50. vague? https://github.com/golang/go/wiki/Modules#daily-workflow
    comment by Thaxll · 2021-05-03 · in Go Modules Cheat Sheet