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
-
…things, like the tight version range that the compiler can bootstrap from, could be improved. [1]: https://github.com/golang/go/wiki/Go-Release-Cycle [2]: https://blog.rust-lang.org/2014/12/12/1.0-Timeline.html [3]:…
comment by est31 · 2019-09-03 · in Go 1.13 Release Notes -
…variables on everyone's individual machines. I've got an issue being discussed on GitHub about it https://github.com/golang/go/issues/33985
comment by donatj · 2019-09-03 · in Go 1.13 Release Notes -
…be too expensive, but then later they were able to figure out a way to do it. Some more details: https://github.com/golang/go/issues/30116
comment by typical182 · 2019-09-03 · in Go 1.13 Release Notes -
…in the announcement. It would seems like it will cause a lot of drama as this actually rolls out. https://github.com/golang/go/issues/33980
comment by hammerandtongs · 2019-08-30 · in Go Module Mirror and Checksum Database Launched -
with the addition of the `gopls` tool ( https://github.com/golang/go/wiki/gopls ), this shouldn't be nearly as much of a problem in the coming years.
comment by badrequest · 2019-08-30 · in Go Module Mirror and Checksum Database Launched -
On this topic, I found the following wiki to be a great learning resource: https://github.com/golang/go/wiki/WebAssembly
comment by lioeters · 2019-08-30 · in WebAssembly: Bringing Go to the Browser (and Beyond) -
…the runtime of Go is implemented in Go. For example, here's the sweeping component of the gc: https://github.com/golang/go/blob/master/src/runtime/mgcswee... But that doesn't mean you can get a Go without a runtime; the final executable's…
comment by jerf · 2019-08-28 · in Rust is the future, C is the new Assembly: Josh Triplett (Intel) -
https://github.com/golang/go/issues/33631 (this is part of go 1.12.8 and 1.11.13 which got released because of this today)
comment by 140am · 2019-08-13 · in HTTP/2 Denial of Service Advisory -
…might scan that part of the memory (if its heap allocated) any time even while the loop is running. https://github.com/golang/go/blob/e37a1b1ca6afcbe3b02d2dfd59... There could be effects observed due to the difference of having small…
comment by martisch · 2019-08-07 · in Benchmark of Golang slice initialization (Always use known capacity) -
…readability improvement to have named functions for very common patterns like the slice tricks. 0: https://github.com/golang/go/wiki/SliceTricks
comment by bbatha · 2019-07-31 · in Why Generics? -
https://github.com/golang/go/tree/master/src/runtime There's some assembly in there, but it seems to be mostly Go.
comment by yellowapple · 2019-07-30 · in We Need a Safer Systems Programming Language -
…instead of float32(math.Sin(float32(x))) just seems like an improvement in every way. [1] https://github.com/golang/go/wiki/SliceTricks
comment by throwaway34241 · 2019-07-29 · in Go Contracts – Draft Design -
…thus GoDoc automatically generates a nice webpage out of it. See for example this package comment: https://github.com/golang/go/blob/master/src/net/http/doc.go... Turns into this documentation (the beginning only):…
comment by PhilippGille · 2019-07-29 · in Ask HN: What are the “best” codebases that you've encountered? -
https://github.com/golang/go
comment by ngngngng · 2019-07-29 · in Ask HN: What are the “best” codebases that you've encountered? -
…appears that the page hasn't been updated since 2017, and Go Modules is more recent than that) 0: https://github.com/golang/go/blob/master/src/runtime/select.... 1: http://disq.us/p/1qcpqao
comment by DuskStar · 2019-07-25 · in YourLanguageSucks -
…created my own proposal that I think addresses the issues. I would love some constructive feedback. https://github.com/golang/go/issues/33161
comment by mvndaai · 2019-07-19 · in Declined Proposal: A built-in Go error check function, “try” -
…Go's error check function "try" proposal[0] will also be similar to this situation. [0]: https://github.com/golang/go/issues/32437
comment by adito · 2019-07-17 · in What's Coming in Python 3.8 -
yeah; we're getting there though, see https://github.com/golang/go/wiki/ErrorValueFAQ
comment by ithkuil · 2019-07-17 · in Declined Proposal: A built-in Go error check function, “try” -
Found it: https://github.com/golang/go/issues/20803
comment by matthewbauer · 2019-07-17 · in Declined Proposal: A built-in Go error check function, “try” -
…year or so[2]. They talk a bit about next steps in the most recent blog post about Go 1.13[3]. [1]: https://github.com/golang/go/wiki/Go2 [2]: https://blog.golang.org/go2draft [3]: https://blog.golang.org/go2-next-steps
comment by cyphar · 2019-07-07 · in Learning Golang – From Zero to Hero -
…are still to catch up with Go modules, so using GOPATH still makes sense if you use them. [0] https://github.com/golang/go/issues/24661
comment by geoka9 · 2019-07-07 · in Learning Golang – From Zero to Hero -
…Brian Kernighan alluding to some of this in his humorous (but true!) mention of "first Go commit" ( https://github.com/golang/go/commit/7d7c6a97f815e9279d08cfae... )
comment by p_l · 2019-07-06 · in Lively Linear Lisp – 'Look Ma, No Garbage' (1992) -
…passes here[0]. It does some optimizations but much less than a mainstream C or C++ compiler. [0] https://github.com/golang/go/blob/master/src/cmd/compile/int...
comment by dbremner · 2019-07-05 · in Go compiler internals: Adding a new statement to Go -
>many optimizations Not many, mostly simple peephole optimizations. https://github.com/golang/go/blob/master/src/cmd/compile/int...
comment by ernst_klim · 2019-07-05 · in Go compiler internals: Adding a new statement to Go -
…down the statement handling stack is trivial (and indeed, this is what happens for for[3]). [1] https://github.com/golang/go/blob/master/src/cmd/compile/int... ("ctx" is a "targets" struct containing two entries, one for which statement…
comment by Crinus · 2019-07-05 · in Go compiler internals: Adding a new statement to Go -
…decent amount of them. At least for me it passes the subjectively vague "meaningful" check :-P. [1] https://github.com/golang/go/blob/master/src/cmd/compile/int... [2] https://github.com/golang/go/blob/master/src/cmd/compile/int... [3]…
comment by Crinus · 2019-07-05 · in Go compiler internals: Adding a new statement to Go -
…before making accusations like that please. [0]: https://golang.org/doc/faq#exceptions [1]: https://github.com/golang/go/wiki/DesignDocuments , https://github.com/golang/proposal [2]: https://go.googlesource.com/proposal/+/master/design/go2…
comment by Cthulhu_ · 2019-07-04 · in An Open Letter to the Go Team About Try -
…The proposal has been partially accepted and implemented in Go 1.13: https://github.com/golang/go/issues/29934#issuecomment-48968...
comment by praseodym · 2019-07-03 · in An Open Letter to the Go Team About Try -
…all our production servers. [1] https://github.com/golang/proposal/blob/master/design/32437-... [2] https://github.com/golang/go/issues/32437#issuecomment-49926... [3] https://github.com/golang/go/issues/32437#issuecomment-50061... [4]…
comment by guessmyname · 2019-07-03 · in An Open Letter to the Go Team About Try -
https://github.com/golang/go/issues/32437
comment by Iggy173 · 2019-07-02 · in An Open Letter to the Go Team About Try -
…the brackets will make it harder to read. In fact I've just found a variant of this proposed here: https://github.com/golang/go/issues/32811
comment by grey-area · 2019-07-02 · in Next steps toward Go 2 -
The compiler optimizes conversion from []byte to string on map lookup. https://github.com/golang/go/commit/f5f5a8b6209f84961687d993...
comment by BarkMore · 2019-06-30 · in Go Slices Are Fat Pointers -
Go v1.11+ compiles to WebAssembly https://github.com/golang/go/wiki/WebAssembly
comment by tzm · 2019-06-30 · in Show HN: DICOM Medical Image Parser in Go -
…on the eyes: f, err := os.Open(filename) or return 0, err Actually, I'll just open a proposal: https://github.com/golang/go/issues/32848
comment by kstenerud · 2019-06-28 · in Go proposal: Leave “if err != nil” alone? -
This proposal https://github.com/golang/go/issues/32611 suggests: on err, <single_statement>
comment by networkimprov · 2019-06-28 · in Go proposal: Leave “if err != nil” alone? -
…we expect that the error context is the same in the whole function. See this comment by Russ Cox: https://github.com/golang/go/issues/32437#issuecomment-50329... > this would loose proper backtrace information: the backtraces all point to…
comment by ngrilly · 2019-06-27 · in Next steps toward Go 2 -
Of course it is: https://github.com/golang/go/blob/3813edf26edb78620632dc9c7d...
comment by unscaled · 2019-06-27 · in Next steps toward Go 2 -
The official wiki is good: https://github.com/golang/go/wiki/Modules This article looks like a good intro: https://roberto.selbach.ca/intro-to-go-modules/ The equivalent of "npm install" is "go get" (optionally "-u"). You can also edit…
comment by atombender · 2019-06-27 · in Next steps toward Go 2 -
…precision", i.e. make the builtin int type a bigint to avoid integer overflow and conversion bugs: https://github.com/golang/go/issues/19623
comment by cpeterso · 2019-06-26 · in Next steps toward Go 2 -
It's just syntactic-sugar. From the proposal ( https://github.com/golang/go/issues/32437 ): f, err := os.Open(filename) if err != nil { return …, err } is simplified to: f := try(os.Open(filename)) > I dislike the try implementation What…
comment by kbd · 2019-06-26 · in Next steps toward Go 2 -
If you are actually interested in the proposal: https://github.com/golang/go/issues/32466
comment by azhenley · 2019-06-26 · in Next steps toward Go 2 -
…they received on the GitHub Issue and not just push it through like the error inspection [0]. [0]: https://github.com/golang/go/issues/29934#issuecomment-48968...
comment by AtroxDev · 2019-06-26 · in Next steps toward Go 2 -
Issue 9, never forget: https://github.com/golang/go/issues/9#issuecomment-66047467
comment by jordigh · 2019-06-19 · in Google to Reimplement Curl in Libcrurl -
Caddy's build are reproducible as per https://github.com/golang/go/wiki/Modules . The downloader offers you to extend Caddy with plugins, and this will change the hash of the binary compared to a straight build from the source code. Keep…
comment by elcore · 2019-06-17 · in Caddy web server no longer completely open source -
…that misfeature in a newer language. Go apparently does it that way to make "defer" work.[1] [1] https://github.com/golang/go/issues/20803
comment by Animats · 2019-06-13 · in Why I Don't Like Golang (2016) -
See https://github.com/golang/go/wiki/Go-Release-Cycle . We're one month into the three-month freeze, so it's unlikely that new features are going to be merged in before the tree reopens. Bugfixes are still welcome, though, as long as…
comment by mvdan · 2019-06-07 · in Slides: What's Coming in Go 1.13 -
…that ends with exceptions. A lot of others chiming in with different ideas on the original ticket: https://github.com/golang/go/issues/32437
comment by hliyan · 2019-06-05 · in Proposal: A built-in Go error check function, try -
"you always know where everything is" is no longer true. https://github.com/golang/go/wiki/Modules
comment by zemo · 2019-05-27 · in Ian Lance Taylor's Response to “Go Is Google's Language” -
…he actually did in Go[2]. [1]: https://unix.stackexchange.com/questions/10893/what-did-ken-... [2]: https://github.com/golang/go/commit/c90d392ce3d3203e0c32b3f9...
comment by cyphar · 2019-05-27 · in The Definitive Guide on Win32 to NT Path Conversion (2016) -
…extremely dismissive of the idea, even though it had been shown to cause pain for a lot of people: https://github.com/golang/go/issues/12914#issuecomment-15075...
comment by brown9-2 · 2019-05-22 · in Go is Google's language, not ours