Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Here’s a small quiz derived from some incorrect advice from an AI coding assistant. package main import ( "fmt" "time" ) func main() { fmt.Println(time.Now()) defer fmt.Println(time.Now()) time.Sleep(10 * time.Second) } This program…
-
Here’s a silly example extracted from real code. package main import "fmt" type Location int const ( KITCHEN Location = iota BATHROOM ) type Ingredient struct { name string location Location } func (i *Ingredient) Location() *Loca…
-
This morning a one line change had several of us tearing up the fabric of reality trying to understand why a failing test wasn’t failing, or, in fact, being run at all.
-
Today’s post comes from a recent Go pop quiz.
-
Picture yourself, an engineer working at the hottest distributed microservices de jour, assigned to fix a bug.
-
The Go compiler’s SSA backend contains a facility to produce HTML debugging output of the compilation phases.
-
Per the overlapping interfaces proposal, Go 1.14 now permits embedding of interfaces with overlapping method sets.
-
A few days ago Fatih posted this question on twitter.
-
Conventional wisdom dictates that the larger the number of types declared in a Go program, the larger the resulting binary.
-
In the previous post I discussed how leaf inlining allows the Go compiler to reduce the overhead of function calls and extend optimisation opportunities across function boundaries.
-
This is a post about how the Go compiler implements inlining and how this optimisation affects your Go code. n.b.
-
The testing package is one of my favourite packages in the Go standard library, not just because of its low noise approach to unit testing, but, over the lifetime of Go, it has received a steady stream of quality of life improvements driven by real world…
-
Programmers have a tendency to be superstitious.
-
This article was derived from my GopherCon Israel 2020 presentation.
-
This is a thought experiment in API design.
-
If, like me, you’re a commercial aviation otaku, this walkthrough of an enthusiast built 747 cockpit simulator should be highly relevant to your interests.
-
Last year I had the opportunity to watch Cat Swetel’s presentation The Development Metrics You Should Use (but Don’t).
-
Read more over at the Living Computer Museum’s restoration page.
-
UNIX turns 50 this year which means 7th edition Research UNIX is that 40.
-
In the beginning, before the go tool, before Go 1.0, the Go distribution stored the standard library in a subdirectory called pkg/ and the commands which built upon it in cmd/.