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. …as average load of a bucket; where buckets have a maximum load of 8; i.e. 81% full) (ref: https://github.com/golang/go/blob/go1.19.3/src/runtime/map.g... ) > I’ll assume … doubling on resize Indeed (ref:…
    comment by LukeShu · 2022-11-08 · in Maps and Memory Leaks in Go
  2. …should be filed for this, but one of the blog comments says this issue could be fixed by [1]. [1]: https://github.com/golang/go/issues/54766
    comment by cglong · 2022-11-08 · in Maps and Memory Leaks in Go
  3. …though, and keep as much code in golang as possible. [1] https://go.dev/ref/spec#Allocation [2] https://github.com/golang/go/blob/master/src/runtime/mgc.go#...
  4. This would be easier if there was an easy way to write the zero value, irrespective of type. https://github.com/golang/go/issues/19642 was a proposal to have e.g. return _, _, err as an alternative to e.g. return 0, "", err
  5. I officially proposed this recently and it wasn’t well received: https://github.com/golang/go/issues/56165 The proposal the submitted article references has been inactive for years. After submitting proposals and looking at the existing…
  6. FYI there is a weekly review of a subset of open proposals here: https://github.com/golang/go/issues/33502
    comment by philosopher1234 · 2022-11-02 · in The Problem with Go
  7. …in Golang isn't actually reproducible with `lto` enabled. One issue is what I submitted here; https://github.com/golang/go/pull/53528 Another issue which I have been trying to debug is why the code snippet located here doesn't reproduce.…
    comment by Foxboron · 2022-11-01 · in Is my package reproducible yet?
  8. …conservative until 1.3[1][2][3]: the heap was precise, but the stack was conservative. [0] https://github.com/golang/go/issues/46787 [1] https://go.dev/doc/go1.3#garbage_collector [2] https://docs.google.com/document/d/1lyPIbmsYbXnpNj57a261…
  9. It actually used to call this, but was changed in 2015: https://github.com/golang/go/commit/fd4dc91a96518fdbb47781f9... I'm not entire sure if I see the problem or follow why just using runtime·cmpstring is such a bad thing; doesn't seem…
  10. It was previously implemented as a special internal function https://github.com/golang/go/commit/fd4dc91a96518fdbb47781f9... So, making it a simple Go function was more work (at least, as an individual change) because they could've left…
  11. The optimal version does seem to exist here (per the comment too): https://github.com/golang/go/blob/d28bf6c9a2ea9b992796738d03... So the goal was to intentionally nerf Compare() to discourage code the golang authors considered less clear.…
  12. https://github.com/golang/go/commit/fd4dc91a96518fdbb47781f9... I interpret this as replacing a strange but more optimal call to the runtime with a straight forward but less fast stdlib implementation. rsc's comment seems more like a todo…
  13. Wouldn't the normal implementation for == check lengths? Edit: Never mind, it doesn't: https://github.com/golang/go/blob/d28bf6c9a2ea9b992796738d03... But checking lengths doesn't really help you: it only tells you when strings are not…
  14. Worth noting that Go's GC is written entirely in Go. https://github.com/golang/go/blob/master/src/runtime/mgc.go
  15. …For example the Go runtime and I think C# as well are written in their respective language. https://github.com/golang/go/tree/master/src/runtime https://github.com/dotnet/runtime
  16. ▲ 2
    Another iterator proposal from the Go team
    story by todsacerdoti · 2022-10-25 · 0 comments
  17. …https://baremessages.org [2] https://lists.sr.ht/~sircmpwn/public-inbox/%3CCAFFTG-a-Vci%2... [3] https://github.com/golang/go/issues/20660
  18. Underlying issue in Go: https://github.com/golang/go/issues/49269
    comment by slow_typist · 2022-10-17 · in Gitea still blocking recent SSH clients
  19. ▲ 3
    Go proposal: error handling with try statement and handler
    story by binwiederhier · 2022-10-15 · 1 comment
  20. ▲ 464
    Go: Redefining For Loop Variable Semantics
    story by denysvitali · 2022-10-11 · 260 comments
  21. …Go doesn’t have a good central repository for go libraries, I don’t have good numbers on this. [1] https://github.com/golang/go/issues/48918
  22. We have that! https://sourcegraph.com/github.com/golang/go/-/blob/src/net/... * Works cross-repositories, over our indexed corpus of 6M OSS repositories, or your private code * Multi-language (some projects at compiler accuracy, some at…
  23. ▲ 4
    Redefining for Loop Variable Semantics
    story by bkq · 2022-10-04 · 0 comments
  24. ▲ 4
    Redefining for Loop Variable Semantics
    story by piinbinary · 2022-10-03 · 0 comments
  25. …wasm (~2019), Brotli was the best compression approach. eg 16MB uncompressed -> 2.4MB compressed https://github.com/golang/go/wiki/WebAssembly#reducing-the-s...
    comment by justinclift · 2022-10-03 · in Postgres WASM
  26. This is being considered for Go 2: https://github.com/golang/go/issues/19623 Personally I'm wary of it: it's not hard to think of adversarial scenarios where this could lead to OOM. On the other hand, adversarially overflowing an int can…
    comment by nemo1618 · 2022-09-30 · in New integer types I’d like to see
  27. Custom ranges will be possible at some point: https://github.com/golang/go/discussions/54245
    comment by eliasdaler · 2022-09-27 · in Go runtime: 4 years later
  28. https://github.com/golang/go/issues/36313
    comment by LukeShu · 2022-09-26 · in Go runtime: 4 years later
  29. …logging is too simple, lacks levels and structured-logging-style (currently actively discussed: https://github.com/golang/go/discussions/54763 ) 4. Low-level UDP networking is weak (soon to be fixed as they accepted this proposal:…
    comment by tomalaci · 2022-09-26 · in Go runtime: 4 years later
  30. …According to the Go devs, this is also the policy on Solaris-family OSs (Go uses libc there): https://github.com/golang/go/issues/24357#issuecomment-37300... AFAIK, it is only Linux which explicitly supports the kernel system call…
    comment by twic · 2022-09-21 · in Can I use a system call?
  31. …(the exact syscall jart used above an example!) because the go compiler emitted direct syscalls: https://github.com/golang/go/issues/16606
    comment by lgg · 2022-09-21 · in Can I use a system call?
  32. Go issue for adding WASI: https://github.com/golang/go/issues/31105
    comment by ainar-g · 2022-09-20 · in Wasmtime 1.0
  33. Similar issue for not noticing changes in /etc/localtime: https://github.com/golang/go/issues/28020
  34. It is part of POSIX: https://github.com/golang/go/issues/36822#issuecomment-57938... Also RFC 3986.
    comment by gunapologist99 · 2022-09-19 · in https://16777217/
  35. This has been part of POSIX for decades, but not in Golang net yet. :( https://github.com/golang/go/issues/36822
    comment by gunapologist99 · 2022-09-19 · in https://16777217/
  36. …the mailing list to see what the maintainers think the future of runtime tracing looks like. [0] https://github.com/golang/go/issues/41324#issuecomment-70379... [1] https://opentelemetry.io [2] https://ui.perfetto.dev/
    comment by chrsig · 2022-09-19 · in Fgtrace – The Full Go Tracer
  37. > This stupidity surfaces everywhere; here is a Go bug report for it: > https://github.com/golang/go/issues/21083 The irony that they proposed a fix in 2017 but never got around to actually implementing it...
  38. …invalidate it, just to be sure. This stupidity surfaces everywhere; here is a Go bug report for it: https://github.com/golang/go/issues/21083
  39. ▲ 1
    Extending Go Forward Compatibility
    story by crunchbang123 · 2022-09-17 · 0 comments
  40. ▲ 4
    Russ Cox: Extending Go Forwards Compatibility
    story by philosopher1234 · 2022-09-16 · 0 comments
  41. ▲ 3
    Extending Go Backward Compatibility
    story by mfrw · 2022-09-16 · 0 comments
  42. …large scale use cases. There is a more-than-6-year-old proposal to introduce non-blocking I/O API ( https://github.com/golang/go/issues/15735 ) but so far it's not gaining much traction. Maybe in Go2.
  43. ▲ 1
    Extending Go Forward Compatibility
    story by database64128 · 2022-09-16 · 0 comments
  44. ▲ 20
    Extending Go Backward Compatibility
    story by todsacerdoti · 2022-09-15 · 0 comments
  45. …implement this I would say the maintainer closing the issue, is a pretty clear signal for that: https://github.com/golang/go/issues/48207#event-7373771032
    comment by svnpenn · 2022-09-13 · in Planning Go 1.20 cryptography work
  46. ▲ 1
    Go: Design and Implementation of Profile-Guided Optimization (PGO)
    story by rajveermalviya · 2022-09-13 · 0 comments
  47. …be thinking about this. 1. https://wikipedia.org/wiki/Device_fingerprint#Sources_of_ide... 2. https://github.com/golang/go/issues/48207 3. https://github.com/curl/curl/issues/8119
    comment by svnpenn · 2022-09-13 · in Planning Go 1.20 cryptography work
  48. ▲ 4
    Go Proposal: Profile Guided Optimization
    story by philosopher1234 · 2022-09-12 · 0 comments
  49. ▲ 201
    Discussion: structured, leveled logging
    story by philosopher1234 · 2022-09-11 · 121 comments
  50. We do speed tests hence we saw the issue. See https://github.com/golang/go/issues/47840 Yeah I agree this is a edge case, 99,99% of Caddy users don't push so much data ;) But Caddy can't be used as a big files download server for instance,…
    comment by kgersen · 2022-09-08 · in Caddyhttp: Enable HTTP/3 by Default