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
-
…Go, which includes a snippet to delete an element from a slice: a = append(a[:i], a[i+1:]...) [0] https://github.com/golang/go/wiki/SliceTricks
comment by pansa2 · 2021-04-25 · in Rust Language Cheat Sheet -
▲ 2
Go: Switch to a register-based calling convention yields a 6% performance gainstory by fredros · 2021-04-24 · 0 comments
-
A fair question. I've opened an issue in Go suggesting some documentation improvements: https://github.com/golang/go/issues/45726
comment by agwa · 2021-04-23 · in How to Interchange Ed25519 Keys -
…long. The Ed25519 functions check to make sure the key is the correct length before using them: https://github.com/golang/go/blob/d4bfe006155ea0d9c2970e22fc... The types would ideally use fixed-length arrays, but at the time the API was…
comment by agwa · 2021-04-23 · in How to Interchange Ed25519 Keys -
> Wouldn’t you need some sort of length restriction on that? https://github.com/golang/go/blob/master/src/crypto/ed25519/... It seems it would indeed panic with an invalid size.
comment by lawl · 2021-04-23 · in How to Interchange Ed25519 Keys -
…[1]: https://docs.docker.com/config/containers/resource_constrain... [2]: https://github.com/golang/go/issues/29696
comment by hardwaresofton · 2021-04-22 · in Tiny Container Challenge: Building a 6kB Containerized HTTP Server -
▲ 2
Go 1.17 will provide up to 10% better performance thanks to register-based ABIstory by theBashShell · 2021-04-22 · 0 comments
-
…proposal and working code, but I've struggled to get a review despite clear interest on the issue. https://github.com/golang/go/issues/37278 https://go-review.googlesource.com/c/crypto/+/220037/
comment by hansnielsen · 2021-04-20 · in OpenSSH 8.6 Released -
Minutes ago I was wondering about https://play.golang.org/p/9C0puRUstrP (via https://github.com/golang/go/issues/23440 ). Thank you for explaining what's going on there! :) And btw, compiling the above example with -gcflags="-m" (which I…
comment by effdee · 2021-04-19 · in Proposal: expression to create pointer to simple types -
I asked that in the Github issue, response here: https://github.com/golang/go/issues/45624#issuecomment-82259... With my reply (and further exploration) here: https://github.com/golang/go/issues/45624#issuecomment-82263...
comment by Laremere · 2021-04-19 · in Proposal: expression to create pointer to simple types -
I asked that in the thread, response here: https://github.com/golang/go/issues/45624#issuecomment-82259... With my reply (and further exploration) here: https://github.com/golang/go/issues/45624#issuecomment-82263... tl;dr: Go uses casts…
comment by Laremere · 2021-04-19 · in Proposal: expression to create pointer to simple types -
▲ 142
Proposal: expression to create pointer to simple typesstory by jgrimm · 2021-04-19 · 103 comments
-
Rob Pike filed this issue for it after the first incarnation of the article was released: https://github.com/golang/go/issues/36313
comment by jordanlewis · 2021-04-16 · in My Go executable files are still getting larger -
…the Cockroach people to file a new one mentioning their findings, but don't quote me on that. [1]: https://github.com/golang/go/issues/6853
comment by ainar-g · 2021-04-16 · in My Go executable files are still getting larger -
▲ 4
Proposal: Generics: use type sets to remove type keyword in constraintsstory by robfig · 2021-04-02 · 0 comments
-
…when you get familiar with the design. There are proposals to remove the new-gopher confusion. * https://github.com/golang/go/issues/22729 use different zero identifiers for different kinds of type * I remembered that there is a propsoal…
comment by tapirl · 2021-04-01 · in Nil in Go is typed in theory and sort of untyped in practice -
Rabbit holes for you to chase[1][2][3][4][5] 1. https://github.com/golang/go/issues/29696 2. https://github.com/golang/go/issues/42430 3. https://github.com/golang/go/issues/44167 4. https://github.com/golang/go/issues/44309 5.…
comment by komuW · 2021-03-30 · in Down the Golang Nil Rabbit Hole -
▲ 1
Go's x/crypto/openpgp is marked as frozen and deprecatedstory by victorheld · 2021-03-30 · 0 comments
-
…gets basically everything about Go testing wrong. It even takes its arguments in the wrong order. https://github.com/golang/go/wiki/TestComments#assert-librar... https://github.com/golang/go/wiki/TestComments#got-before-wa... They did at…
comment by jrockway · 2021-03-30 · in Down the Golang Nil Rabbit Hole -
…since `error` is an interface, and basically every package library would need to be rewritten. [1] https://github.com/golang/go/issues/30865
comment by gwd · 2021-03-30 · in Down the Golang Nil Rabbit Hole -
…} ? I don't think that's common at all (1) nor is it a sane burden to put on developers. (1) https://github.com/golang/go/blob/master/src/bytes/buffer.go...
comment by latch · 2021-03-30 · in Down the Golang Nil Rabbit Hole -
…www.practical-go-lessons.com/chap-41-cheatsheet , 2 Slices: "A good resource for playing with maps is https://github.com/golang/go/wiki/SliceTricks ". I think you meant slices instead of maps?
comment by Zababa · 2021-03-25 · in Show HN: I wrote a book about Go -
▲ 1
Proposal: net/url: don't parse ';' as a separator in query stringstory by tosh · 2021-03-24 · 0 comments
-
…[0], it looks like Go does use Knuth's algorithm when dividing arbitrary-precision integers. [0] https://github.com/golang/go/blob/2e94401277128f9e08e3319903...
comment by pansa2 · 2021-03-24 · in Donald Knuth’s Algorithm D, its implementation in Hacker’s Delight and elsewhere -
…with a completed 'go build'. Neat! I am looking forward to checking this little program out. [1] https://github.com/golang/go/issues/16104 [2] https://stackoverflow.com/a/21672312 [3] https://github.com/golang/go/issues/38373#issuecomment-7…
comment by geocrasher · 2021-03-23 · in Tz: A Time Zone Helper -
…EDIT: Those are in the process of being replaced with //go:build directives. See https://github.com/golang/go/issues/41184 .
comment by ainar-g · 2021-03-22 · in The ecosystem of the Go programming language -
…code[1], it seems like it does. From[2] it looks like it is only for platforms that have AES. 1. https://github.com/golang/go/blob/7bfe32f39c59056c49f5776b10... 2. https://github.com/golang/go/issues/9365
comment by komuW · 2021-03-15 · in Performance comparison: counting words in Python, Go, C++, C, Awk, Forth, Rust -
https://github.com/golang/go/issues/45021
comment by cp9 · 2021-03-15 · in Performance comparison: counting words in Python, Go, C++, C, Awk, Forth, Rust -
…least a great reason why this 'test name with spaces' pattern isn't found in the standard library: https://github.com/golang/go/search?q=t.Run
comment by henvic · 2021-03-12 · in Learn Go by writing tests – Hello, world (2018) -
…interning implementation could be replaced with a proposed Golang weak reference map [0]. [0] https://github.com/golang/go/issues/43615
comment by mleonhard · 2021-03-11 · in netaddr.IP: a new IP address type for Go -
…much state sits around idle). We also have a small fork of Go with some space-optimizing changes: https://github.com/golang/go/compare/master...tailscale:tail... (most of these changes get upstreamed, albeit delayed by one release cycle).…
comment by dave_universetf · 2021-03-11 · in netaddr.IP: a new IP address type for Go -
…Go had a reputation for being condescending and opinionated, but I had no idea it was this bad. https://github.com/golang/go/issues/6189 https://github.com/golang/go/issues/26002 https://github.com/golang/go/issues/27746…
comment by tyg13 · 2021-03-02 · in Parsing can become accidentally quadratic because of sscanf -
I found the issue: https://github.com/golang/go/issues/6189
comment by fomine3 · 2021-03-02 · in Parsing can become accidentally quadratic because of sscanf -
There’s some ‘got’ and ‘want’ pointers in https://github.com/golang/go/wiki/TestComments . But yeah, I didn’t even realize this was a very Google thing :).
comment by q3k · 2021-02-24 · in Add experimental fuzz test support for Go 1.17 -
▲ 2
Go Proposal: Optional SIVstory by TheSwordsman · 2021-02-23 · 0 comments
-
▲ 121
Add experimental fuzz test support for Go 1.17story by typical182 · 2021-02-23 · 30 comments
-
…issue for GC tunables, but it's mostly where the various concern GC have gone to die so far: https://github.com/golang/go/issues/42430
comment by masklinn · 2021-02-22 · in Why Discord is switching from Go to Rust (2020) -
There's a proposal to put in official support for minimum heap size: https://github.com/golang/go/issues/44309
comment by kyrra · 2021-02-22 · in Why Discord is switching from Go to Rust (2020) -
…to the forced 2 minute max time between GC cycles [0], so a ballast wouldn't have helped here. [0]: https://github.com/golang/go/blob/0f66fb7b856b02497cf801ce72...
comment by aw1621107 · 2021-02-22 · in Why Discord is switching from Go to Rust (2020) -
It still seems to be working as you described. https://github.com/golang/go/blob/db8142fb8631df3ee56983cbc1...
comment by scaladev · 2021-02-22 · in Go is not an easy language -
https://github.com/golang/go/wiki/SliceTricks I was reading through this, which was referenced from the article. This just seems insane. None of any of that seems intuitive.
comment by fmakunbound · 2021-02-22 · in Go is not an easy language -
FWIW, the generics proposal was accepted: https://github.com/golang/go/issues/43651 This will make a generic "slices" package much more trivial to write.
comment by SEJeff · 2021-02-22 · in Go is not an easy language -
…since it's a behavior change that would affect all existing middleware you try to use (see e.g. https://github.com/golang/go/issues/16542 ). You need to provide your own error handling middleware (of which several exist). A beginner needs…
comment by parley · 2021-02-21 · in Life of an HTTP request in a Go server (2017) -
…bugs are being fixed and regression tests are added. You can see what issues are open and closed at https://github.com/golang/go/issues?q=is%3Aissue+label%3AArc... . The Wasm specification is also progressing over time, sometimes…
comment by dmitshur · 2021-02-16 · in Go 1.16 Release Notes -
…layer cache, using this hack?[1][2] [1] https://github.com/montanaflynn/golang-docker-cache [2] https://github.com/golang/go/issues/27719
comment by barosl · 2021-02-16 · in Go 1.16 Release Notes -
…slice tricks each time I have to implement complex data pipelines with different struct types. https://github.com/golang/go/wiki/SliceTricks Everybody is happy.
comment by throw_m239339 · 2021-02-16 · in Go 1.16 Release Notes -
The reasoning is here: https://github.com/golang/go/issues/40255 Copy of part of it: 1) While 387 support isn’t a huge maintenance burden, it does take time away from performance and feature work and represents a fair amount of latent…
comment by martisch · 2021-02-16 · in Go 1.16 Release Notes -
…recognise that the biggest benefit to a bigint type is making it the default integer type. [1]: https://github.com/golang/go/issues/19623
comment by joppy · 2021-02-15 · in Python Internals Serie: Int (Long) Object -
▲ 2
Spec: Add generic programming using type parameters · Issue #43651 · Golang/gostory by fossislife · 2021-02-15 · 0 comments
-
…from multithreaded code[0] This was addressed in 2017/2018 [0], it's no longer a poor choice. [0]: https://github.com/golang/go/commit/2595fe7fb6f272f9204ca3ef...
comment by xyzzy_plugh · 2021-02-11 · in Podman: A Daemonless Container Engine