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
-
…slower than native speed, significantly more so than than the equivalent slowdown for c/rust. see https://github.com/golang/go/issues/65440
comment by tombl · 2025-02-11 · in We replaced our React front end with Go and WebAssembly -
There are some discussions to add optional generational regions to Go: https://github.com/golang/go/discussions/70257
comment by cyberax · 2025-02-09 · in Baffled by generational garbage collection – wingolog -
…when has that stopped go? “[]rune(someString)” is O(n) and quite inobvious The O(n) loop is here: https://github.com/golang/go/blob/215de81513286c010951624243...
comment by TheDong · 2025-02-09 · in Go Data Structures: Interfaces (2009) -
…for the steps to run and comparisons to make. Often you compare actual output with golden data. ( https://github.com/golang/go/tree/master/src/cmd/go/testdata... ) The tools have been extracted and made installable from here:…
comment by verdverm · 2025-02-08 · in Show HN: Chez Scheme txtar port from Go -
Amusingly in go 1.24 they're turning srand into a nop: https://github.com/golang/go/issues/67273
comment by __s · 2025-02-07 · in There's Math.random(), and then there's Math.random() (2015) -
https://github.com/golang/go/issues/69536?ref=words.filippo.... https://words.filippo.io/dispatches/fips-hkdf/ Thought one of the Filippo/Go/FIPS posts had a big thread but doesn't look like it and/or can't find it.
comment by pvg · 2025-02-06 · in Microsoft Go 1.24 FIPS changes -
…correct in assuming it's security theater at best, and an avenue for new backdoors at worst. [1] https://github.com/golang/go/issues/69536
comment by yalue · 2025-02-06 · in Microsoft Go 1.24 FIPS changes -
…Linux 3.0. Microsoft Go fork: https://github.com/microsoft/go Issue discussing FIPS implementation: https://github.com/golang/go/issues/69536
comment by infogulch · 2025-02-06 · in Microsoft Go 1.24 FIPS changes -
▲ 4
Go proposal: sync/v2: new packagestory by rednafi · 2025-02-06 · 0 comments
-
The mechanism was reported last year: https://github.com/golang/go/issues/66653 but not acted on.
comment by veqq · 2025-02-05 · in Go Supply Chain Attack: Malicious Package Exploits Go Module Proxy Caching -
▲ 3
Steam Freezes Go Applicationsstory by __natty__ · 2025-02-03 · 0 comments
-
▲ 5
Proposal: Sync/v2: New Packagestory by mmastrac · 2025-02-02 · 0 comments
-
▲ 1
Proposal: Sync/v2story by todsacerdoti · 2025-02-02 · 0 comments
-
…one, and it's just including this tiny "Make.dist" file that does nothing except invoke "go tool": https://github.com/golang/go/blob/master/src/Make.dist Wow. So useful. I clicked on the Rust one, and not only did it seem to be specific to…
comment by coder543 · 2025-01-31 · in A better build system for OCaml -
…Rust https://github.com/rust-lang/rust/blob/master/tests/run-make... Go https://github.com/golang/go/blob/master/src/runtime/Makefil... NodeJS https://github.com/nodejs/node/blob/main/Makefile OCaml https://github.com/ocaml/ocaml/
comment by dumah · 2025-01-31 · in A better build system for OCaml -
I created a new package for Multi-dimensional Tensor on Complex Numbers, since https://github.com/golang/go/issues/41129 and other similar attempts didn't work out. My need for such a Tensor package stems from my attempt to create this…
comment by awaw · 2025-01-31 · in Package for Multi-Dimensional Tensor on Complex Numbers -
…and now look completely natural. https://research.swtch.com/vgo-principles > type Duration int64 https://github.com/golang/go/blob/519c0a2323700934cbec97b75d... > default values https://gotipplay.golang.org/p/jS6wwznSR7F
comment by jrimbault · 2025-01-31 · in Go Is a Well-Designed Language -
…domain-oriented objects, which is nice. Edit: looks like optional chaining is a separate proposal – https://github.com/golang/go/issues/42847
comment by Swizec · 2025-01-28 · in Discussion: Reduce error handling boilerplate in Golang using '?' -
▲ 48
Discussion: Reduce error handling boilerplate in Golang using '?'story by omani · 2025-01-28 · 91 comments
-
…well enough and I frankly don't need see any benefits compared to it in this new approach. [1] https://github.com/golang/go/issues/42088
comment by gqgs · 2025-01-28 · in Go 1.24's go tool is one of the best additions to the ecosystem in years -
UPD: check this github comment. https://github.com/golang/go/issues/48429#issuecomment-26184... basically it go tool relies heavily on go module pruning, so transitive dependencies from tools are not propagated downstream. also, official…
comment by nikolayasdf123 · 2025-01-28 · in Go 1.24's go tool is one of the best additions to the ecosystem in years -
…not propagate through the dependency tree downstream due to go module pruning check this comment: https://github.com/golang/go/issues/48429#issuecomment-26184... official docs: https://tip.golang.org/doc/modules/managing-dependencies#too...…
comment by nikolayasdf123 · 2025-01-28 · in Go 1.24's go tool is one of the best additions to the ecosystem in years -
proposal is closed and accepted by Go team. [~sigh] you can still leave comments in discussion issue: https://github.com/golang/go/issues/48429
comment by nikolayasdf123 · 2025-01-28 · in Go 1.24's go tool is one of the best additions to the ecosystem in years -
For the dev progress: https://github.com/golang/go/issues/54766
comment by hencoappel · 2025-01-27 · in Maps are faster in Go 1.24 -
…the whole service. Unless you're the default `net/http` library and simply recover from the panic: https://github.com/golang/go/blob/master/src/net/http/server...
comment by flakes · 2025-01-25 · in The hidden complexity of scaling WebSockets -
The difference between compiled code vs the code you wrote makes behaviours non-obvious. https://github.com/golang/go/issues/69887
comment by arccy · 2025-01-24 · in Alibaba, Datadog, and Quesma Join Forces on Go Compile-Time Instrumentation -
▲ 5
Golang proposal: reduce error handling boilerplate using?story by birdculture · 2025-01-14 · 1 comment
-
▲ 2
Ask HN: When would you fork instead of waiting for proposal/PR acceptance?story by flashgordon · 2025-01-13 · 0 comments
-
…from virtual memory in order to make any future accesses an error instead of a use-after-free bug. https://github.com/golang/go/issues/51317
comment by HALtheWise · 2025-01-11 · in Using black magic to make a fast circular buffer (2017) -
…know about it. Here is a relevant line from Go, even with a comment that it's about overflow: https://github.com/golang/go/blob/19e9231/src/sort/search.go...
comment by kunley · 2025-01-11 · in Nearly all binary searches and mergesorts are broken (2006) -
…101.org/blog/2024-03-01-for-loop-semantic-changes-... (It is long. A short important summary is here: https://github.com/golang/go/issues/66156 ) Currently (Go 1.24), the official team has not published a tool to identify all of the…
comment by tapirl · 2025-01-03 · in Go Upgrade Checklist -
…breaks, and I can only remember one regression caused by a breaking change in a library[1]. [1] https://github.com/golang/go/issues/24211
comment by physicles · 2025-01-02 · in Go Upgrade Checklist -
I fixed a single word typo in a doc string in github.com/golang/go, resulted in a CONTRIBUTORS entry and a endless torrent of spam from "headhunters".
comment by 0points · 2024-12-24 · in Open source maintainers are drowning in junk bug reports written by AI -
…an error, Go will just let you ignore it. This is a big issue with treating errors as values. https://github.com/golang/go/issues/20803
comment by Capricorn2481 · 2024-12-19 · in Idiomatic Errors in Clojure -
▲ 3
Go proposal: finite type set interface as union typestory by bheadmaster · 2024-12-10 · 0 comments
-
…concurrent GCs are hard. For interfaces, the Go team chose one of a number of possible solutions: https://github.com/golang/go/issues/8405 If the language were to add support for union types, these tradeoffs could potentially be revisited.…
comment by foldr · 2024-12-09 · in Good union types in Go would probably need types without a zero value -
…"tls: unknown certificate authority")): // handle unexported go stdlib error, XXX fix after https://github.com/golang/go/issues/35234 default: panic(fmt.Sprintf("unhandled error type: %v: %T", err, err)) } Like, for being a statically…
comment by TheDong · 2024-12-09 · in Good union types in Go would probably need types without a zero value -
…memory safe. However, once you start using goroutines there can be memory corruption and segfaults: https://github.com/golang/go/issues/37484 . Note that these are not recoverable panics (such as "writing to a close channel"), but causes…
comment by judofyr · 2024-12-07 · in Weak pointers in Go: why they matter now -
…As for first entry, this has been discussed many times without ever reaching any consensus, see - https://github.com/golang/go/issues/19412
comment by melodyogonna · 2024-12-07 · in Union types ('enum types') would be complicated in Go -
…[1] https://github.com/jfhamlin/muscrat [2] https://pkg.go.dev/plugin [3] https://github.com/golang/go/issues/19282 [4] https://github.com/glojurelang/glojure/tree/808165fdc7e65672...
comment by jfhamlin · 2024-12-04 · in Glojure: Clojure interpreter hosted on Go, with extensible interop support -
https://tpaschalis.me/goroutines-size/ https://github.com/golang/go/blob/master/src/runtime/stack.g...
comment by liveoneggs · 2024-11-29 · in How much memory do you need in 2024 to run 1M concurrent tasks? -
…falls over if you breathe on it ( https://pkolaczk.github.io/overhead-of-optional/ ). According to https://github.com/golang/go/discussions/70257#discussioncom... > the weak generational hypothesis does not hold up well with respect to…
comment by masklinn · 2024-11-24 · in Mark–Scavenge: Waiting for Trash to Take Itself Out -
…not to benefit when a significant fraction of the newborn objects don't even reach the youngen. See https://github.com/golang/go/discussions/70257#discussioncom... from the current discussion of adding opt-in ad-hoc support for memory…
comment by masklinn · 2024-11-24 · in Mark–Scavenge: Waiting for Trash to Take Itself Out -
To be fair to those projects, the type was introduced only three years ago: https://github.com/golang/go/pull/49359/files Before that, doing a string compare was basically the only way to detect that specific error. That was definitely an…
comment by gwd · 2024-11-21 · in Hyrum’s Law in Golang -
But it looks like that until 3 years ago, this string comparison was the only way to do it. https://github.com/golang/go/pull/49359/files
comment by sssddfffdssasdf · 2024-11-21 · in Hyrum’s Law in Golang -
There is actually a proposal to make type constraints act as sum types: https://github.com/golang/go/issues/57644 But I doubt sum types will be supported perfectly in Go. The current poor-men's sum type mechanism (type-switch syntax) might…
comment by tapirl · 2024-11-17 · in Constraints in Go -
…more limitations in current Go custom generics, much of them could be removed when this proposal ( https://github.com/golang/go/issues/70128 ) is done. I recommend people to read Go Generics 101 ( https://go101.org/generics/101.html ,…
comment by tapirl · 2024-11-17 · in Constraints in Go -
…for sure. Go core team have admitted this but refused to fix it for Go 1.22.n toolchains: https://github.com/golang/go/issues/66092 And, even for the Go code with go.mod involved, there are some behavior change cases which will be not…
comment by tapirl · 2024-11-12 · in Go Turns 15 -
Tried to contribute to a Go project a few months ago and got bitten by https://github.com/golang/go/issues/67296 due to questionable doc quality. I was pretty disappointed to find that natural sort isn't builtin since Go was the Unicode…
comment by a-french-anon · 2024-11-12 · in Go Turns 15 -
…to the 3-clause "for;;" loops: * https://go101.org/blog/2024-03-01-for-loop-semantic-changes-... * https://github.com/golang/go/issues/66156 * https://x.com/zigo_101/status/1856173025839960333 * https://x.com/zigo_101/status/185491826252362…
comment by tapirl · 2024-11-12 · in Go Turns 15