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
-
…do (until they don't). Maybe they will add the virtual address space thing later. Edit: the issue ( https://github.com/golang/go/issues/51317 ) in which that comment was made also has some people referring to the arena being freed "when…
comment by cormacrelf · 2023-01-17 · in Major standard library changes in Go 1.20 -
…why it segfaults (the stack is even corrupted if you try to use gdb). You can read about it here: https://github.com/golang/go/issues/13492 Of course one could argue that's mostly Go's fault...
comment by hardwaregeek · 2023-01-13 · in Alpine Linux in the Browser (2020) -
▲ 2
Go Slice Tricksstory by nateb2022 · 2023-01-10 · 0 comments
-
> No other independent hosters are having issues. I could be wrong but in comments to https://github.com/golang/go/issues/44577 issue there at least 4 hosters that forced to manually disable background refresh because of this exactly issue?
comment by deelly · 2023-01-10 · in Sourcehut will blacklist the Go module mirror -
…you could have picked. You've wandered off the path at nearly every available opportunity. [0] https://github.com/golang/go/issues/44577#issuecomment-78531... [1] https://github.com/golang/go/issues/44577#issuecomment-85107...
comment by jdiff · 2023-01-10 · in Sourcehut will blacklist the Go module mirror -
…/ sprawling open source projects is never quite perfect, but that's a little extra color... [0] https://github.com/golang/go/issues/44577 [1] https://github.com/golang/go/issues/44577#issuecomment-11378... [2]…
comment by typical182 · 2023-01-09 · in Sourcehut will blacklist the Go module mirror -
…as you can comment on, say, github.com/facebook/zstd without a Facebook account, you can also comment on github.com/golang/go without a Google account.
comment by Beltalowda · 2023-01-09 · in Sourcehut will blacklist the Go module mirror -
Supposedly the operator of sourcehut has been banned from posting to the Go issue tracker: https://github.com/golang/go/issues/44577#issuecomment-11378... So, obviously he's supposed to know the even more obscure and annoying method of…
comment by jlarocco · 2023-01-09 · in Sourcehut will blacklist the Go module mirror -
…of the GPG command line tool by applications" where, "shitty" is considered by some crossing a line https://github.com/golang/go/issues/30141#issuecomment-46427... Both are abrasive, but in my mind, this is a cultural issue. I grew up in a…
comment by Zamicol · 2023-01-09 · in Sourcehut will blacklist the Go module mirror -
https://github.com/golang/go/issues/30141#issuecomment-46427... I don't have a full list of all posts at hand (some of which may be removed), but I've seen some other similar stuff as well; it's not an isolated incident. I was reading…
comment by Beltalowda · 2023-01-09 · in Sourcehut will blacklist the Go module mirror -
…to "reasonable defaults", so as a random person hosting a single Go module doesn't get DOSed - https://github.com/golang/go/issues/44577#issuecomment-86087... ?
comment by throwaway_62022 · 2023-01-09 · in Sourcehut will blacklist the Go module mirror -
The other side: https://github.com/golang/go/issues?q=is%3Aissue+sort%3Aupda... Spoiler: Nothing. edit: Possibly not as much nothing, see the replies to [0]. But the GH search kinda sucks for this. [0]:…
comment by Semaphor · 2023-01-09 · in Sourcehut will blacklist the Go module mirror -
…For some reason he did not do this and instead chose an option that causes breakage. [1] https://github.com/golang/go/issues/44577#issuecomment-11378...
comment by comex · 2023-01-09 · in Sourcehut will blacklist the Go module mirror -
…the standard library in a future release of Go [1] [0] https://pkg.go.dev/golang.org/x/exp/slog [1] https://github.com/golang/go/issues/56345#issuecomment-13520...
comment by porjo · 2023-01-06 · in Go libraries you need to know -
▲ 6
Go proposal: sum types based on general interfacesstory by todsacerdoti · 2023-01-06 · 1 comment
-
…spent a lot of time dealing with Go's own reflect issue(i.e [0]) in its default implementation. https://github.com/golang/go/issues/15924
comment by thefounder · 2023-01-04 · in Pushup: a new compiler for making web apps in Go -
Filed https://github.com/golang/go/issues/57530 .
comment by joatmon-snoo · 2022-12-30 · in Golang disables Nagle's Algorithm by default -
…with an `iptables` rule [3]. My solution for now is to use a client that only uses HTTP/1.1. [1] https://github.com/golang/go/issues/36026#issuecomment-56902... [2] https://blog.cloudflare.com/when-tcp-sockets-refuse-to-die/ [3]…
comment by ialad · 2022-12-30 · in Golang disables Nagle's Algorithm by default -
…DNS resolution on MacOS can cause all DNS requests on the system to begin to fail until a restart. https://github.com/golang/go/issues/52839
comment by SomaticPirate · 2022-12-30 · in Golang disables Nagle's Algorithm by default -
…back the ability to turn NODELAY on and off, it was actually in the networking code from the start https://github.com/golang/go/blob/e8a02230/src/lib/net/net.g...
comment by Game_Ender · 2022-12-30 · in Golang disables Nagle's Algorithm by default -
…back into a general library and go other with a pass from gofmt, all over a "short" 14 years. 0 - https://github.com/golang/go/commit/e8a02230f215efb075cccd41... 1 - https://github.com/golang/go/blob/e8a02230f215efb075cccd4146...
comment by Game_Ender · 2022-12-30 · in Golang disables Nagle's Algorithm by default -
It's been in the code base from the start: https://github.com/golang/go/blob/e8a02230/src/lib/net/net.g...
comment by Piezoid · 2022-12-30 · in Golang disables Nagle's Algorithm by default -
…I originally linked to the wrong review. It's been there since the initial commit of networking: https://github.com/golang/go/commit/e8a02230f215efb075cccd41...
comment by stusmall · 2022-12-30 · in Golang disables Nagle's Algorithm by default -
Btw, here's the line on github: https://github.com/golang/go/blob/fbf763fd1d6be3c162ea5ff3c8...
comment by kyrra · 2022-12-29 · in Golang disables Nagle's Algorithm by default -
…for example, time.Time.In [2] could be a good startpoint to learn how they do the conversion. [1]: https://github.com/golang/go/tree/master/src/time [2]: https://github.com/golang/go/blob/38cfb3be9d4868334562767771...
comment by Leotard6963 · 2022-12-27 · in Ask HN: Resources for learning/teaching time zone conversions and datetime math? -
A wonderfully Go-like piece of magic: https://github.com/golang/go/blob/go1/src/pkg/image/gif/read... What's magic there seemed magical at the time because even Go's creators were only just coming to see the power of interfaces then. Now,…
comment by jeffrallen · 2022-12-26 · in Ask HN: What's the most elegant piece of code you've seen? -
…of "proprietary" in the open source world. And, well, that ISO standard is itself copyrighted. [1]: https://github.com/golang/go/blob/master/LICENSE Edit: You shouldn't delete and re-write your comments. Here's the original comment I…
comment by woodruffw · 2022-12-23 · in Ask HN: Learn C in 2023? -
▲ 3
Custom Memory Arenas/Allocators in Golangstory by truth_seeker · 2022-12-23 · 0 comments
-
▲ 2
Proposal: Slices: new standard library package based on x/exp/slicesstory by mfrw · 2022-12-22 · 0 comments
-
…...). This can lead to "fun" issues where the behavior between resolvers diverges, such as https://github.com/golang/go/issues/15419 ." This is also not incorrect: "By default the pure Go resolver is used, because a blocked DNS request…
comment by bogomipz · 2022-12-22 · in The life of a DNS query in Kubernetes -
…). 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 -
▲ 1
Test timeout panic trace is attrib to running test, even if the test just passedstory by ghuntley · 2022-12-14 · 0 comments
-
…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 -
▲ 5
proxy.golang.org issues affecting 'go get'story by mariusor · 2022-12-09 · 3 comments
-
▲ 1
Go: Add support for wrapping multiple errorsstory by luu · 2022-12-05 · 0 comments
-
▲ 2
Go to Receive Multipe Error Wrapping – Fixing a Common Complaintstory by veqq · 2022-11-30 · 1 comment
-
…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