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
-
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 -
…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 -
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 -
…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 -
…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 -
…Go from earlier versions written in C - but in fact the bootstrapping process may change soon, see https://github.com/golang/go/issues/44505
comment by Jabbles · 2022-02-27 · in Don't Write a Programming Language -
Clearly nobody ever manages to use this Go thing with over 700: https://github.com/golang/go/issues . Or .net, over 5000 issues for the compiler alone: https://github.com/dotnet/roslyn . I'd guess stuff like Java, glibc would be similar if…
comment by Macha · 2022-02-26 · in Announcing Actix Web v4.0 -
In case you miss it, the link to found bug list: https://github.com/golang/go/wiki/Fuzzing-trophy-case
comment by fulafel · 2022-02-18 · in Internals of Go's new fuzzing system -
Here you go: https://github.com/golang/go/issues/26520
comment by heavyset_go · 2022-02-18 · in Go 1.18 RC1 is out -
See this issue: https://github.com/golang/go/issues/26520
comment by heavyset_go · 2022-02-18 · in Go 1.18 RC1 is out -
…and arrays, which is important but too high of a bar for a simple, safe in-place filter. [0]: https://github.com/golang/go/wiki/SliceTricks#additional-tri...
comment by akshayshah · 2022-02-17 · in Go 1.18 RC1 is out -
Here is what I wrote in 2020: https://github.com/golang/go/issues/37862#issuecomment-60181... They closed the issue and asked to write it again while ignoring the concerns. In general, I think a few of us are disappointed. It felt like…
comment by cientifico · 2022-02-16 · in Godocs.io One Year Later -
…as recommended by Go team but no dice[1]. There are others who have complained the same on SO. [1] https://github.com/golang/go/issues/41310
comment by Abishek_Muthian · 2022-02-16 · in LibreOffice running natively in the browser via WebAssembly -
…question was regarding it's implementation using other languages and general experience of it. [1] https://github.com/golang/go/issues/28631
comment by Abishek_Muthian · 2022-02-16 · in LibreOffice running natively in the browser via WebAssembly -
…guy and then pissing on ten years of his work with a go fuck yourself in the form of this commit. https://github.com/golang/go/issues/9
comment by throwawaygjdbsj · 2022-02-14 · in The Go language's first commit (1972) -
…@-things and confuse that for "documentation". Writing one or two paragraphs is often clearer. [1]: https://github.com/golang/go/discussions/48305
comment by Beltalowda · 2022-02-13 · in Go Annoyances -
…curious, here are the links to the source code for the functions referenced in the article: * GC: https://github.com/golang/go/blob/go1.16/src/runtime/mgc.go#... * gcWaitOnMark: https://github.com/golang/go/blob/go1.16/src/runtime/mgc.go#..…
comment by throwaway894345 · 2022-02-07 · in Dumpster diving the Go garbage collector -
Two Go 2 proposals that interested me were: * nillability annotations: https://github.com/golang/go/issues/49202 * Change int from a machine word size (int32 or int64) to arbitrary precision (bigint): https://github.com/golang/go/issues/196…
comment by cpeterso · 2022-02-04 · in What I'd like to see in Go 2.0 -
…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 · 2022-02-04 · in What I'd like to see in Go 2.0 -
…also dislike many things from Go, and I want "enums" badly too, but that's for another comment. [0] https://github.com/golang/go/issues/28987#issuecomment-49679...
comment by slx26 · 2022-02-04 · in What I'd like to see in Go 2.0 -
…operation case <-time.After(5*time.Second): return fmt.Errorf("timeout") } } Which goes along w/ https://github.com/golang/go/wiki/CodeReviewComments#indent-... of "Indent error flow". edit: nvm, your break would be blocked until one of…
comment by schrodinger · 2022-02-04 · in What I'd like to see in Go 2.0 -
…to run the interpreter. Moreover, thus far, a DFA matcher is out of a picture, as discussed here: https://github.com/golang/go/issues/11646 .
comment by smasher164 · 2022-02-04 · in Go performance from version 1.2 to 1.18