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
-
▲ 2
Go memory regions (arena-like)story by kunley · 2024-11-11 · 0 comments
-
▲ 2
Discussion on Feedback for Go Memory Regionsstory by syncopate · 2024-11-10 · 0 comments
-
▲ 4
Early draft discussion of memory regions for Go language to reduce GC overheadstory by FZambia · 2024-11-09 · 0 comments
-
…only trivial ones without local captures?), maps (probably no)...? I think the relevant code is https://github.com/golang/go/blob/master/src/runtime/mgc.go and adjacent files. I see some annotations like //go:systemstack, //go:nosplit,…
comment by ben0x539 · 2024-11-08 · in Rust for tokenising and parsing -
…point there was even a bit of drama[1] around it being marked as deprecated instead of frozen. [0]: https://github.com/golang/go/issues/61917 [1]: https://github.com/golang/go/issues/60797
comment by boomskats · 2024-11-07 · in Linux Syscall Support -
…the 'tar' package in go by default returns unsanitized paths, and has led to a bunch of CVEs: https://github.com/golang/go/issues/55356 The go stdlib can't change the tar package to make it secure by default because it would be a breaking…
comment by TheDong · 2024-11-05 · in Writing secure Go code -
…worse than Java in this regard. I'll just give you a random example from my five seconds of search: https://github.com/golang/go/issues/37484
comment by kccqzy · 2024-11-05 · in Writing secure Go code -
You should read that article carefully. Some Go core team members don't agree with you: https://github.com/golang/go/issues/66156
comment by tapirl · 2024-11-05 · in Writing secure Go code -
…mutability, and would still be a problem even in the presence of full memory safety, for instance: https://github.com/golang/go/issues/37669 https://github.com/golang/go/issues/48340 These types of race conditions cannot happen in Rust.…
comment by unscaled · 2024-11-05 · in Writing secure Go code -
There might be some bugs in .2: https://github.com/golang/go/issues/70035
comment by tapirl · 2024-11-04 · in Writing secure Go code -
It indeed is. Please read https://go101.org/blog/2024-03-01-for-loop-semantic-changes-... and https://github.com/golang/go/issues/66156
comment by tapirl · 2024-11-04 · in Writing secure Go code -
…are no tools to detect the new footguns created by the new semantics of 3-clause "for;;" loops: https://github.com/golang/go/issues/66156 > The second step is to keep the Go versions in our projects current. Even though we don’t use the…
comment by tapirl · 2024-11-04 · in Writing secure Go code -
…the European winter (i.e. the opposite of the other European timezones). (More details here: https://github.com/golang/go/issues/56743#issuecomment-13157... ) Edit: To be clear: the quote is referring to a negative DST start, rather than a…
comment by LysPJ · 2024-10-30 · in Australia/Lord_Howe is the weirdest timezone -
…to address this issue, but fixing it has generally been rejected by the language maintainers, e.g. https://github.com/golang/go/issues/42713 , with the argument that fixing it directly just provides an illusion of security.
comment by kbolino · 2024-10-28 · in Jia Tanning Go Code -
…implementations because it wasn't technically correct. https://github.com/nodejs/node/issues/14644 https://github.com/golang/go/issues/21326 And someone even ended up making a website http://save418.com/
comment by 0x00cl · 2024-10-28 · in 418 I’m a teapot -
You nerd sniped me. The guts of how http2 deals with this in golang is in transport.go : https://github.com/golang/go/blob/master/src/net/http/transp... If I’m reading the code right round trips (HTTP requests) go through queueForIdleConn…
comment by __turbobrew__ · 2024-10-27 · in Understanding Round Robin DNS -
(Rejected) proposal to add something like this to the standard library gives some context: https://github.com/golang/go/issues/53171
comment by dpifke · 2024-10-18 · in Show HN: Go Plan9 Memo -
If you want to see some Plan9 in the std library check out the math package! https://github.com/golang/go/tree/master/src/math
comment by pehringer · 2024-10-18 · in Show HN: Go Plan9 Memo -
…in some cases. But I do wonder, why the std lib doesn't offer this ? EDIT: I found the anwser: https://github.com/golang/go/issues/53171 Here is a good explanation provided by Ian Lance Taylor: > This proposal is focused on code generation…
comment by nzach · 2024-10-18 · in Show HN: Go Plan9 Memo -
▲ 1
Testing adding fuzz test support (2021)story by SEJeff · 2024-10-11 · 1 comment
-
…2000, but that part's optional. - I would say Go is completely irrelevant, since AFAICT as of https://github.com/golang/go/issues/57003 it only supports... Windows 8+? It's actually really hard to find an official answer to what platform…
comment by yjftsjthsd-h · 2024-10-11 · in Running WolfSSL and Curl on Windows 2000 -
…at build time, or on (b) by making generic methods "homegenous" (aka boxed) and thus slow (see https://github.com/golang/go/issues/49085#issuecomment-23163... for an elaboration of this approach); or, they involve dynamic code generation.
comment by adonovan · 2024-10-11 · in Fun with Go Iterators -
https://github.com/golang/go/issues/49085
comment by tapirl · 2024-10-10 · in Fun with Go Iterators -
Another thing I want but is completely missing from golang.org/x/crypto/ssh is compression support: https://github.com/golang/go/issues/31369
comment by oefrha · 2024-10-09 · in Show HN: I made an SSH tunnel manager to learn Go -
I believe these are the issues: https://github.com/golang/go/issues/52690 https://github.com/ziglang/zig/issues/14989
comment by dwattttt · 2024-10-02 · in The Fastest Mutexes -
…(read: fixed / un-broken) some of this setup would be a lot easier, but not holding my breath. [1]: https://github.com/golang/go/issues/48429 [2]: https://go.googlesource.com/proposal/+/54d6775ff71ccbc00c276...
comment by pentaphobe · 2024-10-01 · in Using a separate Go module for your tools.go -
https://github.com/golang/go/issues/54380 I didn't know about that. I agree it qualifies as a "weird issue".
comment by arp242 · 2024-09-30 · in Some Go web dev notes -
…alignment rules as C to make cgo work. There they also solved it by adding dedicated atomic types. https://github.com/golang/go/discussions/47141
comment by EdSchouten · 2024-09-29 · in The perils of transition to 64-bit time_t -
We agreed to make the threadsafeness more explicit in the documentation of the 'unique' package: https://github.com/golang/go/issues/69637
comment by val_deleplace · 2024-09-27 · in Interning in Go -
…It's always nice to see harder concepts implemented with simplicity and readability in mind. [0] https://github.com/golang/go/blob/master/src/cmd/compile/int...
comment by fuhsnn · 2024-09-24 · in Register Allocation in the Go Compiler -
▲ 2
Go crypto package: obtain a FIPS 140-3 validationstory by fprog · 2024-09-19 · 1 comment
-
Be aware that there is a bug in the current implementation (1.23.0 and 1.23.1) https://github.com/golang/go/issues/69370
comment by tapirl · 2024-09-19 · in Interning in Go -
…I wonder how much difference this little fix mentioned in the article for go1.23.2 will make? https://github.com/golang/go/issues/69370 The article also mentions strings.Clone which has been around for a while. Using that is very easy and…
comment by nickcw · 2024-09-19 · in Interning in Go -
…) Related tickets, "runtime: add AddCleanup and deprecate SetFinalizer" - https://github.com/golang/go/issues/67535 "weak: new package providing weak pointers" - https://github.com/golang/go/issues/67552 One day Go will eventually h
comment by pjmlp · 2024-09-19 · in Interning in Go -
…idiomatic in go, if you follow the stdlib. Like, are you doing anything with TLS? String matching: https://github.com/golang/go/issues/35234 Using the stdlib ssh stuff? String matching: https://github.com/golang/go/issues/45207 /…
comment by TheDong · 2024-09-11 · in Don't defer Close() on writable files (2017) -
…a surprising amount of languages/libraries/frameworks/servers where the support is missing (e.g. go https://github.com/golang/go/issues/49918 ). On the client side, both Chrome ( https://chromestatus.com/feature/6251293127475200 ) and…
comment by realharo · 2024-09-06 · in Intent to unship: HTTP/2 Push -
▲ 2
Go proposal: new package providing weak pointersstory by ingve · 2024-08-28 · 0 comments
-
…the go tooling doesn't have a more native way to do something like this already. Upstream issue: https://github.com/golang/go/issues/50745 Like, go already has test caching (so "only test stuff that changed" shouldn't be necessary, that…
comment by TheDong · 2024-08-26 · in Show HN: Monogo – Evolve your go workspace to a real monorepo -
You can learn from the Go codebase to get a feel of why this is useful: https://github.com/golang/go/blob/master/src/cmd/go/internal... https://github.com/golang/go/blob/master/src/io/fs/fs.go#L26... https://github.com/golang/go/blob/master…
comment by mseepgood · 2024-08-21 · in Duck typing (horror) in Go -
…in fact. Go core team has admitted that Go toolchain 1.22.n versions break backward compatibility: https://github.com/golang/go/issues/66092 There is another breakage case: https://github.com/golang/go/issues/66070 and the team leader…
comment by tapirl · 2024-08-21 · in Go automatically downloads a newer toolchain if needed -
…follow. Why would getting sum types in go be impossible? There is already a proposal for this: https://github.com/golang/go/issues/57644 The generic type params already supports a sum type like interface, it’s almost there. So, if you…
comment by MarkMarine · 2024-08-18 · in An unordered list of things I miss in Go -
…receiver gets the wakeup. That's why I brought it up: no it isn't. It's ordered. Intentionally. https://github.com/golang/go/issues/11506 It's pretty easy to prove to yourself too, it only takes a couple dozen lines to write a test. I'm…
comment by Groxx · 2024-08-18 · in An unordered list of things I miss in Go -
> Is Go adding a random seed to each hash map? Yes: https://github.com/golang/go/blob/27093581b2828a2752a6d2711d...
comment by jhgg · 2024-08-17 · in An unordered list of things I miss in Go -
…Maybe a = Just a | Nothing`) rather than current {sql,null}.Null* mess or whatever was proposed in https://github.com/golang/go/issues/48702 . But I doubt if that'll ever happen.
comment by drdaeman · 2024-08-17 · in An unordered list of things I miss in Go -
…The discussion was heavily moderated and redacted, it was even more "lively" at the time.) [1] https://github.com/golang/go/discussions/58409
comment by traceroute66 · 2024-08-13 · in Go 1.23 Released -
…on the relevant Github topic[1], it was changed to opt-in. :D Opt-in is the correct stance. [1] https://github.com/golang/go/discussions/58409
comment by traceroute66 · 2024-08-13 · in Go 1.23 Released -
There was a lengthy discussion to persuade them to not have it on by default: https://github.com/golang/go/discussions/58409
comment by candiddevmike · 2024-08-13 · in Go 1.23 Released -
…progressed since then (which you probably already know about but mentioning it here for others): https://github.com/golang/go/discussions/63397
comment by pjbster · 2024-08-13 · in Go is my hammer, and everything is a nail -
…the compiler had to be modified to insert them into the generated code. Here's `isAsyncSafePoint`: https://github.com/golang/go/blob/d36353499f673c89a267a489be... edit: The comments at the top of that file say: // 3. Asynchronous…
comment by MathMonkeyMan · 2024-08-12 · in Introduction to Golang Preemption Mechanisms -
https://github.com/golang/go/issues/12914
comment by liveoneggs · 2024-08-02 · in Russ Cox is stepping down as the Go tech lead