#453 — March 24, 2023 |
|
The Go Weekly Newsletter |
Make Your Go Programs Use Less Memory.. Maybe — betteralign is a tool to detect structs that would use less memory if their fields were sorted and to then, optionally, sort such fields. It’s a fork of Go’s own fieldalignment tool that skips generated or test files, skips specially marked structs, doesn’t drop comments, and similar DX enhancements. Dinko Korunic |
Implementing a Generic Set Type — To celebrate the first anniversary of generics in Go (Go 1.18 was released in March 2022), John decided to build something useful with them: a generic Set type, complete with useful methods. John Arundel |
Go! Experts at Your Service — Do you need help filling skill gaps, speeding up development & creating high performing software with Go, Docker, K8s, Terraform and Rust? We’ll help you maximize your architecture, structure, tech-debt and human capital. Ardan Labs Consulting sponsor |
The Power of Single-Method Interfaces — Eli shows why single-method interfaces (sometimes called SMIs) can do whatever higher order functions can do and more, and why they provide a more general and powerful approach even if they’re more verbose in some cases. Eli Bendersky |
🕹 Ebitengine 2.5: The 2D Game Engine for Go — v2.5 of the long standing library includes initial, limited Xbox support, extra vector drawing functions, improved control over the blending of graphics and colors, and more. Project homepage. Ebitengine Team |
James Smith |
IN BRIEF:
|
Replay 2023: Call for Presenters Is Now Open! — It’s our 2nd year of Replay and we want you to be a part of it! Check out our blog post on why you should submit your exciting talk today. Temporal Technologies sponsor |
Synchronization Patterns in Go — A concise article that plays a little with mutexes, semaphores, channels, and problems that can occur like race conditions. Noam Yadgar |
How We Solved an OOM Issue in TiDB with Xiqian Shao |
The Simplicity of Single-File Go Deployments
|
🛠 Code & Tools |
Participle 2.0: A Simple Parser Package — Aims to provide a straightforward and idiomatic way to define parsers in Go using a familiar approach of using struct field tags to define a grammar, so if you’ve used Alec Thomas |
v8go 0.9.0: Execute JavaScript from Go — Lets you create V8 contexts and run code Roger Chapman |
Go OpenAI: Use OpenAI's APIs from Go — Provides access to ChatGPT, GPT-3, GPT-4, DALL-E, and Whisper. Formerly known as Sasha Baranov |
O’Reilly’s Identity-Native Infrastructure Access for Kubernetes — Get your free copy to learn about identity-based infrastructure access and how it differs from secret-based approaches. TELEPORT | goteleport․com sponsor |
hot-reload: Hot Reload Development for Go in Docker Containers — Just a bit of configuration, and you’re off. (Also, we love that a hospital open-sourced this.) Departement of Clinical Research, University Hospital Basel |
Frenzy: Postgres Wire Protocol Aware Mirroring Proxy — It’s early days for this Go-based Postgres proxy, but it’s fun to see something at this stage that does actually work and may be useful if you need to build something similar of your own.. “It’s suuuuuper hacky but in 2 hours of work I was able to proxy some queries!” Kelly Sommers |
|
|
🕰 ICYMI (Older stuff we may have missed...)
|