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
-
…restrictions will be removed from future Go versions. ref: * https://go101.org/generics/101.html * https://github.com/golang/go/issues/50646#issuecomment-10237... * https://github.com/golang/go/issues/51257 *…
comment by tapirl · 2022-05-15 · in Golang Diaries: Generics -
…2) The bigger issue, that interfaces cannot require their implementations to be comparable, is https://github.com/golang/go/issues/52614 and linked tickets.
comment by morelisp · 2022-05-15 · in Golang Diaries: Generics -
…work-stealing queues. These do a bit more though, as they also allow batch stealing operations. [1] https://github.com/golang/go/blob/master/src/runtime/proc.go... [2] https://tokio.rs/blog/2019-10-scheduler#a-better-run-queue
comment by binarycoffee · 2022-05-15 · in A lock-free, concurrent, generic queue in 32 bits -
…not have package level immutables that aren’t PODs. FWIW here is a proposal to expand const in Go: https://github.com/golang/go/issues/21130
comment by catlifeonmars · 2022-05-14 · in Safer Enums in Go -
▲ 1
'go mod tidy' broken in Go 1.18 using go.workstory by kbd · 2022-05-11 · 0 comments
-
…but for posterity: The real motivation was actually a performance improvement, as can be seen at https://github.com/golang/go/commit/55c458e05f35d0d5d539107d...
comment by averell · 2022-05-04 · in Go will use pdqsort in next release -
…It's been discussed for some time now but not yet available in go. It may hit 1.19 maybe... ( https://github.com/golang/go/issues/46787 )
comment by viraptor · 2022-05-02 · in I won free load testing -
▲ 1
Go Runtime: Let sysmon sleep in netpoll if possiblestory by ngaut · 2022-04-30 · 0 comments
-
…you've been following Go over the years, you'll know that there's basically _always_ open issues ( https://github.com/golang/go/issues/39063 ) in net & net/http about how Timeouts get mishandled and connections end up not being closed.…
comment by busterarm · 2022-04-29 · in Lies we tell ourselves to keep using Golang -
…mature. The replace directive seems to solve the issues with forked projects in particular. [1] 1 - https://github.com/golang/go/wiki/Modules#when-should-i-use-...
comment by p2detar · 2022-04-26 · in Effective Go -
…see this in the initialisation of the map iterator, it's even labelled with a nice little comment: https://github.com/golang/go/blob/master/src/runtime/map.go#...
comment by masklinn · 2022-04-21 · in Go will use pdqsort in next release -
Currently sort is not guaranteed to be stable. https://github.com/golang/go/blob/master/src/sort/sort.go#L4...
comment by skunkworker · 2022-04-21 · in Go will use pdqsort in next release -
▲ 433
Go will use pdqsort in next releasestory by ngaut · 2022-04-21 · 122 comments
-
…indexes are like complex numbers - people who don't need them can't imagine why anyone else does. ( https://github.com/golang/go/issues/19921 ) For me, I frequently do math on the array index. Reverse loops are necessary sometimes (I can…
comment by xscott · 2022-04-17 · in Choosing the Right Integers -
…precision in Go 2.0. But after five years of debate about “performance”, the proposal has stalled. https://github.com/golang/go/issues/19623
comment by cpeterso · 2022-04-17 · in Choosing the Right Integers -
I am saying things like this: https://github.com/golang/go/blob/master/src/cmd/cgo/ast.go#... belong in the source code, not a Why doc. No variable naming can give that context.
comment by jonahx · 2022-04-16 · in When hiring developers, have the candidate read existing code -
▲ 26
Request to remove tracking from Go websitesstory by zxwrt · 2022-04-15 · 6 comments
-
sure - https://github.com/golang/go/issues/44167 . you'll see the new design the CPU util only increases in GC CPU utilizations when you're actually allocating heavily. which makes sense you're doing more work. this should completely…
comment by jatone · 2022-04-14 · in Why Discord is switching from Go to Rust (2020) -
…or write code that assumes nothing on the heap moves and will explode if that ever changes. [1] https://github.com/golang/go/issues/46787
comment by Dylan16807 · 2022-04-13 · in When to use generics -
…Maven and Gradle. I think I use only 4 commands daily to manage dependencies in Go, it's that easy: https://github.com/golang/go/wiki/Modules#daily-workflow
comment by Thaxll · 2022-04-12 · in Get familiar with workspaces -
…a dot. There's a proposal, not yet accepted, to document this as a naming requirement for modules: https://github.com/golang/go/issues/32819 This is of course a looser requirement than "must be a domain name".)
comment by cespare · 2022-04-01 · in Go mod’s lesser known features -
…the goal of 1.18 was to get the UX down, so I'm interested to see how it improves for 1.19. [0] https://github.com/golang/go/blob/master/src/internal/fuzz/m...
comment by evmunro · 2022-03-29 · in Go Fuzz Testing -
https://en.wikipedia.org/wiki/Go!_(programming_language) There is another language called "Go!" https://github.com/golang/go/issues/9#issuecomment-66047478 Russ Cox's response was, "The naming similarity is unfortunate. However, there are…
comment by mdasen · 2022-03-27 · in Manfred Awesomic CV: Open source machine and human compatible CV standard -
…even get into Go 1.19, if the branch is successfully merged in the next one or two months. [1]: https://github.com/golang/go/issues/46229
comment by ainar-g · 2022-03-26 · in LoongArch Port Accepted into GCC -
▲ 5
Ask HN: Is there a portable encryption file format?story by binwiederhier · 2022-03-24 · 13 comments
-
▲ 7
Go 1.18 compile time may be about 18% slower than Go.17 (generics)story by ttyp3 · 2022-03-23 · 2 comments
-
…wasn't used. They fixed it in Monterey 12.2, but still hasn't backported. Heisenbug for sure. Ref: https://github.com/golang/go/issues/49233#issuecomment-96373...
comment by klauspost · 2022-03-23 · in A one in a million bug in Switch kernel -
…I find it much easier to read https://pkg.go.dev/encoding/json than the dozen or so files in https://github.com/golang/go/tree/master/src/encoding/json Perhaps I'm misunderstanding your point.
comment by maerF0x0 · 2022-03-22 · in Why Don't You Use -
…variability in the quality of responses. A "real" atoi implementation is not interview material: https://github.com/golang/go/blob/master/src/strconv/atoi.go... 3. I guess you could follow it up with questions on testing and error…
comment by nieksand · 2022-03-22 · in Five coding interview questions I hate -
…just guessing, but it's probably (surprisingly) because of e.g slow directory traversal API in Go: https://github.com/golang/go/issues/42027 . In my experience the biggest slowdown is on a mac for whatever reason. And yes, probably APFS…
comment by nasretdinov · 2022-03-21 · in “Hugo runs twice as fast in Asahi Linux than macOS on the same M1 Mac system” -
…loudflare.com/how-and-why-the-leap-second-affe... > time: use monotonic clock to measure elapsed time https://github.com/golang/go/issues/12914
comment by Gwypaas · 2022-03-21 · in Please put units in names -
…system libraries on macOS and it resulted in things breaking, so now they do use system libraries ( https://github.com/golang/go/issues/17490 ).
comment by plorkyeran · 2022-03-17 · in C Isn't a Programming Language Anymore -
▲ 7
Go 1.18 (Go with generics) no blocking issues leftstory by phplovesong · 2022-03-15 · 2 comments
-
▲ 2
Gofmt is keeping whitespaces, Go team is denying a fixstory by minroot · 2022-03-15 · 2 comments
-
…that attempts to load dynamically linked libraries on linux (and elsewhere on windows) without CGO: https://github.com/golang/go/issues/18296#issuecomment-46847...
comment by oxplot · 2022-03-11 · in Lessons Learnt Moving a GTK Application from Go to Ada -
There is https://pkg.go.dev/golang.org/x/exp/slices . See also https://github.com/golang/go/issues/45955 .
comment by tkw01536 · 2022-03-08 · in A Lodash-style Go library based on Go 1.18 Generics (map, filter, contains) -
…separating downstream quality-of-life from the language proper seems to breed chaos. Example: https://github.com/golang/go/issues/24661 Until I have an extremely Go-shaped problem, I don't need that headache.
comment by 6figurelenins · 2022-03-05 · in Go’s major versioning sucks – From a fanboy -
…gets the latest in major version series. This proposal appears to break that principal. Source: https://github.com/golang/go/issues/25518#issuecomment-39134...
comment by paskozdilar · 2022-03-04 · in Go’s major versioning sucks – From a fanboy -
…returned nil, nil. This wasn't changed in a minor release. You can browse the source history here: https://github.com/golang/go/blame/master/src/debug/pe/file....
comment by pipe_connector · 2022-03-04 · in Go’s major versioning sucks – From a fanboy -
SIV = Semantic Import Versioning [0] 0. https://github.com/golang/go/issues/44550
comment by iandinwoodie · 2022-03-04 · in Go’s major versioning sucks – From a fanboy -
…than Haskell does. Every struct is its own runtime representation. If you change the example in https://github.com/golang/go/issues/48018 to use a pointer indirection, I think it should work.
comment by lalaithion · 2022-03-01 · in How generics are implemented in Go 1.18 -
1.18 milestone still have a few issues left. https://github.com/golang/go/milestone/201
comment by didip · 2022-03-01 · in How generics are implemented in Go 1.18 -
…generics. The first release candidate came out 2 weeks ago. You can track the open issues here: https://github.com/golang/go/milestone/201
comment by aaronbee · 2022-03-01 · in How generics are implemented in Go 1.18 -
…like the full release will most likely still be in March. [1]: https://go.dev/blog/go1.18beta2 [2]: https://github.com/golang/go/issues?q=is%3Aopen+label%3Arele...
comment by belak · 2022-03-01 · in How generics are implemented in Go 1.18