Latest posts

Go
20 Mar, 16:16
If you’re working with Go and care about performance, then check out the https://goperf.dev/Here you can find not theoretical, but practical patterns applicable to memory issues, concurrency, and overall, real bottlenecks you hit in production.The guide has been recently updated with more depth (atomics, concurrency trade-offs, etc.), so worth revisiting even if you’ve seen it before.Solid reference to keep bookmarked. Enjoy!goperf.devGo Optimization GuidePatterns and Techniques for Writing High-Performance Applications with Go
Go
17 Jan, 21:18
Are Atomic Operations Faster and Better Than a Mutex? It DependsFrom the author: "Recently, while reviewing a pull request, a discussion arose about using sync/atomic versus sync.RWMutex. It’s a question that comes up often when writing concurrent Go code, so I thought it would make a great post"https://madflojo.dev/posts/are-atomic-operations-faster-than-a-mutex/


Go
29 Nov 2025, 14:17edited
Hello, folks, it's been a while. Re-sharing an interetsting recording from GopherCon 2025: Advancing Go Garbage Collection with Green Tea (youtube). TL;DR:Go 1.25 includes a new experimental garbage collector called Green Tea, available by setting GOEXPERIMENT=greenteagc at build time. Many workloads spend around 10% less time in the garbage collector, but some workloads see a reduction of up to 40%!There is an also official text version on the Green Tea Garbage Collector if one does not like to watch the video.Thanks!YouTubeGopherCon 2025: Advancing Go Garbage Collection with Green Tea - Michael KnyszekMemory latency and bandwidth are becoming increasingly constrained, and these trends are at odds with most of today's garbage collection algorithms, including Go's. In this talk, Michael will dive deep into Green Tea, a new parallel mark algorithm to accelerate…
Go
18 Aug 2025, 13:09
Be Careful with Go Struct EmbeddingEmbedding structs can quietly mask deeper-nested fields: a duplicate field name isn’t ambiguous unless it appears at the same ‘depth’, meaning your program may choose an unintended value.https://mattjhall.co.uk/posts/be-careful-with-go-struct-embedding.htmlmattjhall.co.ukBe Careful with Go Struct Embedding - Matt HallThe gophers nested too greedily and too deep.
Go
31 May 2025, 10:23
What's new in Go: Google I/O presentationhttps://www.youtube.com/watch?v=kj80m-umOxs&ab_channel=GoogleforDevelopersYouTubeWhat's new in GoThere’s a lot to love about Go 1.24, including support for post-quantum cryptography, full support for generic type aliases, and several performance improvements to the Go runtime that significantly decrease CPU overhead for most applications. Learn what’s…
Go
9 Feb 2025, 14:13edited
Go 1.24: A Major Improvement for Tooling: go tools 🛠Hello, folks! The upcoming Go 1.24 (supposed to be coming this month, Feb 2025) introduces a new go tool command, aiming to significantly improve the way project-specific tools are managed. This update eliminates the need for the tools.go workaround, reduces dependency bloat, and improves performance through caching. So, - No more tools.go hacks - Faster execution with caching - Cleaner and more efficient dependency managementHow it works? Simple!Add a tool:go get -tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.4.1Run it:go tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen --config=config.yaml openapi.yamlList available tools:go tool
Go
24 Dec 2024, 16:13
Hello, dear community!I wish you Merry Christmas 🎄 Happy New Year 🎊 and great winter holidays ahead!☃️ ❄️See you in 2025 👋
Go
13 Dec 2024, 15:08
Coming in Go 1.24: testing/synctest experiment for time and concurrency testingTesting code that involves time or concurrency can be a struggle. It often leads to hard-to-debug flakes in CI or long-running tests.Go 1.24 is scheduled to be released in February and the release freeze has begun.It’s set to include an experimental testing/synctest package designed to make testing code that involves time or concurrency precise and fast.https://danp.net/posts/synctest-experiment/
Go
21 Oct 2024, 06:53edited
Go Blueprint: A Quick Way to Start Go Projects ⚒The tool helps you setting up new Go projects fast, with ready-made templates and all the basic setup done for you.While I’m not really into using tools like this, some might find it useful to save time and focus on development.From the authors: "Powerful CLI tool designed to streamline the process of creating Go projects with a robust and standardized structure. Not only does Go Blueprint facilitate project initialization, but it also offers seamless integration with popular Go frameworks, allowing you to focus on your application's code from the very beginning."https://docs.go-blueprint.dev/docs.go-blueprint.devGo-Blueprint DocsOfficial documentation for Go-Blueprint project
Go
14 Oct 2024, 03:14
Go sync.Map: The Right Tool for the Right JobIn Go, sync.Map offers a thread-safe alternative to traditional maps. While sync.Map can be highly effective in scenarios involving heavy concurrent access, it isn't always the best choice. In this article by VictoriaMetrics, you'll learn when to opt for sync.Map, how it differs from regular maps, and the performance trade-offs involved.https://victoriametrics.com/blog/go-sync-map/index.htmlVictoriaMetricsGo sync.Map: The Right Tool for the Right JobGo’s sync.Map isn’t a magic bullet for all concurrent map needs. It’s got some good tricks up its sleeve, like handling reads without locking, but it’s not always the best choice. This article dives into how sync.Map works under the hood, from its two-map…
Go
7 Sept 2024, 18:44edited
The standard library of Go 1.23 now includes the new unique package. The purpose behind this package is to enable the canonicalization of comparable values. In other words, this package lets you deduplicate values so that they point to a single, canonical, unique copy, while efficiently managing the canonical copies under the hood. You might be familiar with this concept already, called “interning”.Let’s dive in to see how it works, and why it’s useful.https://go.dev/blog/uniquego.devNew unique package - The Go Programming LanguageNew package for interning in Go 1.23.
Go
15 Jul 2024, 20:56
If you use Timer.Reset() in Go 1.22 or earlier, you may be doing it wrong. Even the book 100 Go Mistakes (which is usually right about Go nuances) got it wrong.Let's see what the problem might be and how to work around it.https://antonz.org/timer-reset/antonz.orgResetting timers in GoChances are you are doing it wrong.
Go
13 Jun 2024, 09:19
Profile-guided optimisation (PGO) is a technique where CPU profile data for an application is collected and fed back into the next compiler build of Go application. The compiler then uses this CPU profile data to optimise the performance of that build by around 2-14% currently (future releases could likely improve this figure further).In this article, the Grab tech folks show off their wins and learnings, along with the Dockerfile used to make it happen.https://engineering.grab.com/profile-guided-optimisationEnjoy!


