Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Mon, 28 Aug 2017 19:11:00 +0000 Go Experience Reports #go2 #experiencereport <p>This page collects experience reports about problems with Go that might inform our design of solutions to those problems. These reports should focus on the <em style="box-sizing: border-box;">problems</em>: they should not focus on and need not propose solutions. To propose solutions, see the <a href="https://golang.org/s/proposal" style="box-sizing: border-box; color: rgb(3, 102, 214);">proposal process</a>.</p> <p>We hope to use these experience reports to understand where people are having trouble writing Go, to help us prioritize future changes to the Go ecosystem. (We do not promise to reply to these. If you need immediate help answering questions about Go, see <a href="https://golang.org/help/" style="box-sizing: border-box; color: rgb(3, 102, 214);">https://golang.org/help/</a>&nbsp;for resources.)</p> 8 points posted by kenny https://github.com/golang/go/wiki/experiencereports 2537 Fri, 18 Aug 2017 10:18:00 +0000 When Go’s type system impedes library interoperability #go2 #experiencereports <br> 6 points posted by kenny https://medium.com/@cep21/go-experience-report-gos-type-system-c4d4dfcc964c 2636 Thu, 07 Sep 2017 16:16:00 +0000 Go experience report for generics: google metrics api #experiencereport This report describes my experience designing, implementing, and deploying a Go API for instrumenting programs with metrics for production monitoring. The C++ and Java APIs used templates and generics; since Go lacks those features, we developed an API that requires some runtime checks. Those runtime checks eventually caused failures in production, requiring us to replace them with logging and monitoring instead. Those failures could have been avoided altogether with support for generics in Go. 6 points posted by kenny https://medium.com/@sameer_74231/go-experience-report-for-generics-google-metrics-api-b019d597aaa4 2580 Sat, 26 Aug 2017 05:45:00 +0000 Why context.Value matters and how to improve it #go2 #experiencereport 6 points posted by daenney https://blog.merovius.de/2017/08/14/why-context-value-matters-and-how-to-improve-it.html 2517 Mon, 14 Aug 2017 08:48:00 +0000 A use case for Go generics in a Go compiler #experiencereport #go2 This is a (very) rare work-related entry. I mostly work on the compiler for a programming language named “Go”, and one of the problems we face is if and how we should add “generics” to a future version of Go. I can’t possibly summarize easily for a non-technical reader, but the TLDR version is (1) lots of other languages have generics (2) we’re pretty sure they’re useful (3) but they come with associated costs and complexity and we’re not sure they’re worth it. Also, “generics” is not just a single thing, there’s several semantic variants and several ways to implement them (for example, erased versus dictionary-passing versus template-stamping).&nbsp; 6 points posted by daenney https://dr2chase.wordpress.com/2017/08/09/a-use-case-for-go-generics-in-a-go-compiler 2499 Thu, 10 Aug 2017 13:51:00 +0000 Tensor refactor #experiencereports I recently finished a major refactor of `tensor`, which is a package for generic multidimensional arrays in Go. In this blog post I will recount the refactoring process, and why certain decisions were made. Further more I will also share some thoughts with regards to generics in Go while trying not to sound like a complete prat. 5 points posted by kenny https://blog.chewxy.com/2017/09/11/tensor-refactor 2701 Tue, 26 Sep 2017 15:21:00 +0000 Why I miss generics in go #experiencereport 5 points posted by lolly https://medium.com/@watchforstock/why-i-miss-generics-in-go-9aef810a1bef 2561 Tue, 22 Aug 2017 14:25:00 +0000