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. …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
  2. …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
  3. …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
  4. 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…
  5. 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…
  6. …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...
  7. …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
  8. vague? https://github.com/golang/go/wiki/Modules#daily-workflow
    comment by Thaxll · 2021-05-03 · in Go Modules Cheat Sheet
  9. …Go, which includes a snippet to delete an element from a slice: a = append(a[:i], a[i+1:]...) [0] https://github.com/golang/go/wiki/SliceTricks
    comment by pansa2 · 2021-04-25 · in Rust Language Cheat Sheet
  10. A fair question. I've opened an issue in Go suggesting some documentation improvements: https://github.com/golang/go/issues/45726
    comment by agwa · 2021-04-23 · in How to Interchange Ed25519 Keys
  11. …long. The Ed25519 functions check to make sure the key is the correct length before using them: https://github.com/golang/go/blob/d4bfe006155ea0d9c2970e22fc... The types would ideally use fixed-length arrays, but at the time the API was…
    comment by agwa · 2021-04-23 · in How to Interchange Ed25519 Keys
  12. > Wouldn’t you need some sort of length restriction on that? https://github.com/golang/go/blob/master/src/crypto/ed25519/... It seems it would indeed panic with an invalid size.
    comment by lawl · 2021-04-23 · in How to Interchange Ed25519 Keys
  13. …[1]: https://docs.docker.com/config/containers/resource_constrain... [2]: https://github.com/golang/go/issues/29696
  14. …proposal and working code, but I've struggled to get a review despite clear interest on the issue. https://github.com/golang/go/issues/37278 https://go-review.googlesource.com/c/crypto/+/220037/
    comment by hansnielsen · 2021-04-20 · in OpenSSH 8.6 Released
  15. Minutes ago I was wondering about https://play.golang.org/p/9C0puRUstrP (via https://github.com/golang/go/issues/23440 ). Thank you for explaining what's going on there! :) And btw, compiling the above example with -gcflags="-m" (which I…
  16. I asked that in the Github issue, response here: https://github.com/golang/go/issues/45624#issuecomment-82259... With my reply (and further exploration) here: https://github.com/golang/go/issues/45624#issuecomment-82263...
  17. I asked that in the thread, response here: https://github.com/golang/go/issues/45624#issuecomment-82259... With my reply (and further exploration) here: https://github.com/golang/go/issues/45624#issuecomment-82263... tl;dr: Go uses casts…
  18. Rob Pike filed this issue for it after the first incarnation of the article was released: https://github.com/golang/go/issues/36313
    comment by jordanlewis · 2021-04-16 · in My Go executable files are still getting larger
  19. …the Cockroach people to file a new one mentioning their findings, but don't quote me on that. [1]: https://github.com/golang/go/issues/6853
  20. …when you get familiar with the design. There are proposals to remove the new-gopher confusion. * https://github.com/golang/go/issues/22729 use different zero identifiers for different kinds of type * I remembered that there is a propsoal…
  21. Rabbit holes for you to chase[1][2][3][4][5] 1. https://github.com/golang/go/issues/29696 2. https://github.com/golang/go/issues/42430 3. https://github.com/golang/go/issues/44167 4. https://github.com/golang/go/issues/44309 5.…
    comment by komuW · 2021-03-30 · in Down the Golang Nil Rabbit Hole
  22. …gets basically everything about Go testing wrong. It even takes its arguments in the wrong order. https://github.com/golang/go/wiki/TestComments#assert-librar... https://github.com/golang/go/wiki/TestComments#got-before-wa... They did at…
    comment by jrockway · 2021-03-30 · in Down the Golang Nil Rabbit Hole
  23. …since `error` is an interface, and basically every package library would need to be rewritten. [1] https://github.com/golang/go/issues/30865
    comment by gwd · 2021-03-30 · in Down the Golang Nil Rabbit Hole
  24. …} ? I don't think that's common at all (1) nor is it a sane burden to put on developers. (1) https://github.com/golang/go/blob/master/src/bytes/buffer.go...
    comment by latch · 2021-03-30 · in Down the Golang Nil Rabbit Hole
  25. …www.practical-go-lessons.com/chap-41-cheatsheet , 2 Slices: "A good resource for playing with maps is https://github.com/golang/go/wiki/SliceTricks ". I think you meant slices instead of maps?
    comment by Zababa · 2021-03-25 · in Show HN: I wrote a book about Go
  26. …[0], it looks like Go does use Knuth's algorithm when dividing arbitrary-precision integers. [0] https://github.com/golang/go/blob/2e94401277128f9e08e3319903...
  27. …with a completed 'go build'. Neat! I am looking forward to checking this little program out. [1] https://github.com/golang/go/issues/16104 [2] https://stackoverflow.com/a/21672312 [3] https://github.com/golang/go/issues/38373#issuecomment-7…
    comment by geocrasher · 2021-03-23 · in Tz: A Time Zone Helper
  28. …EDIT: Those are in the process of being replaced with //go:build directives. See https://github.com/golang/go/issues/41184 .
  29. …code[1], it seems like it does. From[2] it looks like it is only for platforms that have AES. 1. https://github.com/golang/go/blob/7bfe32f39c59056c49f5776b10... 2. https://github.com/golang/go/issues/9365
  30. https://github.com/golang/go/issues/45021
  31. …least a great reason why this 'test name with spaces' pattern isn't found in the standard library: https://github.com/golang/go/search?q=t.Run
  32. …interning implementation could be replaced with a proposed Golang weak reference map [0]. [0] https://github.com/golang/go/issues/43615
    comment by mleonhard · 2021-03-11 · in netaddr.IP: a new IP address type for Go
  33. …much state sits around idle). We also have a small fork of Go with some space-optimizing changes: https://github.com/golang/go/compare/master...tailscale:tail... (most of these changes get upstreamed, albeit delayed by one release cycle).…
    comment by dave_universetf · 2021-03-11 · in netaddr.IP: a new IP address type for Go
  34. …Go had a reputation for being condescending and opinionated, but I had no idea it was this bad. https://github.com/golang/go/issues/6189 https://github.com/golang/go/issues/26002 https://github.com/golang/go/issues/27746…
  35. I found the issue: https://github.com/golang/go/issues/6189
  36. There’s some ‘got’ and ‘want’ pointers in https://github.com/golang/go/wiki/TestComments . But yeah, I didn’t even realize this was a very Google thing :).
  37. …issue for GC tunables, but it's mostly where the various concern GC have gone to die so far: https://github.com/golang/go/issues/42430
  38. There's a proposal to put in official support for minimum heap size: https://github.com/golang/go/issues/44309
  39. …to the forced 2 minute max time between GC cycles [0], so a ballast wouldn't have helped here. [0]: https://github.com/golang/go/blob/0f66fb7b856b02497cf801ce72...
  40. It still seems to be working as you described. https://github.com/golang/go/blob/db8142fb8631df3ee56983cbc1...
    comment by scaladev · 2021-02-22 · in Go is not an easy language
  41. https://github.com/golang/go/wiki/SliceTricks I was reading through this, which was referenced from the article. This just seems insane. None of any of that seems intuitive.
    comment by fmakunbound · 2021-02-22 · in Go is not an easy language
  42. FWIW, the generics proposal was accepted: https://github.com/golang/go/issues/43651 This will make a generic "slices" package much more trivial to write.
    comment by SEJeff · 2021-02-22 · in Go is not an easy language
  43. …since it's a behavior change that would affect all existing middleware you try to use (see e.g. https://github.com/golang/go/issues/16542 ). You need to provide your own error handling middleware (of which several exist). A beginner needs…
  44. …bugs are being fixed and regression tests are added. You can see what issues are open and closed at https://github.com/golang/go/issues?q=is%3Aissue+label%3AArc... . The Wasm specification is also progressing over time, sometimes…
    comment by dmitshur · 2021-02-16 · in Go 1.16 Release Notes
  45. …layer cache, using this hack?[1][2] [1] https://github.com/montanaflynn/golang-docker-cache [2] https://github.com/golang/go/issues/27719
    comment by barosl · 2021-02-16 · in Go 1.16 Release Notes
  46. …slice tricks each time I have to implement complex data pipelines with different struct types. https://github.com/golang/go/wiki/SliceTricks Everybody is happy.
    comment by throw_m239339 · 2021-02-16 · in Go 1.16 Release Notes
  47. The reasoning is here: https://github.com/golang/go/issues/40255 Copy of part of it: 1) While 387 support isn’t a huge maintenance burden, it does take time away from performance and feature work and represents a fair amount of latent…
    comment by martisch · 2021-02-16 · in Go 1.16 Release Notes
  48. …recognise that the biggest benefit to a bigint type is making it the default integer type. [1]: https://github.com/golang/go/issues/19623
  49. …from multithreaded code[0] This was addressed in 2017/2018 [0], it's no longer a poor choice. [0]: https://github.com/golang/go/commit/2595fe7fb6f272f9204ca3ef...
    comment by xyzzy_plugh · 2021-02-11 · in Podman: A Daemonless Container Engine
  50. …led me down a whole new rabbit hole of its own that is Golang's time zone parsing capabilities ( https://github.com/golang/go/issues/9617 ), which, at least for Elastic's filebeat, seem to vary at runtime depending on whether or not you…
    comment by c0l0 · 2021-02-10 · in Timezone Bullshit