Software
30 Nov 2026
A browser and desktop app for scouting in EVE Online.
30 Nov 2026
A local broker for coding agents that occasionally need credentials.
23 Mar 2024
22 Mar 2024
Leveraging type systems to your advantage
Video explaining how you can use Rust’s type system to describe your business logic. Many of the ideas can be transferred to other languages.
30 Oct 2023
I started collecting Go benchmarks because the same questions came up in code review. When is a map worth building? When does passing a pointer help? Knowing the complexity is a start, but I wanted measurements I could reproduce. Tip Use slices.Contains for one-off checks and up to about 50 lookups. Build a map once for hundreds of lookups on the same slice. Between roughly 50 and 100 lookups, benchmark your workload. func countAllowed(allowed, candidates []int) int { set := make(map[int]struct{}, len(allowed)) for _, id := range allowed { set[id] = struct{}{} } count := 0 for _, id := range candidates { if _, ok := set[id]; ok { count++ } } return count } Lookup benchmark code ยท Results
1/9