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
-
Bug #3 (The race) was silently introduced by a semantic change in Go's database/sql in January 2018: https://github.com/golang/go/commit/651ddbdb5056ded455f47f9c... It took until December of the same year until we got the first bug report…
comment by JulienSchmidt · 2020-05-21 · in Three bugs in the Go MySQL driver -
This as well, a recently fix for this scenario https://github.com/golang/go/issues/34775
comment by todotask · 2020-05-21 · in Three bugs in the Go MySQL driver -
…touches UI to UI thread. Which is the same thing you must do in C# (or any other language). See https://github.com/golang/go/wiki/LockOSThread
comment by kjksf · 2020-05-19 · in What Color Is Your Function? (2015) -
On Linux it has avoided libc for nsswitch in the common case since 2015: https://github.com/golang/go/issues/10485 Golang has only very recently (in its lifetime) and grudgingly admitted that operating systems that provide ABI stability at…
comment by loeg · 2020-05-05 · in Why does musl make my Rust code so slow? -
…to be disabled and a subset of NSS will be implemented in Go. Native NSS modules will not work. [1] https://github.com/golang/go/issues/24083
comment by alecthomas · 2020-05-03 · in Making Rust as Fast as Go -
…allow mutex free communication between goroutines without a pain. Channels are not lock free: https://github.com/golang/go/issues/8899
comment by 2StepsOutOfLine · 2020-05-02 · in Building a patient monitoring system with Go and Vue in 3 days -
Not a large forest, https://github.com/golang/go/wiki/GoUsers , but it expands fastly.
comment by tapirl · 2020-05-01 · in Rob Pike interview -
…https://news.ycombinator.com/item?id=2535206 [3]: https://news.ycombinator.com/item?id=2535386 [4]: https://github.com/golang/go/issues/29147 [5]: https://github.com/ziutek/emgo [6]: https://github.com/tinygo-org/tinygo [7]:…
comment by cletus · 2020-04-30 · in Rob Pike interview -
…and Go's former inability to preemptively schedule tightly written loops? (Solved along the way: https://github.com/golang/go/issues/10958 ) Or something else?
comment by jeremyw · 2020-04-17 · in Gleam: A statically typed language for the Erlang VM -
…https://nerves-project.org - Golang: + https://github.com/tinygo-org/tinygo + https://gobot.io/ + https://github.com/golang/go/wiki/GoArm - Rust I suppose you can just directly compile for any SoC like the RPi.
comment by pdimitar · 2020-04-09 · in The JavaScript Black Hole: A playbook for ethical engineering on the web -
…its way to it). This is for instance Go's implementation which is readable and well documented: https://github.com/golang/go/blob/master/src/cmd/compile/int...
comment by giovannibajo1 · 2020-04-07 · in Synthesizing Optimal 8051 Code -
…would have to add support for this, but it would be a pretty elegant solution to the problem. [0]: https://github.com/golang/go/issues/37724
comment by jniedrauer · 2020-03-14 · in Git partial clone lets you fetch only the large file you need -
Go doesn't use a generated parser. Both the parser and the lexer are hand-written: https://github.com/golang/go/blob/master/src/go/parser/parse... https://github.com/golang/go/blob/master/src/go/scanner/scan... Why did you think it was…
comment by atombender · 2020-03-05 · in Why not to use (f)lex, yacc or bison -
It has already caused several issues in golang, and this is an example: https://github.com/golang/go/issues/16474
comment by apta · 2020-03-04 · in Is Go Duck-Typed? -
…of the local scope). Not to mention interfaces are badly designed, leading to issues like this: https://github.com/golang/go/issues/16474
comment by apta · 2020-02-28 · in I Want Off Mr. Golang's Wild Ride -
…interface design also encourages hacks (which lead to difficult to track down bugs) like this: https://github.com/golang/go/issues/16474
comment by apta · 2020-02-28 · in I Want Off Mr. Golang's Wild Ride -
…broken assumptions, I know this particular one was discovered independently by many people: https://github.com/golang/go/blob/71ab9fa312f8266379dbb358b9... https://marcan.st/2017/12/debugging-an-evil-go-runtime-bug/
comment by rhinoceraptor · 2020-02-28 · in I Want Off Mr. Golang's Wild Ride -
…stems from a file whose contents are: // This file is intentionally empty. // It's a workaround for https://github.com/golang/go/issues/15006 I about fell out of my chair. Pure gold.
comment by gavinray · 2020-02-28 · in I Want Off Mr. Golang's Wild Ride -
For others following along - this is https://github.com/golang/go/issues/5901 to register custom marshallers on an existing `json.Encoder` instance. I feel like it's generally possible to work around this by creating a wrapper struct with…
comment by mappu · 2020-02-26 · in Go 1.14 release notes -
Ok, we've changed to that URL from https://github.com/golang/go/releases/tag/go1.14 . Thanks!
comment by dang · 2020-02-25 · in Go 1.14 release notes -
…times are still much longer than what they were pre-1.5 when the compiler was written in C. [1] https://github.com/golang/go/issues/6853
comment by calcifer · 2020-02-25 · in Fuchsia Programming Language Policy -
There's a huge discussion here, if you're interested: https://github.com/golang/go/issues/19814 TBH I thought adding enums was a cut and dried case until reading through some opposing opinions. Now I'm not so sure.
comment by 0xFACEFEED · 2020-02-23 · in The Zen of Go -
…Go mobile[2]. [0] - https://ionicframework.com [1] - https://capacitor.ionicframework.com [2] - https://github.com/golang/go/wiki/Mobile
comment by ricoberger · 2020-02-23 · in Show HN: Kubenav – An open source mobile app to manage Kubernetes cluster -
You get problems like this, which you don't get in traditional OO languages: https://github.com/golang/go/issues/16474
comment by apta · 2020-02-23 · in The Zen of Go -
…some of their design decisions are objectively bad, and go against their claim in the first place: https://github.com/golang/go/issues/16474
comment by apta · 2020-02-23 · in The Zen of Go -
Also related: https://github.com/golang/go/issues/36177#issuecomment-56767...
comment by mseepgood · 2020-02-19 · in Generics in Go with Ian Lance Taylor (2019) -
Seems like this has been merged: https://github.com/golang/go/issues/35112 https://github.com/golang/proposal/blob/master/design/35112-...
comment by hrgiger · 2020-02-11 · in Distributed cache and K/V store in Go. Embeddable or independent service -
…-ldflags '-extldflags "-fno-PIC -static"' -buildmode pie -tags 'osusergo netgo static_build' See https://github.com/golang/go/issues/26492
comment by zegl · 2020-02-11 · in I Was Wrong about Nix -
…ub.docker.com/_/scratch/?tab=description [2]: https://github.com/GoogleContainerTools/distroless [3]: https://github.com/golang/go/commit/62f0127d8104d8266d9a3fb5... [4]: https://d7y.io/en-us/docs/userguide/download_files.html
comment by hardwaresofton · 2020-02-11 · in I Was Wrong about Nix -
…go. They maintain one compiler and two front ends: llvm: https://go.googlesource.com/gollvm/ gcc: https://github.com/golang/gofrontend Go: https://github.com/golang/go/tree/master/src/cmd/compile And I believe all three are maintained by…
comment by kyrra · 2020-02-09 · in Flang: The Fortran frontend of LLVM [video] -
…doesn't make that much of a difference. See this commit for actual benchmarks about the impact: https://github.com/golang/go/commit/3be4d95731a17073afb1f69b...
comment by TheNorthman · 2020-02-07 · in Python dicts are now ordered -
In case anyone else is curious: https://github.com/golang/go/issues/6719
comment by ivanfon · 2020-02-07 · in Python dicts are now ordered -
Why /does/ it run a GC every 2 minutes? I went looking and didnd't find a reason in the code... https://github.com/golang/go/search?q=forcegcperiod&unscoped... Go's GC seems kind of primitive.
comment by fmakunbound · 2020-02-04 · in Why Discord is switching from Go to Rust -
https://github.com/golang/go/blob/e6ebbe0d20fe877b111cf4ccf8... Ouch, Go never ceases to amaze. The Bitbucket case[0] is even more crazy, calling out to the Bitbucket API to figure out which VCS to use. It has a special case for private…
comment by Nullabillity · 2020-02-04 · in Why Discord is switching from Go to Rust -
…replacing string keys with fixed size byte arrays. Curious if you experimented this approach? [0] https://github.com/golang/go/issues/9477 [1] https://go-review.googlesource.com/c/go/+/3288
comment by rvcdbn · 2020-02-04 · in Why Discord is switching from Go to Rust -
…best I've seen against try. (apologies for indentation change - not sure why hn can't preserve it) https://github.com/golang/go/issues/32437#issuecomment-49893... ________________________________________________________________ I actually…
comment by pleasenotry · 2020-01-29 · in Proposals for Go 1.15 -
…you can't guarantee clients will be able to use ECC. See this issue (from my initial link): https://github.com/golang/go/issues/20058
comment by grammarxcore · 2020-01-29 · in Proposals for Go 1.15 -
All of the Go commits are public, you can look at them for yourself: • https://github.com/golang/go/graphs/contributors • https://github.com/golang/build/graphs/contributors Brad also once gave a lightning talk about HTTP/2 that had 80+…
comment by shurcooL · 2020-01-28 · in An Update on Bradfitz: Leaving Google -
…it obscures stack traces so that it's impossible to use them to locate panic in decorated handler: https://github.com/golang/go/issues/27375
comment by telendt · 2020-01-26 · in Make resilient Go servers using timeouts, deadlines and context cancellation -
Looks like Go v2 might get decimal floating point numbers support: https://github.com/golang/go/issues/19787
comment by gdm85 · 2020-01-25 · in Using floating-point numbers for money -
…file? It's meant to be used for exactly this purpose and the wiki uses the fork example as well: https://github.com/golang/go/wiki/Modules#when-should-i-use-...
comment by PhilippGille · 2020-01-22 · in Go's Tooling Is an Undervalued Technology -
https://github.com/golang/go/compare/master...kstenerud:mast... > this commit will not go into mainline go Truly unfortunate. I don't write Go, but so often I comment out large swaths of code for debugging purposes and get warnings for…
comment by jakear · 2020-01-22 · in Go's Tooling Is an Undervalued Technology -
This workflow works fine for me: https://github.com/golang/go/wiki/Ubuntu
comment by AlexCoventry · 2020-01-22 · in Go's Tooling Is an Undervalued Technology -
…attempts to reduce the repetitive `if err != nil { ... }` through some abstraction failed. Look at https://github.com/golang/go/issues/32825
comment by mfateev · 2020-01-11 · in Goodbye, Clean Code -
Indeed! Even the Go wiki advocates exactly what you're saying about looking at the tradeoffs: https://github.com/golang/go/wiki/MutexOrChannel
comment by shabbyrobe · 2020-01-07 · in Go Things I Love: Channels and Goroutines -
…be addressed in Go 1.14 (although it's been marked as Backlog since I last looked at that issue). https://github.com/golang/go/issues/32492 Point being Go, like OP of this thread suggests, has some issues. This is, to me, a critical flaw…
comment by grammarxcore · 2020-01-06 · in Always Review Your Dependencies, AGPL Edition -
…been made (see links in the thread), it's not a global fix and Go ciphers can be absysmally slow. https://github.com/golang/go/issues/20058 The recommended fix is to use a library like this one. However, that means your containers blow up…
comment by grammarxcore · 2020-01-06 · in Always Review Your Dependencies, AGPL Edition