Posts by Category

language

Go 1.22 Released

9 minute read

Everyone’s going loopy about Go’s latest language changes. Nobody seems to have noticed an important fix

Profile Guided optimisation

24 minute read

Learn how PGO improves use of inlining and CPU instruction caches. I show how to get biggest boost for your projects by using the right CPU profile

Defer

9 minute read

Why it’s important to use defer for maintainability and in the presence of panics. I also look at some common pitfalls.

Build Tags

12 minute read

The other “directive” that I didn’t cover last week is //go:build. This time I look at how and why you would use build tags and the new syntax.

Compiler Directives

29 minute read

A look at all of Go’s pragmas (except build tags). How //go:debug directive enhances Go’s backward compatibility. Plus recent changes to the language that af...

Go 1.21

8 minute read

Go 1.21 has just arrived! It has some nice things like PGO, and slices.Sort(), but beware of a pitfall

Back to Top ↑

releases

Go 1.22 Released

9 minute read

Everyone’s going loopy about Go’s latest language changes. Nobody seems to have noticed an important fix

Go 1.21

8 minute read

Go 1.21 has just arrived! It has some nice things like PGO, and slices.Sort(), but beware of a pitfall

Back to Top ↑

directives

Build Tags

12 minute read

The other “directive” that I didn’t cover last week is //go:build. This time I look at how and why you would use build tags and the new syntax.

Compiler Directives

29 minute read

A look at all of Go’s pragmas (except build tags). How //go:debug directive enhances Go’s backward compatibility. Plus recent changes to the language that af...

Back to Top ↑

types

Back to Top ↑

build

Build Tags

12 minute read

The other “directive” that I didn’t cover last week is //go:build. This time I look at how and why you would use build tags and the new syntax.

Back to Top ↑

tags

Build Tags

12 minute read

The other “directive” that I didn’t cover last week is //go:build. This time I look at how and why you would use build tags and the new syntax.

Back to Top ↑

statements

Defer

9 minute read

Why it’s important to use defer for maintainability and in the presence of panics. I also look at some common pitfalls.

Back to Top ↑

defer

Defer

9 minute read

Why it’s important to use defer for maintainability and in the presence of panics. I also look at some common pitfalls.

Back to Top ↑

profiling

Back to Top ↑

flame graphs

Back to Top ↑

pgo

Profile Guided optimisation

24 minute read

Learn how PGO improves use of inlining and CPU instruction caches. I show how to get biggest boost for your projects by using the right CPU profile

Back to Top ↑