Hacker News with Generative AI: Go

New Go Garbage Collector (bsky.app)
Hypervisor as a Library (seiya.me)
Before we dive into the topic, let me introduce you my new friend catsay, a simple Go program which eats stdin and speaks like a cat:
Too Much Go Misdirection (tedunangst.com)
Poking through layers of indirection in go trying to recover some efficiency.
Kelp – simple replacement for homebrew on macOS (github.com/crhuber)
A simple alternative to homebrew for installing binary packages on MacOS written in Go.
Understanding the Go Scheduler (nghiant3223.github.io)
Understanding the Go scheduler is crucial for Go programmer to write efficient concurrent programs. It also helps us become better at troubleshooting performance issues or tuning the performance of our Go programs. In this post, we will explore how Go scheduler evolved over time, and how the Go code we write happens under the hood.
Xray: A full-behavior-chain anti-malware system built in Go by a student (ycombinator.com)
Gophyr: Building a Gopher Client for Zephyr with Claude (memfault.com)
This article chronicles my unexpected 3-hour adventure using Claude to create Gophyr: a fully functional Gopher client for Zephyr, complete with a Zephyr shell command set.
Show HN: I vibe coded an open-source Go app to back up DBs using Docker labels (github.com/resulgg)
Label Backup is a lightweight, Docker-aware backup agent that automatically discovers and backs up your containerized databases based on Docker labels.
Self-hostable webhook tester in go (testwebhook.xyz)
Webhook Tester is a lightweight platform that lets developers create temporary webhook endpoints to inspect and debug HTTP requests in real-time.
Odin, a pragmatic C alternative with a Go flavour (bitshifters.cc)
Odin is a general-purpose systems programming language authored by Bill “gingerBill” Hall. Designed as a modern alternative to C, Odin emphasizes simplicity, performance, and readability without sacrificing control over low-level details.
Cogentcore: Open-source framework for building multi-platform apps with Go (github.com/cogentcore)
Cogent Core is a free and open source framework for building powerful, fast, elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and web with a single Go codebase, allowing you to Code Once, Run Everywhere (Core). See the Cogent Core Website for more information, including extensive documentation and interactive examples you can directly edit and run. The website itself is a Cogent Core app running on the web using wasm.
Leak and Seek a Go Runtime Mystery (cyolo.io)
"We think we have a problem." That's how the conversation with the customer success team started: A polite heads-up about a potential memory leak by the platform team. Little did we know, we were about to embark on a debugging adventure worthy of any great detective novel. Within hours, three of our largest customers were reporting significant performance issues. Clearly, this wasn't just "a problem." It was a full-blown crisis.
Hunting down a C memory leak in a Go program (2021) (medium.com)
Over the last few years at Zendesk, both Go and Kafka have been increasingly growing in importance in our architecture.
Proposal: Add bare metal support to Go (github.com/golang)
I propose the addition of a new GOOS target, such as GOOS=none, to allow Go runtime execution under specific application defined exit functions, rather than arbitrary OS syscalls, enabling freestanding execution without direct OS support.
Linux wiper malware hidden in malicious Go modules on GitHub (bleepingcomputer.com)
A supply-chain attack targets Linux servers with disk-wiping malware hidden in Golang modules published on GitHub.
Runtime: Green tea garbage collector (Go) (github.com/golang)
This issue tracks the design and implementation of the Green Tea garbage collector. As of the last update to this issue, development of Green Tea is still active. We'll produce more detailed design document once we're ready to commit to a design. For now, Green Tea is available as an experiment at tip-of-tree and is planned as to be available as an opt-in experiment in Go 1.25, once it releases. We encourage teams to try it out.
Show HN: Self-Hosted HTTPS Tunnel in 300 LoC with Go, Caddy, and Cloudflare (nexo.sh)
TL;DR: I built a lightweight, self-hosted HTTP tunnel that turns localhost into a public HTTPS URL. No paid plans, no secret black boxes. Just one Go binary, Caddy with wildcard TLS, and a $0/month Oracle Cloud VM. GitHub repo
Building Small Go Containers? (github.com/randomizedcoder)
This is an example repo with a relatively simple go program.
Goenums: Type Safe Enum Generator for Go (github.com/zarldev)
goenums addresses Go's lack of native enum support by generating comprehensive, type-safe enum implementations from simple constant declarations.
Show HN: Fullstack Go app (SSRfront end+APIback end+Docker) with clean structure (github.com/norbix)
Demo application containing fullstack solution in pure Golang.
Cheating the Reaper in Go (mcyoung.xyz)
Even though I am a C++ programmer at heart, Go fascinates me for none of the reasons you think. Go has made several interesting design decisions:
HTTP/0.9 from Scratch (2024) (kmcd.dev)
Welcome to the first installment of our “HTTP from Scratch” blog series! In this series, we’ll embark on a journey through the evolution of the Hypertext Transfer Protocol (HTTP), the backbone of the World Wide Web. By building simple implementations of each major HTTP version in Go, we’ll gain a deep understanding of how this essential protocol has shaped the internet we use every day and how it has evolved to what we have now.
Layered Design in Go (jerf.org)
This post will describe how I design my programs in Go. I needed this for work, and while I searched for a link, nothing quite fits my coding practices out there. The word “Layered” can pull up some fairly close descriptions, but I want to lay out what I do.
Optimizing Heap Allocations in Go: A Case Study (dolthub.com)
Last month, a commit that was supposed to be a no-op refactor caused a 30% regression in sysbench's types_scan benchmark.
Ask HN: Writing an Interpreter in Go or Crafting Interpreters? (ycombinator.com)
I'm thinking of learning about compilers and am pleased to find that there seems to be at least two very accessible choices, "Writing An Interpreter In Go" and Crafting Interpreters. Curious if folks here have experience with either and could provide recommendations?
Ten Commandments of Go (bitfieldconsulting.com)
As a full-time Go teacher and writer, I spend a lot of time working with students to help them write clearer, better, and more useful Go programs. I’ve found that a lot of the advice I give them can be reduced to a fairly small set of general principles, and here they are.
Rust is easy? Go is hard? (medium.com)
I recently had a project pop up where I thought Go would be a really good fit. It’s been a while since I actually have used Go for anything, so I also thought it’d be a fantastic opportunity to practice and not lose those skills. It turns out, Rust is actually easier to use than Go. Here is the story.
Using Signals with Go (calhoun.io)
Signals are messages that can be sent to running programs, and are often used to request that a program performs a specific behavior. The most common signal is likely the SIGINT signal, which is sent when a developer presses Ctrl+C in the terminal. This signal tells the program to stop running, and is how we terminate a running process.
Rust vs. Go (bitfieldconsulting.com)
Which is better, Rust or Go—and does that question even make sense? Which language should you choose for your next project in 2025, and why? How does Rust compare with Go in areas like performance, simplicity, safety, features, scale, and concurrency?
In Two Moves, AlphaGo and Lee Sedol Redefined the Future (2016) (wired.com)
SEOUL, SOUTH KOREA --- In Game Two, the Google machine made a move that no human ever would. And it was beautiful. As the world looked on, the move so perfectly demonstrated the enormously powerful and rather mysterious talents of modern artificial intelligence.