Yesterday
- This is a chapter from my book on Go concurrency, which teaches the topic from the ground up through interactive examples.Testing concurrent programs is a lot like testing single-task programs. If the code is well-designed, you can test the state of a concurrent program with...
This week
- Your computer runs tons of processes in the background, and pulling a plug out of a socket when it is in the middle of something is not a good idea. Doing that to your running service is also pretty risky, but this is precisely what happens when you terminate your running server...
Last week
- Connect to TCP, UDP, IP, or Unix sockets, with an optional timeout....
- I had a quick pair programming session with one of my colleagues. Can you imagine that Claude Code doesn’t need to be your only coding buddy? The validation rules needed a little tweak, so here is the piece of code I typed, and below is the version suggested by my friend....
- Having access to multiple parallel CPU cores isn't a new thing by any means, people have been programming in parallel for half a century now, but recent years we've found ourselves at an inflection point. Moore's law is dying, beefy single cores are no longer keeping up. Modern...
about 1 month ago
- The same way IANA and Python do....
about 2 months ago
- Concurrent-safe operations without explicit synchronization....
- Consistent approach to hashing and equality checks in custom collections....
2 months ago
- With version 1.0 released after 2010....
- Allow the new built-in to be called on expressions....
- Stay updated on changes coming in future Go releases....
- Exploring unconventional ways to handle concurrency....
3 months ago
- I’m experiencing a little writing crisis. I don’t publish much nowadays, other than keeping the “Top Picks” series on a prompt schedule and some occasional short-form articles to release some infrequent bursts of creativity. It is not the first time it’s happening to me, and I’m...
4 months ago
- Unopinionated and composable channel operations....
- Improve Hugo template code highlighting using go-html-template Markdown code blocks....
- How is your summer season going, folks? Recently I have been busy at work, but as part of that, I made huge progress in learning Go. Writing Go code is a pure joy, and I really regret that I have never dedicated myself to it before. It seems to be a perfect weapon for a web...
- Matteo Vaccari shows why the common metric of AI code acceptance has big hole. An LLM can be helpful even if you throw away its code. more…...
- Sending events between goroutines....
- Equal, Err and True are quite enough....
- I'm a big fan of Redis. It's such an amazing idea to go beyond the get-set paradigm and provide a convenient API for more complex data structures: maps, sets, lists, streams, bloom filters, etc. I'm also a big fan of relational databases and their universal language, SQL....
5 months ago
- The standard Go toolchain comes with an assembler out of the box. Said assembler is highly idiosyncratic, using syntax inherited from Plan 9 and choosing its own names for platform-specific instructions and registers. But it's great to have it readily available. More mundanely,...
6 months ago
- Use Go net/http constants like StatusOK and StatusNotFound for more readable code....
7 months ago
- Oscar, an open-source contributor agent architecture - Oscar is a project from the Go community that aims to develop AI agents that assist open source maintainers. I think this is a great idea. Open source is a load-bearing pillar in our modern digital infrastructure and...
9 months ago
- Go 1.24 introduces a new map implementation, inspired by Google’s Swiss Tables, which brings significant optimizations and performance enhancements to the language’s built-in map type. While Go’s previous map implementation was already efficient, the new design takes it a step...
Rows per page