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
-
…slice tricks will soon be replaced with "container/slice" (although you'll still need a few)! [1] https://github.com/golang/go/issues/45955
comment by parhamn · 2021-10-03 · in Effective Go -
…and all external dependencies should always be distributed in source-form, not as binaries (e.g. https://github.com/golang/go/issues/2775 ).
comment by DaiPlusPlus · 2021-10-03 · in “Static Linking Considered Harmful” Considered Harmful -
Also https://github.com/golang/go/wiki/CodeReviewComments
comment by louis-paul · 2021-10-03 · in Effective Go -
A bunch of other docs I've looked up number of times and found handy: - Slice tricks: https://github.com/golang/go/wiki/SliceTricks - Rest of the Golang Github Wiki: https://github.com/golang/go/wiki#additional-go-programming-... - Spec -…
comment by oxplot · 2021-10-03 · in Effective Go -
- Go Code Review Comments: https://github.com/golang/go/wiki/CodeReviewComments
comment by rob74 · 2021-10-03 · in Effective Go -
In the spirit of this, the Go project has a "common code review comments" document ( https://github.com/golang/go/wiki/CodeReviewComments ) - topics that come up frequently when reviewing pull requests. Reading these can certainly help you…
comment by rob74 · 2021-09-18 · in How to rapidly improve at any programming language (2016) -
…whose code I'm reviewing are competent, idiomatic go programmers who follow go's style guide ( https://github.com/golang/go/wiki/CodeReviewComments ) to the extent that it exists. I find it far more difficult to tease out what a stanza of…
comment by joshuamorton · 2021-09-14 · in Go’ing Insane: Endless Error Handling -
…require a SAT-solver (dependency hell is NP-complete https://research.swtch.com/version-sat ) https://github.com/golang/go/issues/24301 https://go.googlesource.com/proposal/+/master/design/24301-v... https://research.swtch.com/vgo…
comment by jd3 · 2021-09-14 · in Go’ing Insane: Endless Error Handling -
…a proposal in motion to do exactly this, with support among both devs and the language maintainers: https://github.com/golang/go/issues/21182#issuecomment-54241...
comment by jesseduffield · 2021-09-14 · in Go’ing Insane: Endless Error Handling -
…would have just used type switches for efficiency -- it looks like it does for common cases ( https://github.com/golang/go/blob/d62866ef793872779c9011161e... ) but then falls back to reflect. I wonder why it doesn't just do all of that…
comment by benhoyt · 2021-09-09 · in How We Went All In on sqlc/pgx for Postgres and Go -
…individual fields (though the common cases are done without reflect, using ordinary type switches: https://github.com/golang/go/blob/d62866ef793872779c9011161e... ).
comment by benhoyt · 2021-09-09 · in How We Went All In on sqlc/pgx for Postgres and Go -
That was the second bug. The first bug was this one (CL sent on 2014-08-19 and merged on 2014-09-24): https://github.com/golang/go/issues/7978 https://codereview.appspot.com/131910043 I particularly like this comment: "Ping. Could somebody…
comment by marcan_42 · 2021-09-04 · in A nasty bit of undefined timezone behavior in Golang -
…of Go is something I value a lot, so I don’t mind stop-gaps like this too much on balance. [0] https://github.com/golang/go/issues/20148 [1] https://github.com/golangci/golangci-lint
comment by xh-dude · 2021-08-24 · in Error stack traces in Go with x/xerror -
…I'd take ADTs over generics any day, but it's not a dichotomy maybe we'll still get them some day. https://github.com/golang/go/issues/19412
comment by infogulch · 2021-08-21 · in Generics enabled by default in Go tip -
…to spend time maintaining a website search function? [0] "Make website search case-insensitive" https://github.com/golang/go/issues/40217 [1] "Make search box remember what you typed" https://github.com/golang/go/issues/40218 [2] "show…
comment by mleonhard · 2021-08-20 · in What is ‘elite overproduction’? -
…that well. What I meant is that you can ignore the returned value altogether, including the error. https://github.com/golang/go/issues/20803 In contrast, e.g. Zig requires you to use _ if you want to ignore.
comment by int_19h · 2021-08-18 · in Go 1.17 Release Notes -
There is also a WIP Go proposal for adding a set to the standard library using the upcoming generics: https://github.com/golang/go/discussions/47331
comment by typical182 · 2021-08-17 · in Go 1.17 Release Notes -
…fit well with the current register allocator, and the fix was larger than we wanted to risk. (See https://github.com/golang/go/issues/46216 )
comment by drchase · 2021-08-17 · in Go 1.17 Release Notes -
…of memory, so it's not chaff.) You might like the slices proposal for utility functions like these: https://github.com/golang/go/issues/45955
comment by jrockway · 2021-08-17 · in Go 1.17 Release Notes -
With the introduction of generics in Go 1.18 and the accompanying "slices" package ( https://github.com/golang/go/issues/45955 ), we might soon write that as: a = slices.Delete(a, i, i+1) That said, in code I write, I rarely need to do an…
comment by benhoyt · 2021-08-17 · in Go 1.17 Release Notes -
…and Go programmers recognize it instantly? Or maybe they don't deal with slices that often? https://github.com/golang/go/wiki/SliceTricks
comment by ridiculous_fish · 2021-08-16 · in Go 1.17 Release Notes -
Downloads: https://golang.org/dl/ 1.16.7 issues: https://github.com/golang/go/issues?q=milestone%3AGo1.16.7+l... 1.15.15 issues: https://github.com/golang/go/issues?q=milestone%3AGo1.15.15+...
comment by LysPJ · 2021-08-06 · in Go 1.16.7 and 1.15.15 are released -
…it stomped on that one person's Go named language. F in the chat for them. Found the link - issue#9 https://github.com/golang/go/issues/9
comment by edoceo · 2021-07-31 · in Ask HN: What are some examples of poor naming in computer science/programming? -
> purely for ideological reasons There are no ideological reasons. https://github.com/golang/go/commit/dd64f86e0874804d0ec5b713... "Generics may well come at some point." https://golang.org/doc/faq#generics "A language proposal…
comment by mseepgood · 2021-07-26 · in Map[string]interface{} in Go: a user's manual -
…I/O operations consume threads (in contrast with network ones), so is not easy to parallelize them: https://github.com/golang/go/issues/6817 Btw, you forgot Rust :)
comment by nahuel0x · 2021-07-25 · in Ncdu 2: Less hungry and more Ziggy -
os.Open has been using openat since 2015. https://github.com/golang/go/commit/e7a7352e527ca275a2b66cc3...
comment by donio · 2021-07-22 · in Implement unprivileged chroot -
This exact thing is being discussed https://github.com/golang/go/issues/25849 here. Maybe take a look
comment by NotEvil · 2021-07-16 · in Remote code execution in cdnjs of Cloudflare -
…[2]: https://blog.golang.org/go2-here-we-come [3]: https://blog.golang.org/go2-next-steps [4]: https://github.com/golang/go/issues/43651 [5]: https://blog.golang.org/generics-proposal
comment by LukeShu · 2021-07-13 · in Go 1.17 Release Candidate 1 -
Please fix SSL system cert verification on Windows! https://github.com/golang/go/issues/16736
comment by welder · 2021-07-13 · in Go 1.17 Release Candidate 1 -
…frustration comes from you wanted to use channels for any scenarios. This is not recommended too. https://github.com/golang/go/wiki/MutexOrChannel
comment by tapirl · 2021-07-12 · in Updating the Go Memory Model -
…bug in the kernel [3]. [1] https://forum.restic.net/t/troubleshooting-unreproducible-co... [2] https://github.com/golang/go/issues/35777 [3] https://bugzilla.kernel.org/show_bug.cgi?id=205663
comment by cyounkins · 2021-07-04 · in Single random bit flip causes error in certificate transparency log -
…an intentional design choice. Fun fact: the first commit in the Go repository is from 1972. In B. https://github.com/golang/go/commit/7d7c6a97f8 Followed by a commit from 1974 to convert it to C, and 1988 to convert it to ANSI C:…
comment by arp242 · 2021-06-27 · in Sir, Please Step Away from the ASR-33 (2010) -
…use of 'go get' did not link to the original proposal/implementation issues: initial proposal: https://github.com/golang/go/issues/40276 1.16 deprecation delay: https://github.com/golang/go/issues/42885 1.17 deprecation:…
comment by jd3 · 2021-06-25 · in Go 1.17 is deprecating the traditional use of 'go get' -
…my software could not cope with and I was not smart enough to fix it in the upstream module. [0]: https://github.com/golang/go/issues/18576
comment by dijit · 2021-06-22 · in Upgrade Your SSH Key to Ed25519 (2018) -
…the blog on the repository: https://github.com/Dentrax/go-tilde-operator/ Find the issue proposal: https://github.com/golang/go/issues/46847 Find the implementation PR: https://github.com/golang/go/pull/46848
comment by Dentrax · 2021-06-21 · in Show HN: I implemented Tilde – Operator for Go Compiler after months of research -
…then, the C++ re2 implementation has many optimizations that are not in the Go implementation. [1] https://github.com/golang/go/issues/19629#issuecomment-28815...
comment by traceroute66 · 2021-06-21 · in Show HN: Compile Go regular expressions to Go code -
…has both Async tasks and OS threads, meaning you can choose what works best for your workload. [1] https://github.com/golang/go/issues/10958 [2] https://github.com/golang/go/issues/36365
comment by littlestymaar · 2021-06-18 · in Six ways to make async Rust easier -
…language itself, since Rust doesn't ship a scheduler the runtime being a third-party library. [1]: https://github.com/golang/go/issues/36365 [2]: https://github.com/golang/go/issues/40722
comment by littlestymaar · 2021-06-18 · in Six ways to make async Rust easier -
…you can use threads (and as it's completely orthogonal to async, it combines well with it). [1]: https://github.com/golang/go/issues/10958
comment by littlestymaar · 2021-06-18 · in Six ways to make async Rust easier -
…and tested in your favorite event loop or I/O abstraction library. Here's some open issues and PRs: https://github.com/golang/go/issues/31908 https://github.com/libuv/libuv/pull/2322 https://github.com/tokio-rs/mio/issues/923…
comment by zxzax · 2021-06-17 · in Io_uring is not an event system -
He finally did [0]! [0]: https://github.com/golang/go/commit/c90d392ce3d3203e0c32b3f9...
comment by ctoth · 2021-06-17 · in Sponsored-By Proposal -
When I need to copy a slice it's usually a []byte. I'm looking forward to https://github.com/golang/go/issues/45038
comment by icholy · 2021-06-11 · in Go 1.17 Beta -
…up leading back to this still-open but seemingly forgotten issue about adding InactivityTimeout: https://github.com/golang/go/issues/22982 I'd love to see this one addressed but it's not looking too hopeful at this stage.
comment by shabbyrobe · 2021-06-10 · in Go 1.17 Beta -
…the issue creator). It's been a multi-year effort, so congrats to those who've made it happen. [1] https://github.com/golang/go/issues/19109 [2] https://github.com/golang/go/issues/44551
comment by dorian-graph · 2021-06-04 · in Go: Fuzzing Is Beta Ready -
And the code: https://github.com/golang/go/blob/dev.fuzz/src/internal/fuzz... Edit: and here's the mechanism that guides mutations towards increased coverage: https://github.com/golang/go/blob/5542c10fbf19cb199d1659c189...
comment by greyface- · 2021-06-04 · in Go: Fuzzing Is Beta Ready -
…the conformance tests. [1]: https://github.com/protocolbuffers/protobuf/tree/master/conf... [2]: https://github.com/golang/go/blob/master/src/encoding/binary... [3]: https://en.wikipedia.org/wiki/Feedback_arc_set#Minimum_feedb...
comment by sa46 · 2021-06-03 · in A new ProtoBuf generator for Go -
…intentionally introduced randomness into map iteration order to shake out bugs. For evidence, see: https://github.com/golang/go/issues/6719 https://stackoverflow.com/a/55925880 https://codereview.appspot.com/5285042
comment by benesch · 2021-06-03 · in Malloc broke Serenity's JPGLoader, or: how to win the lottery -
…from hello-world Go WASM init by pre-processing. 0 - https://github.com/cretz/go-wasm-bake 1 - https://github.com/golang/go/issues/26622
comment by kodablah · 2021-06-02 · in Making JavaScript run fast on WebAssembly -
…a bad way). With most Go code today, you can just look at the indentation, or count the for loops. https://github.com/golang/go/issues/45955#issuecomment-83235...
comment by svnpenn · 2021-05-27 · in Functional Programming in Go with Generics -
Yeah, that default ruleset is quite sparse. It would be nice to see Go's Code Review Comments ( https://github.com/golang/go/wiki/CodeReviewComments ) added as a basic ruleset.
comment by jidiculous · 2021-05-25 · in Discovering Goroutine Leaks with Semgrep