Scheduling Function Calls with Zero Allocation

Author(s): Changkun Ou Permalink: https://golang.design/research/zero-alloc-call-sched GUI programming in Go is a little bit tricky. The infamous issue regarding interacting with legacy, GUI frameworks is that most graphics related APIs must be called from the main thread. The i...

Debug AWS Lambda Functions with Gebug

What you can and can't build in Go's module mode

Writing Simulations Using Go

Introduction If you can write a for-loop, you can do statistics. - Jake Vanderplas A lot of developers shy away from problems which involve statistics or probability. Which is shameful since in today’s data-rich environment, you can gain a lot of insights from data. In this...

GoReleaser: 4 years releasing software

Last year, I made a blog post about GoReleaser turning 3 years old.

A few bytes here, a few there, pretty soon you’re talking real memory

Today’s post comes from a recent Go pop quiz. Consider this benchmark fragment. A convenience wrapper around sort.Sort(sort.StringSlice(s)), sort.Strings sorts the input in place, so it isn’t expected to allocate (or at least that’s what 43% of the tweeps who re...

A little puzzle with <code>printf()</code> and C argument passing

Go modules are soon going to be the only future

macOS Command Line Tools

Today, again, I forgot the command to install Command Line Tools and had to search for it.

The story of the one line fix

Picture yourself, an engineer working at the hottest distributed microservices de jour, assigned to fix a bug. You jump into an unfamiliar codebase and quickly locate the line where the problem occurred. The fix is simple, just return early or substitute a default value in the ca...