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
-
…a big GC rework, part of which required fields not contain possibly-pointer-possibly-other-values. https://github.com/golang/go/issues/8405 Obviously this made people unhappy, so it kicked off several rounds of optimizations to claw back…
comment by morelisp · 2022-01-26 · in Go is about to get faster -
…cool water and slowly brought to a boil, he will remain there until he is cooked through." [1]: https://github.com/golang/go/discussions/47203#discussioncom... [2]: https://www.python.org/dev/peps/pep-0572/#abstract
comment by Mawr · 2022-01-25 · in In defense of complicated programming languages -
…disagree with that viewpoint too, which is fair enough, but it's really quite a different one. [1]: https://github.com/golang/go/issues/15292
comment by Beltalowda · 2022-01-23 · in Go is about to get faster -
…to the same object in a file system. --- Golang also seems vulnerable to the same issue https://github.com/golang/go/blob/d15481b8c7f5f73a8b987a0c1d... Line 78 checks that the path isn't a symlink (time-of-check). Then line 97 calls…
comment by howdydoo · 2022-01-21 · in Security vulnerability in Rust standard library -
Weird to not see any references to https://github.com/golang/go/issues/48409 / https://github.com/golang/proposal/blob/master/design/48409-... There's been a lot of back-and-forth on how to improve the tuning situation in go. See…
comment by vvern · 2022-01-12 · in Large-scale, semi-automated Go GC tuning -
…their library, it might be a good solution until Go itself has better GC management. [1] https://github.com/golang/go/issues/5049 [2] https://github.com/golang/go/issues/16843 [3] https://github.com/golang/go/issues/29696 [4]…
comment by atombender · 2022-01-12 · in Large-scale, semi-automated Go GC tuning -
https://github.com/golang/go/issues/44840
comment by icholy · 2022-01-10 · in Saving a Third of Our Memory by Re-Ordering Go Struct Fields (2020) -
…the order in the source code. So, currently, there is no way to force memory layout, other than, as https://github.com/golang/go/issues/10014#issuecomment-26346... says “defining the type using [n]byte and modifying the fields using the…
comment by Someone · 2022-01-10 · in Saving a Third of Our Memory by Re-Ordering Go Struct Fields (2020) -
Why Go doesn't do this by default: https://github.com/golang/go/issues/10014#issuecomment-91436... > It seems fine to me for the spec not to guarantee anything about struct field order in memory. The spec doesn't operate at that level. >…
comment by ferdowsi · 2022-01-10 · in Saving a Third of Our Memory by Re-Ordering Go Struct Fields (2020) -
…leaked even into the kernel-space configuration where it would do more straightforward damage. [1] https://github.com/golang/go/issues/20427#issuecomment-36001... [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
comment by mananaysiempre · 2022-01-04 · in C Runtime Overhead (2015) -
…post at [0], fix at [1]). [0]: https://marcan.st/2017/12/debugging-an-evil-go-runtime-bug/ [1]: https://github.com/golang/go/commit/a158382b1c9c0b95a7d41865...
comment by aw1621107 · 2022-01-03 · in C Runtime Overhead (2015) -
…it actually used enough stack to overflow. Without a guard page, that caused memory corruption. [1] https://github.com/golang/go/issues/20427
comment by scottlamb · 2022-01-03 · in C Runtime Overhead (2015) -
…behind the newest release to never be forced to do a major version update under time pressure. [0]: https://github.com/golang/go/wiki/MinorReleases
comment by cube2222 · 2022-01-01 · in Go Fuzzing -
…of things that some languages (in this case Go) may parse differently than some web proxies: https://github.com/golang/go/issues/25192#issuecomment-80625... And a more overall argument that putting this "vulnerability" on the language…
comment by ploxiln · 2021-12-26 · in I found (and fixed) a vulnerability in Python -
…languages, and should be used at the absolute minimum, or even omitted from a language entirely. https://github.com/golang/go/issues/45955#issuecomment-83235...
comment by svnpenn · 2021-12-23 · in Three Minor Features in Go 1.18 -
…real heap-allocated closure invocation on each loop. I think this is no longer true in Go 1.18, see https://github.com/golang/go/issues/14768#issuecomment-98175... .
comment by felixge · 2021-12-22 · in Generics facilitators in Go -
Yes, after some discussion and minor modifications (and removal of a few features): https://github.com/golang/go/discussions/47323 ... I understand the motivation for this new package, but it does seem like a large API surface to have…
comment by benhoyt · 2021-12-22 · in Three Minor Features in Go 1.18 -
There's a proposal for the Go 2 draft that addresses this: https://github.com/golang/go/issues/20803 https://go.googlesource.com/proposal/+/master/design/go2draf...
comment by geoka9 · 2021-12-17 · in Trying Out Generics in Go -
…reason is simple and compelling: It's too much to do all at once, and we might get it wrong." [0]: https://github.com/golang/go/issues/48918
comment by mfrw · 2021-12-15 · in Go 1.18 Beta 1 is available, with generics -
To be fair to the GP poster, they may have been making a joke[1]. [1] https://github.com/golang/go/issues/9#issue-51275878
comment by nimih · 2021-12-09 · in Gopher – A 280B parameter language model -
…compiler code itself is well documented, and Go's code navigation tooling itself helps learning. https://github.com/golang/go/tree/master/src/cmd/compile
comment by ferdowsi · 2021-12-08 · in Hacking the Go compiler to add a new keyword -
The Go compiler is about as straightforward as it can get. Just read the source: https://github.com/golang/go
comment by melony · 2021-12-08 · in Hacking the Go compiler to add a new keyword -
…later, which can be installed manually from the website, or installed via apt with a custom PPA ( https://github.com/golang/go/wiki/Ubuntu ) Thanks! I was about to give up PD: Couldn't install it either with the new binaries: "package…
comment by juanse · 2021-12-05 · in Widdler is a single binary that serves up TiddlyWikis -
…later, which can be installed manually from the website, or installed via apt with a custom PPA ( https://github.com/golang/go/wiki/Ubuntu )
comment by bogwog · 2021-12-05 · in Widdler is a single binary that serves up TiddlyWikis -
There used to be one, but they took it out. https://github.com/golang/go/issues/28152
comment by pjmlp · 2021-11-25 · in Faster software through register based calling -
…interfaces should never be used until there is a clear need. CodeReviewComments covers the basics: https://github.com/golang/go/wiki/CodeReviewComments#interfa... I wrote an insanely long rant about this with thorough examples using the…
comment by jrockway · 2021-11-23 · in Back to basics: Writing an application using Go and PostgreSQL -
i think the parent was referring to https://github.com/golang/go/issues/45970
comment by malaya_zemlya · 2021-11-22 · in Rust Moderation Team Resigns -
…any case, it seems like an issue was opened proposing something like that a couple of years ago ( https://github.com/golang/go/issues/23027 ), and Russ Cox responded that the JSON package is basically done, but you could either fork it and…
comment by benhoyt · 2021-11-17 · in Improving the code from the official Go RESTful API tutorial -
There is also a gem inside from rsc: https://github.com/golang/go/issues/49569#issuecomment-96898... That's quality thinking!
comment by jhoechtl · 2021-11-16 · in Go 1.18 compile time may be about 18% slower than Go.17 -
…exhaustive type switches would bring Go something close to the sum types of Rust and Swift. [0]: https://github.com/golang/go/issues/45346
comment by ibraheemdev · 2021-11-15 · in A rough proposal for sum types in Go (2018) -
…are endless! They are a set of limited yet unvalidated translation DSLs stuffed into a string. https://github.com/golang/go/search?p=4&q=struct+tags&type=i... Personally I think the language would be better without them, but it's too late…
comment by grey-area · 2021-11-10 · in Twelve Years of Go -
…be less clumsy once it arrives, but I strongly believe it is best to take it slow for now." [0] https://github.com/golang/go/issues/48918
comment by kgeist · 2021-11-09 · in Upcoming Features in Go 1.18 -
https://github.com/golang/go/issues/32437
comment by morelisp · 2021-11-09 · in Upcoming Features in Go 1.18 -
…| grep fork vfork() = 15 edit 2: here's a similar tale from go, replacing use of fork in fork/exec: https://github.com/golang/go/issues/5838 https://go-review.googlesource.com/c/go/+/37439/ https://about.gitlab.com/blog/2018/01/23/how-a-fix…
comment by shoo · 2021-11-06 · in In C, how do you know if the dynamic allocation succeeded? -
This issue has been raised before, such as at https://github.com/golang/go/issues/20209 (I was reminded of that by https://twitter.com/peter_szilagyi/status/145515080347229798... ). There is some other interesting discussion there.
comment by sqs · 2021-11-01 · in ‘Trojan Source’ Bug Threatens the Security of All Code -
…but never canceled. At least, that seems to be the behavior I see in the implementation here: https://github.com/golang/go/blob/master/src/context/context... So in this case, errgroup probably doesn't have a choice and needs to call…
comment by reltuk · 2021-10-29 · in Error handling with errgroups -
…many cases it is possible to write code that does what generics would enable, if less smoothly. [1] https://github.com/golang/go/commit/dd64f86e0874804d0ec5b713...
comment by tcard · 2021-10-28 · in Expectations for generics in Go 1.18 -
The hybrid approach is absolutely implemented: https://github.com/golang/go/blob/master/src/cmd/compile/int...
comment by mseepgood · 2021-10-28 · in Expectations for generics in Go 1.18 -
…to the proposals for shorter Go error handling The community didn't like it and it was declined: https://github.com/golang/go/issues/32437#issuecomment-51203...
comment by mseepgood · 2021-10-28 · in Expectations for generics in Go 1.18 -
Related discussion from 10 days ago: go: don't change the libraries in 1.18 https://github.com/golang/go/issues/48918 https://news.ycombinator.com/item?id=28895440
comment by oefrha · 2021-10-28 · in Expectations for generics in Go 1.18 -
…your machine should still remain uncompromised. They release CVEs for any issues here (such as https://github.com/golang/go/issues/29231 ). Of course, if you run the code you compiled, that is unsafe, but just compiling it is supposed to…
comment by TheDong · 2021-10-27 · in Go 1.18 will embed source version information into binaries -
update: they missed implementing this and now go1.17 will be required to bootstrap go1.19+. https://github.com/golang/go/issues/44505#issuecomment-94259...
comment by vvern · 2021-10-27 · in Go 1.18 will embed source version information into binaries -
…go1.4 up to 1.17 need to be built with 1.4. From 1.18 on, they need to be built with 1.16. See https://github.com/golang/go/issues/44505 .
comment by vvern · 2021-10-27 · in Go 1.18 will embed source version information into binaries -
…one of the authors of TLS 1.3. He has refused to allow for configuration of TLS 1.3 ciphers in Go: https://github.com/golang/go/issues/29349 Thanks to this decision: if a particular cipher is found to be weak or vulnerable, people using Go…
comment by KennyBlanken · 2021-10-24 · in Google had a plan called “Project NERA” to turn the web into a walled garden -
…would break backward compat. So there is basically an unfixable bug sitting in go html templates. https://github.com/golang/go/issues/9200
comment by shp0ngle · 2021-10-17 · in Go: Don't Change the Libraries in 1.18 -
…other perf ideas from LuaJIT) - The stop-the-world implementation is influenced by Go's design ( https://github.com/golang/go/blob/fad4a16fd43f6a72b6917eff65... )"
comment by typical182 · 2021-10-15 · in A viable solution for Python concurrency -
…as a major problem[1][2]. [1] https://go.googlesource.com/proposal/+/master/design/go2draf... [2] https://github.com/golang/go/issues/32437#issuecomment-51203...
comment by unscaled · 2021-10-04 · in Things Go needs more than generics -
…code. So you get zero readability gains at the price of two significant readability losses. --- [1] https://github.com/golang/go/issues/40432 [2] https://go.googlesource.com/proposal/+/master/design/go2draf... [3]…
comment by unscaled · 2021-10-04 · in Things Go needs more than generics -
…that can be a nice evolution. [1] https://github.com/romshark/Go-1-2-Proposal---Immutability [2] https://github.com/golang/go/issues/27975
comment by jicea · 2021-10-04 · in Things Go needs more than generics -
…it didn't know, but that caused issues on musl-based systems which used a different mechanism ( https://github.com/golang/go/issues/35305 ). And it cannot ever be fully static on glibc-based systems, since there's always the chance of…
comment by cesarb · 2021-10-03 · in “Static Linking Considered Harmful” Considered Harmful