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
-
…non-ELF standard parameters for initialization of supposedly "C ABI" libraries, open since 2015. https://github.com/golang/go/issues/13492 The Go project specifically acknowledging the glibc-isms here: "All Linux first class ports are for…
comment by jgowdy · 2024-08-02 · in Russ Cox is stepping down as the Go tech lead -
…who pays the majority of the people working on it? Google? Checking the 20 top contributors from https://github.com/golang/go/graphs/contributors Google: 10 Unclear: 7 Tailscale: 1 Canopy Climate: 1 Isovalent: 1 Just checking the GitHub…
comment by diggan · 2024-08-02 · in Russ Cox is stepping down as the Go tech lead -
I hate to drag Go into this but I can't help but compare what happened here to the attitude here: https://github.com/golang/go/discussions/55092 My initial impression was that this is boiling the ocean but there's substantial foresight. If…
comment by xyzzy_plugh · 2024-08-01 · in Rust Just Failed an Important Test -
…with C interop. There had been an issue for having something similar in the language itself - https://github.com/golang/go/issues/42469 , but the Golang compiler team rejected it. If you have followed similar discussions around this with…
comment by yutijke · 2024-07-31 · in Rustgo: Calling Rust from Go with near-zero overhead (2017) -
…the reason they don’t exist in C#. It’s also one of the reasons GO doesn’t have extension methods. https://github.com/golang/go/issues/37742#issuecomment-59616... You either have to exclude extension methods from implicit interface…
comment by swisniewski · 2024-07-26 · in C# almost has implicit interfaces -
…that all Go code looks about the same. That’s simply not true for code with custom iteration. [0] https://github.com/golang/go/discussions/56413
comment by bheadmaster · 2024-07-14 · in Go range iterators demystified -
Here's the tracking issue for Go if you're interested: https://github.com/golang/go/issues/67520 I wouldn't be holding my breath though - proper support of high-level portable SIMD abstraction requires quite a lot of compiler complexity…
comment by neonsunset · 2024-07-13 · in Summing ASCII encoded integers on Haswell at almost the speed of memcpy -
…performance is a Go problem rather than a WebAssembly problem. See this issue for more info: https://github.com/golang/go/issues/28631
comment by tslocum · 2024-07-03 · in The first 10k games at bgammon.org, an open source online backgammon service -
…platform. When running as a native Android app, all of the device's CPU cores are utilized. 0. https://github.com/golang/go/issues/28631
comment by tslocum · 2024-07-03 · in The first 10k games at bgammon.org, an open source online backgammon service -
see for yourself https://github.com/golang/go/commits/master/src/crypto
comment by 38 · 2024-06-29 · in The XAES-256-GCM extended-nonce AEAD -
▲ 2
Russ Cox is writing an LLM based bot to help in the Go Issue Trackerstory by bashtoni · 2024-06-28 · 0 comments
-
▲ 27
Pad jumps to avoid Intel erratum (2019)story by userbinator · 2024-06-25 · 0 comments
-
…the HTTP server can't implement range requests. Interesting comment by Russ Cox about this: https://github.com/golang/go/issues/61791#issuecomment-16719...
comment by agwa · 2024-06-25 · in MIME, RSS, and Existential Torment -
…that prevents them from using `bufio.Peek` though. [1]: Link to the use of Seek, for reference: https://github.com/golang/go/lob/e8ee1dc4f9e2632ba1018610d1a...
comment by quectophoton · 2024-06-24 · in Interface Upgrades in Go (2014) -
https://github.com/golang/go/issues/61901 https://github.com/golang/go/issues/61902 https://github.com/golang/go/issues/61900 https://github.com/golang/go/issues/61899 https://github.com/golang/go/issues/61898 Yes there are and a lot of…
comment by skldj28d2 · 2024-06-18 · in The upcoming iterator design for Go 1.23 -
https://github.com/golang/go/issues/61405#issuecomment-16388... : > Can you provide more motivation for range over functions? > If the results can be generated one at a time, then a representation that allows iterating over them scales…
comment by Zababa · 2024-06-18 · in The upcoming iterator design for Go 1.23 -
…So now that we know better what Go is about, we can try to see why the iterators are added. From https://github.com/golang/go/issues/61405#issuecomment-16388... . I'll quote some parts: > Can you provide more motivation for range over…
comment by Zababa · 2024-06-18 · in The upcoming iterator design for Go 1.23 -
…doing generics too with code generation but that was probably less doable for library code...) [1]: https://github.com/golang/go/discussions/56413
comment by jkrejcha · 2024-06-18 · in The upcoming iterator design for Go 1.23 -
…the Go module proxy stores the malicious copy. There are other tricks an attacker can play as well: https://github.com/golang/go/issues/66653 Ultimately, if you're doing a code audit, you have to compute the checksum of the code that…
comment by agwa · 2024-06-16 · in I've compared nearly all Rust crates.io crates to contents of their Git repos -
…Windows has IOCPs, Linux has io_uring, FreeBSD has kqueue, POSIX has... POSIX AIO, etc. [2]: https://github.com/golang/go/issues/31908 [3]: https://github.com/golang/go/issues/6817
comment by jkrejcha · 2024-06-13 · in Swift Static Linux SDK -
▲ 1
Orbail proposal for go error handlingstory by aredirect · 2024-06-12 · 0 comments
-
> The Go database/sql package actually executes ROLLBACK in the SQL engine. No: https://github.com/golang/go/blob/beaf7f3282c2548267d3c89441...
comment by owl57 · 2024-06-11 · in A ChatGPT mistake cost us $10k -
There is a version 2 being implemented to fix some of the known issues. https://github.com/golang/go/discussions/63397 https://pkg.go.dev/github.com/go-json-experiment/json
comment by pkaye · 2024-06-10 · in The Functional Programming Hiring Problem -
Ah ha! So the issue was always going through the error type reflection even for the success path. https://github.com/golang/go/commit/af43932c20d5b59cdffca454... I'd be interesting to see the benchmark after that.
comment by esprehn · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…take away is that the question has been kicked off: can wrapped errors be made more efficient? 1. https://github.com/golang/go/commit/af43932c20d5b59cdffca454...
comment by tommiegannert · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
Nice find. This commit: https://github.com/golang/go/commit/af43932c20d5b59cdffca454... from April 4.
comment by tommiegannert · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…which would explain the significant performance cost. If err is nil, it doesn't return early. https://github.com/golang/go/blame/adbfb672ba485630d75f8b559...
comment by richbell · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…and unnecessary reflection. Perhaps 1.23, or whichever release that ends up in, would be faster? https://github.com/golang/go/commit/af43932c20d5b59cdffca454...
comment by richbell · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…first 3 lines of `errors.is` [0] are the following: if target == nil { return err == target } [0]: https://github.com/golang/go/blob/go1.22.3/src/errors/wrap.g...
comment by lenkite · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…a separate function if the compiler would inline Is() reducing the perf impact. Possibly related: https://github.com/golang/go/issues/61502 Looks like they're working on improving the inliner.
comment by esprehn · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…`errors.Is()` [0] are the following: if err == nil || target == nil { return err == target } [0]: https://github.com/golang/go/blob/9b43bfbc51c469ec13fca24960...
comment by jay-barronville · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…obvious once you read the code—it relies on reflection followed by a tree-walking algorithm. [0]: https://github.com/golang/go/blob/9b43bfbc51c469ec13fca24960...
comment by jay-barronville · 2024-06-01 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…by adding a check for `err == nil && target != nil` and vice versa, rather than `err == target`? https://github.com/golang/go/blob/9b43bfbc51c469ec13fca24960...
comment by richbell · 2024-05-31 · in Go: Sentinel errors and errors.Is() slow your code down by 3000% -
…get you 10% in some cases. Shameless plug: We recently GA'ed our support for it at Datadog [3]. [1] https://github.com/golang/go/issues/54766 [2] https://go.dev/doc/pgo [3] https://www.datadoghq.com/blog/datadog-pgo-go/
comment by felixge · 2024-05-30 · in Fast Shadow Stacks for Go -
…good idea for the runtime until hardware shadow stacks become widely available and accessible. [1] https://github.com/golang/go/issues/57175
comment by felixge · 2024-05-30 · in Fast Shadow Stacks for Go -
Did you get any response from Go core team? Might make sense to open issue in GitHub https://github.com/golang/go/issues/ and start thread in https://groups.google.com/g/golang-dev
comment by nikolayasdf123 · 2024-05-30 · in Fast Shadow Stacks for Go -
…in this way so the same algorithm can be used to implement the various existing sort APIs. https://github.com/golang/go/blob/master/src/sort/gen_sort_v...
comment by ncruces · 2024-05-29 · in Runtime code generation and execution in Go -
…know pretty soon from failing tests of their own Wasm/WASI toolchain. https://go.dev/blog/wasi https://github.com/golang/go/blob/go1.22.3/misc/wasm/go_wasi... As for sandboxing, wazero tends to take sandboxing rather more seriously than…
comment by ncruces · 2024-05-29 · in Runtime code generation and execution in Go -
…been around this loop multiple times now with people, here is the source code for go:generate: https://github.com/golang/go/blob/master/src/cmd/go/internal... I've highlighted the line where it executes the given command. This is not aimed…
comment by jerf · 2024-05-29 · in Runtime code generation and execution in Go -
it's a known issue https://github.com/golang/go/issues/31866
comment by arccy · 2024-05-25 · in Abusing Go's Infrastructure -
…but older tar programs still allow that. And programs written in Go, because of course: https://github.com/golang/go/issues/55356 Overall, if your HDD size is infinite and you're using GNU tar, or another recent tar, you can skip 't' I…
comment by TheDong · 2024-05-24 · in How to destroy your OS with tar -
▲ 1
Proposal: Add "SIMD" package to standard librarystory by mfiguiere · 2024-05-20 · 0 comments
-
https://github.com/golang/go/issues/57530
comment by fdefilippo · 2024-05-20 · in Golang is evil on shitty networks -
…was always the default in Golang. Enable TCP_NODELAY => "disable Nagle's algorithm") [1] https://github.com/golang/go/issues/57530
comment by supriyo-biswas · 2024-05-10 · in It's always TCP_NODELAY -
…it's not like it's a regular occurrence for Linux to new functions to the vDSO, in any case. [0] https://github.com/golang/go/blob/master/src/runtime/time_li...
comment by LegionMammal978 · 2024-05-09 · in It's always TCP_NODELAY -
https://news.ycombinator.com/item?id=34179426 https://github.com/golang/go/issues/57530 huh, TIL.
comment by andrewfromx · 2024-05-09 · in It's always TCP_NODELAY -
…ASM dialect at much greater effort for a specific platform. For example, Go has to resort to this https://github.com/golang/go/blob/4ed358b57efdad9ed710be7f4f... in order to efficiently scan memory, while in C# you write the following once…
comment by neonsunset · 2024-05-08 · in Arena-based parsers -
It is probably not related, but gopls has a known issue with its heuristic for picking imports: https://github.com/golang/go/issues/61208
comment by meling · 2024-05-07 · in Secure Randomness in Go 1.22 -
…out the syscalls do not actually fail in practice (it's not possible to "run out of entropy"): https://github.com/golang/go/issues/66821
comment by agwa · 2024-05-07 · in Secure Randomness in Go 1.22 -
…somewhat. Here is the issue for slow sax parsing in encoding/xml. No work on it since around 2020: https://github.com/golang/go/issues/21823
comment by kristianp · 2024-05-07 · in Faster XML Stream Processing in Go (2019)