Go
18 May 2024, 16:22edited
Okay based on the first reactions it seemed like the naming convention issue brought by Zach didn't get much reflection in you.In this case, I'd like to share a more practical guidance I used recently when had to test a k8s operator setup locally.The topic is: Go: Testing Kubernetes Applications with EnvTestEnjoy 🙂https://blog.marcnuri.com/go-testing-kubernetes-applications-envtestwww.marcnuri.comHow to Test Kubernetes Applications in Go with EnvTest: A Practical Guide - Marc NuriLearn how to streamline integration testing for your Kubernetes operators and controllers using the EnvTest package from controller-runtime.
Go
18 May 2024, 16:08
"ok" considered harmful?“Just like there’s an unwritten law that every error variable in Go must be named err, there’s an unwritten law that every map existence variable in Go must be named ok.”But Zach thinks we can, and should, look at doing better.https://www.dolthub.com/blog/2024-05-10-ok-considered-harmful/


Go
13 May 2024, 04:51
https://go.dev/blog/chacha8randExplore the recent advancements in randomness within the Go programming language. Authors Russ Cox and Filippo Valsorda, part of the Go team, look closely at the complexities of addressing security requirements for specific use cases and the implementation of the ChaCha(Rand8) algorithm. Discover how these improvements have enhanced random number generation in Go, culminating in the seamless security enhancements introduced in Go 1.22.go.devSecure Randomness in Go 1.22 - The Go Programming LanguageChaCha8Rand is a new cryptographically secure pseudorandom number generator used in Go 1.22.
Go
1 May 2024, 13:45
Mastering Maps in Go: Everything You Need to KnowMaps, also known as associative arrays or hash tables, are vital data structures for solving algorithmic problems in programming. Understanding their features, operations, time and space complexities, and implementation in code is crucial for developers. With this knowledge and practical experience, developers can effectively apply maps to problem-solving scenarios.This article offers a comprehensive guide to using maps, covering their overview, implementation in Go programming, and strategies for using them in concurrent code.HackernoonMastering Maps in Go: Everything You Need to KnowLearn about using maps in Go (golang), including associative arrays, hash maps, collision handling, and sync.Map, with practical code examples.
Go
11 Mar 2024, 22:58
The Impact of Pre-Allocating Slice Memory on Performance — The author wanted to establish, in numbers, how pre-allocating memory improves performance using quantitative measurements and tools for automated detection.Oilbeater's Study RoomThe Impact of Pre-allocating Slice Memory on Performance in Golang | Oilbeater's Study Room
Go
19 Jan 2024, 12:32
Initial Thoughts on Go 1.22 — 1.22 is due next month, but the release candidate gives us a look at plenty of changes and improvements coming down the pike, including new default behavior for loop variables in for loops, the ‘rangefunc’ experiment (more on that next), and even some performance improvements.https://www.dolthub.com/blog/2024-01-12-golang-1-22rc/


Go
30 Nov 2023, 21:53
https://threedots.tech/post/making-games-in-go/Miłosz uses the much loved Ebitengine to create a simple Asteroids game. There’s a lot to cover, but the steps are small and easy to digest if you’re looking to understand how games are made.Three Dots LabsMaking Games in Go for Absolute BeginnersWant to rekindle your passion for coding? Learn how to create video games from scratch using Go and Ebitengine. We break down core concepts like game loops, sprites, and collisions that we've applied in multiple projects. In just one evening, you'll build…
Related Channels
Other channels in the same section of the catalogue.
