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
20082026
-
…). This can lead to "fun" issues where the behavior between resolvers diverges, such as https://github.com/golang/go/issues/15419 .
comment by dpifke · 2022-12-22 · in The life of a DNS query in Kubernetes -
…the original issue in the Golang repo about possible uses for a standard library hash function: https://github.com/golang/go/issues/21195 And you're right, the Trie implementation linked there was indeed a Hash-Array Mapped Tried:…
comment by awmarthur · 2022-12-21 · in Hacking Go's runtime with generics -
…the time. It's almost certainly better nowadays. Hopefully the Go runtime starts doing it instead: https://github.com/golang/go/issues/31908
comment by bradfitz · 2022-12-13 · in Userspace isn't slow, some kernel interfaces are -
…instead of googling them? Here, why ISO 8601 support was dropped (spoiler: it's an unparsable mess) https://github.com/golang/go/issues/734 Design mistake )))
comment by divan · 2022-12-11 · in New in Go 1.20: wrapping multiple errors -
…change wasn't accepted, but this[1] alternative will be. That seems like a great change to me. [1]: https://github.com/golang/go/issues/51365
comment by fideloper · 2022-12-11 · in New in Go 1.20: wrapping multiple errors -
…should greatly simplify debugging, and avoid the common generic "context canceled" errors. [1]: https://github.com/golang/go/issues/46273
comment by imiric · 2022-12-11 · in New in Go 1.20: wrapping multiple errors -
…the problem is old and well-known, and has quite a few tickets open on the golang bug tracker: https://github.com/golang/go/issues/47979 - the attributes exposed by marshaling libraries are different from one library to the next... i mean…
comment by ooninoob · 2022-11-27 · in Ask HN: What do you like/dislike about Golang? -
…at all my experience. I had the compiler panic on me for daring to run "go get", as described here: https://github.com/golang/go/issues/47979 This issue has now been closed, but there are several others open with the same symptoms. The…
comment by ooninoob · 2022-11-27 · in Ask HN: What do you like/dislike about Golang? -
…in 2009ish, they doubled down on it. Here in 2022, they finally opened it back up for discussion. https://github.com/golang/go/discussions/56010
comment by bb88 · 2022-11-26 · in The Origins of Python -
> what's missing from Go that makes that impossible? The language maintainers don't want to add it: https://github.com/golang/go/issues/19412
comment by satvikpendem · 2022-11-23 · in Using Rust at a startup: A cautionary tale -
There are some folks working on porting SwissTable to Go: https://github.com/golang/go/issues/54766 What’s holding it back currently is coming up with a way to do incremental rehash, which Go’s current map provides.
comment by aaronbee · 2022-11-20 · in Inside boost::unordered_flat_map -
Russ Cox explains in the issue why they don't want it to be a standard library function: https://github.com/golang/go/issues/56351#issuecomment-12914... "We talked about defining maps.Clear in #55002, but how? It would not be possible to…
comment by mseepgood · 2022-11-19 · in Go 1.21 may have a clear(x) builtin -
…because it's a little bit outside the "mainstream path", and calls it "badly documented". [1]: https://github.com/golang/go/issues/26492 [2]: https://duckduckgo.com/?q=go+compile+static
comment by Beltalowda · 2022-11-11 · in Thirteen Years of Go -
…as the Go project discovered (after having been warned multiple times) during the Sierra betas: https://github.com/golang/go/issues/16272 https://github.com/golang/go/issues/16606 That doesn't mean Apple goes outs of its way to break…
comment by masklinn · 2022-11-09 · in Why is Rosetta 2 fast? -
…they do the default, nor consider the impact of other language changes on your micro-optimizations. https://github.com/golang/go/blob/master/src/runtime/map.go You also won't have `for k, v := range` iteration, but that is also likely…
comment by morelisp · 2022-11-08 · in Maps and Memory Leaks in Go -
…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 -
…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 -
…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#...
comment by cookiengineer · 2022-11-07 · in Nvidia Security Team: “What if we just stopped using C?” -
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
comment by mikelward · 2022-11-06 · in Thoughts on the “guard” proposal for Go's error handling -
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…
comment by gregwebs · 2022-11-06 · in Thoughts on the “guard” proposal for Go's error handling -
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 -
…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? -
…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…
comment by masklinn · 2022-10-29 · in Why is D's garbage collection slower than Go's? -
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…
comment by Beltalowda · 2022-10-27 · in No safe efficient ways to do three-way string comparisons in Go -
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…
comment by somekyle2 · 2022-10-27 · in No safe efficient ways to do three-way string comparisons in Go -
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.…
comment by esprehn · 2022-10-27 · in No safe efficient ways to do three-way string comparisons in Go -
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…
comment by throwawayabcdef · 2022-10-27 · in No safe efficient ways to do three-way string comparisons in Go -
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…
comment by tylerhou · 2022-10-27 · in No safe efficient ways to do three-way string comparisons in Go -
Worth noting that Go's GC is written entirely in Go. https://github.com/golang/go/blob/master/src/runtime/mgc.go
comment by throwaway894345 · 2022-10-26 · in Oracle Contributing GraalVM Community Edition Java Code to OpenJDK -
…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
comment by Thaxll · 2022-10-26 · in Oracle Contributing GraalVM Community Edition Java Code to OpenJDK -
…https://baremessages.org [2] https://lists.sr.ht/~sircmpwn/public-inbox/%3CCAFFTG-a-Vci%2... [3] https://github.com/golang/go/issues/20660
comment by conaclos · 2022-10-22 · in Comparing Floating-Point Numbers Is Tricky (2017) -
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 -
…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
comment by indrora · 2022-10-07 · in Ask HN: Was it worth it for Go to add generics -
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…
comment by beyang · 2022-10-04 · in Steve Yegge Joins as Head of Engineering of Sourcegraph -
…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 -
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 -
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 -
https://github.com/golang/go/issues/36313
comment by LukeShu · 2022-09-26 · in Go runtime: 4 years later -
…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 -
…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? -
…(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? -
Go issue for adding WASI: https://github.com/golang/go/issues/31105
comment by ainar-g · 2022-09-20 · in Wasmtime 1.0 -
Similar issue for not noticing changes in /etc/localtime: https://github.com/golang/go/issues/28020
comment by yencabulator · 2022-09-20 · in Finding the “second bug” in glibc’s condition variable -
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/ -
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/ -
…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 -
> 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...
comment by ChickeNES · 2022-09-19 · in Finding the “second bug” in glibc’s condition variable -
…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
comment by stefan_ · 2022-09-18 · in Finding the “second bug” in glibc’s condition variable -
…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.
comment by riobard · 2022-09-16 · in Pingora, the proxy that connects Cloudflare to the Internet -
…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