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
-
…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 -
▲ 2
Another iterator proposal from the Go teamstory by todsacerdoti · 2022-10-25 · 0 comments
-
…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 -
▲ 3
Go proposal: error handling with try statement and handlerstory by binwiederhier · 2022-10-15 · 1 comment
-
▲ 464
Go: Redefining For Loop Variable Semanticsstory by denysvitali · 2022-10-11 · 260 comments
-
…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 -
▲ 4
Redefining for Loop Variable Semanticsstory by bkq · 2022-10-04 · 0 comments
-
▲ 4
Redefining for Loop Variable Semanticsstory by piinbinary · 2022-10-03 · 0 comments
-
…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 -
▲ 1
Extending Go Forward Compatibilitystory by crunchbang123 · 2022-09-17 · 0 comments
-
▲ 4
Russ Cox: Extending Go Forwards Compatibilitystory by philosopher1234 · 2022-09-16 · 0 comments
-
▲ 3
Extending Go Backward Compatibilitystory by mfrw · 2022-09-16 · 0 comments
-
…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 -
▲ 1
Extending Go Forward Compatibilitystory by database64128 · 2022-09-16 · 0 comments
-
▲ 20
Extending Go Backward Compatibilitystory by todsacerdoti · 2022-09-15 · 0 comments
-
…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 -
▲ 1
Go: Design and Implementation of Profile-Guided Optimization (PGO)story by rajveermalviya · 2022-09-13 · 0 comments
-
…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 -
▲ 4
Go Proposal: Profile Guided Optimizationstory by philosopher1234 · 2022-09-12 · 0 comments
-
▲ 201
Discussion: structured, leveled loggingstory by philosopher1234 · 2022-09-11 · 121 comments
-
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