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
-
…better Go language support exists. [1]: https://pkg.go.dev/github.com/go-json-experiment/json [2]: https://github.com/golang/go/issues/71497 [3]: https://github.com/golang/go/discussions/63397
comment by shabbyrobe · 2025-03-16 · in Decoding JSON sum types in Go without panicking -
…magical types for the compiler. Hence why the only thing you will see here is mostly documentation, https://github.com/golang/go/blob/master/src/unsafe/unsafe.g... Which is nothing new since the 1960's that there are systems languages with…
comment by pjmlp · 2025-03-12 · in A 10x Faster TypeScript -
It's not just system calls. E.g. reflection package uses unsafe too: https://github.com/golang/go/blob/master/src/reflect/value.g... . Many packages from Go standard library use unsafe one way or the other, so it's not fair to say that…
comment by nasretdinov · 2025-03-12 · in A 10x Faster TypeScript -
…is not obligated to provide; and (B) WasmGC does not support interior pointers, which Go requires. https://github.com/golang/go/issues/63904#issuecomment-22536...
comment by mappu · 2025-03-11 · in A 10x Faster TypeScript -
Unfortunately, OS vendors like microsoft are quite incompetent at running root stores https://github.com/golang/go/issues/65085#issuecomment-25699...
comment by arccy · 2025-03-07 · in How to distrust a CA without any certificate errors -
…claim that any aspect of the language and its standard library is perfect. The many open issues on https://github.com/golang/go attest to that. One example, if I may: the errors.As function is far from ergonomic. It would have been much…
comment by jub0bs · 2025-03-06 · in The cost of Go's panic and recover -
…trying to crack the nut. There is, as of about a month ago, even now an exploratory implementation: https://github.com/golang/go/discussions/71460 It is not an easy nut to crack. Many serious proposals have failed for good reasons. But it…
comment by 9rx · 2025-03-05 · in The cost of Go's panic and recover -
…also like how golang docs literally describe using panics as poor man's exceptions: And I like how https://github.com/golang/go/issues/26799 describes that use of panic in the original version of this bog entry from 2010: quote: However,…
comment by usrbinbash · 2025-03-04 · in The cost of Go's panic and recover -
A similar issue in Go, that I've encountered in real code: https://github.com/golang/go/issues/27505#issuecomment-71370... In a nutshell, if you want to use the death signal, which is very handy and useful, you also need to lock an OS…
comment by jerf · 2025-02-24 · in Tokio and Prctl = Nasty Bug -
AFAIK, the basic issue is still open at https://github.com/golang/go/issues/33803 and https://github.com/golang/go/issues/59715 . You still need to use a helper library like https://github.com/KimMachineGun/automemlimit or…
comment by lenkite · 2025-02-19 · in One year after switching from Java to Go -
…soon are quite low. [1] https://learn.microsoft.com/en-us/windows/win32/fileio/maxim... [2] https://github.com/golang/go/issues/69853
comment by fowl2 · 2025-02-18 · in Microsoft Go 1.24 FIPS changes -
Unfortunately Go doesn’t support exporting DWARF for WASM atm, so printf is the only option. https://github.com/golang/go/issues/33503
comment by smetannik · 2025-02-14 · in Extensible WASM Applications with Go -
How did you miss: https://github.com/golang/go/issues/71134
comment by wjfuasdf · 2025-02-14 · in Extensible WASM Applications with Go -
> I guess my question is, why is Go compelling as a source language for WASM? It's not currently: https://github.com/golang/go/issues/71134
comment by wjfuasdf · 2025-02-14 · in Extensible WASM Applications with Go -
…by volunteers, not the Go team, so timelines are dependent on availability of volunteers. [0]: https://github.com/golang/go/issues/65333#issuecomment-22336...
comment by boomskats · 2025-02-14 · in Extensible WASM Applications with Go -
…for now. Discussion thread here[0]. Might be for the best, with wasip3 just around the corner. [0]: https://github.com/golang/go/issues/66984#issuecomment-20762...
comment by boomskats · 2025-02-14 · in Extensible WASM Applications with Go -
The best part is that it wasn't even an original name within the domain of programming languages: https://github.com/golang/go/issues/9
comment by Lammy · 2025-02-12 · in DeaDBeeF: The Ultimate Music Player -
What would be an use case for `os.Root`? Based on my understanding ( https://github.com/golang/go/issues/67002 ), it is related to security. However, under the hood, it doesn't use `Chroot`, so I could imagine, that eventually someone…
comment by Hixon10 · 2025-02-12 · in Go 1.24 Is Released -
…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 -
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 -
…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 '?' -
…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 -
…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 -
…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