BlogFeatured 3 times
Redowan's Reflections
Software engineering blog by Redowan Delowar covering platform engineering, backend systems, distributed systems, reliability, databases, Go, Python, TypeScript, and pragmatic engineering practice.
Recent posts
Newest first- Accepted proposal: omit the type in composite literals
Go 1.28 will allow omitting the type in composite literals when the type is already known by the compiler.
- Accepted proposal: grow an existing map with maps.Grow
Go's new maps.Grow function allows pre-allocating space in existing maps to avoid repeated reallocations and rehashing.
- Partial updates with field masks
Using an update_mask query parameter with PATCH requests allows APIs to differentiate between undefined, null, and updated fields.
- The irrational effectiveness of the Pi harness
The Pi coding harness offers a minimal, transparent, and extensible alternative to bloated AI coding tools, allowing users to understand and customize its core functionality.
- Postgres as an isolation reference model
Postgres serves as a reference model for understanding and comparing transaction isolation levels across various databases, including NewSQL, MongoDB, DynamoDB, and Cassandra.
- Accepted proposal: range over all command-line flags
Go's package flag proposal adds an IsSet field to flags, simplifying environment variable overrides by allowing direct iteration over all flags.
- Accepted proposal: Go examples with any signature
Go's proposal to allow examples with any signature, including parameters and return values, was accepted to improve documentation and testing capabilities.
- Supervised fire-and-forget in Go
A supervised fire-and-forget approach for Go goroutines uses a worker pool to manage background tasks, bounding concurrency and handling errors.
- GC shape stenciling in Go generics
Go's generics implementation uses GC shape stenciling, compiling one function body per type's GC shape rather than full monomorphization or type erasure.
- Modernizers & go fix
Go 1.26's rebuilt go fix tool automatically modernizes code by applying language and library updates, becoming a favorite feature for developers.
- Request coalescing with Go singleflight
Go's singleflight package deduplicates concurrent calls for the same key, preventing database stampedes by ensuring an expensive upstream operation runs only once.
- Channel iteration and goroutine leak
A custom cron scheduler's channel iteration misuse leads to a goroutine leak, which is fixed by closing the channel after all jobs report their outcomes.
- Accepted proposal: a goroutine leak profile in the Go standard library
Go 1.27 will include a goroutine leak detector in runtime/pprof, leveraging the garbage collector for provable detection of unrecoverable goroutines.
- Reading your own writes with WAIT FOR LSN in Postgres 19
Postgres 19 introduces the WAIT FOR LSN command, a new feature to address read-after-write consistency issues across replicas.