Hacker News with Generative AI: Go Programming

Scaling LLMs with Golang: How we serve millions of LLM requests (assembled.com)
While the LLM ecosystem is overwhelmingly Python-first, we've found Go to be exceptionally well-suited for production deployments. Our Go-based infrastructure handles millions of monthly LLM requests with minimal performance tuning. Beyond Go's well-documented advantages (see Rob Pike’s excellent distillation of Go's benefits), three capabilities have proven particularly valuable for LLM workloads: static type checking for handling model outputs, goroutines for managing concurrent API calls, and interfaces for building composable response pipelines.
How to Handle Go Security Alerts (jarosz.dev)
“Our reports say your software is not secure and has critical and high vulnerabilities. Our delivery pipeline is not working. We can’t upgrade applications in production environments!”. You see Slack messages and Salesforce escalation tickets. It doesn’t look good.
Implementing Raft: Part 0 – Introduction (2020) (thegreenplace.net)
This is the first post in a multi-part series describing the Raft distributed consensus algorithm and its complete implementation in Go. Here is a complete list:
Ergo Chat – A modern IRC server written in Go (github.com/ergochat)
VSCode-go: Increase the Go telemetry prompt rate to 200% (github.com/golang)
Lazy Docker: The lazier way to manage everything Docker (github.com/jesseduffield)
A simple terminal UI for both docker and docker-compose, written in Go with the gocui library.
ML in Go with a Python Sidecar (thegreenplace.net)
Machine learning models are rapidly becoming more capable; how can we make use of these powerful new tools in our Go applications?
Jia Tanning Go Code (arp242.net)
The Go compiler skips files ending with _test.go during normal compilation.
Implementing Raft: Part 4 – Key/Value Database (thegreenplace.net)
This is Part 4 in a series of posts describing the Raft distributed consensus algorithm and its complete implementation in Go.
Pocketbase v0.23.0-RC Prerelease (github.com/pocketbase)
PocketBase v0.23.0-rc is a major refactor of the internals with the overall goal of making PocketBase an easier to use Go framework.
Fair: Allocating Resources Fairly at Scale (medium.com)
I recently published a Go library called FAIR, designed to maintain fair resource distribution using a randomized algorithm called stochastic fair BLUE with constant memory requirements.
Distributed transactions in Go: Read before you try (threedots.tech)
If you work with microservices, a time may come when you need a transaction running across them.
CPU Throttling for containerized Go applications explained (kanishk.io)
It’s been a long time since I wrote something here. Past few years I’ve been busy at work which is where most of my writing is done these days. This particular entry comes as an offshoot of a production disaster I saw and then took the opportunity to dive deep and learn more. What seemed like a convoluted problem at the outset, ended up being pretty fascinating in the end.
Go and my realization about what I'll call the 'Promises' pattern (utoronto.ca)
Over on the Fediverse, I had a belated realization:
Writing an HTTP Server in Go from Scratch: Part 1 (krayorn.com)
Follow along while I write an HTTPServer in Go From scratch following a codecrafters challenge.
Show HN: Goroutine Monitor Powered by eBPF (github.com/keisku)
gmon is a tool designed to monitor the creation and destruction of goroutines in a Go program, drawing inspiration from the presentation Real World Debugging with eBPF.
Don't defer Close() on writable files (2017) (joeshaw.org)
But this idiom is actually harmful for writable files because deferring a function call ignores its return value, and the `Close()` method can return errors. **For writable files, Go programmers should avoid the `defer` idiom or very infrequent, maddening bugs will occur.**
Language and shell in Go with 92% test coverage and instant CI/CD [video] (youtube.com)
Show HN: Monogo – Evolve your go workspace to a real monorepo (github.com/nicolasgere)
Duck typing (horror) in Go (ccampo.me)
An unordered list of things I miss in Go (capivaras.dev)
Hertz: A High-Performance Go HTTP Framework for Microservices (github.com/cloudwego)
Age is a simple, modern and secure file encryption tool, format, and Go library (github.com/FiloSottile)
Coroutines in Go: Runtime Implementation and Iterators (unskilled.blog)
Common Interface Mistakes in Go (medium.com)
Reading Google Sheets from a Go Program (thegreenplace.net)
Gio UI – Cross-platform GUI for Go (gioui.org)
Go fixes its 7th code execution bug in the same feature (mattermost.com)
Type-Enforced Access Control with Go Generics (render.com)
For Go programmers, a cheap CGo pattern to give Jia Tan a headache (github.com)