惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Last Watchdog
The Last Watchdog
量子位
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
有赞技术团队
有赞技术团队
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
雷峰网
雷峰网
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
V
Visual Studio Blog
C
Check Point Blog
爱范儿
爱范儿
罗磊的独立博客
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
H
Help Net Security
B
Blog
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 叶小钗
B
Blog RSS Feed
Cisco Talos Blog
Cisco Talos Blog
S
Schneier on Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
T
Tor Project blog
TaoSecurity Blog
TaoSecurity Blog
Scott Helme
Scott Helme
AI
AI
D
DataBreaches.Net
Simon Willison's Weblog
Simon Willison's Weblog
V
Vulnerabilities – Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Last Week in AI
Last Week in AI
T
Threatpost
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
Know Your Adversary
Know Your Adversary
T
Tailwind CSS Blog
N
News and Events Feed by Topic
N
News and Events Feed by Topic
The Hacker News
The Hacker News
P
Proofpoint News Feed

Hacker News

Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests Retrofitting JIT Compilers into C Interpreters IPv6 – Google The Accursèd Alphabetical Clock Cybersecurity Looks Like Proof of Work Now Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent When moving fast, talking is the first thing to break Too much Discussion of the XOR swap trick – Heather Cafe Introduction to Spherical Harmonics for Graphics Programmers The Grand Line Building a Z-Machine in the worst possible language High-Level Rust: Getting 80% of the Benefits with 20% of the Pain GitHub - duguyue100/midnight-captain: Inspired by Midnight Commander, tailored to my taste. How to build a `git diff` driver · Jamie Tanna | Software Engineer Center for Responsible, Decentralized Intelligence at Berkeley The Local Universe’s Expansion Rate Is Clearer Than Ever, but Still Doesn’t Add Up - A new synthesis of astronomical measurements confirms a persistent mismatch that could point to physics beyond current models The air throughout our homes is infused with microplastics. But there are things you can do to breathe less of them The disturbing white paper Red Hat is trying to erase from the internet – OSnews The Future of Everything is Lies, I Guess: Annoyances ‘Abhorrent’: the inside story of the Polymarket gamblers betting millions on war Productive procrastination — Max van IJsselmuiden maps, territory and LMs 447 Terabytes per Square Centimetre at Zero Retention Energy: Non-Volatile Memory at the Atomic Scale on Fluorographane Show HN: Pardonned.com – A searchable database of US Pardons 20 Years on AWS and Never Not My Job The Seasons are Wrong Artemis II crew splashes down near San Diego after historic moon mission We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs How a dancer with ALS used brainwaves to perform live On filing the corners off my MacBooks Installing every* Firefox extension OpenClaw’s memory is unreliable, and you don’t know when it will break Steve Blank Nowhere Is Safe Chimpanzees in Uganda locked in vicious 'civil war', say researchers watgo - a WebAssembly Toolkit for Go linux/Documentation/process/coding-assistants.rst at master · torvalds/linux GitHub - callumlocke/json-formatter: Makes JSON easy to read. Founding Product Engineer at Bild AI | Y Combinator A compelling title that is cryptic enough to get you to take action on it GitHub - Keychron/Keychron-Keyboards-Hardware-Design: Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms. [ANNOUNCE] WireGuardNT v0.11 and WireGuard for Windows v0.6 Released 1D-Chess Helium Is Hard to Replace Cooperative Vectors Introduction | Evolve Keeping a Postgres queue healthy — PlanetScale Our response to the Axios developer tool compromise Do Americans read print books, e-books or audiobooks more? The Zettelkasten Method in Obsidian: A Practical Setup Guide Artemis II Is Competency Porn and We Are Starving For It WeakC4 Flight Viz — Cockpit View A Mexican surveillance giant you’ve never heard of is now watching the U.S. border Surelock: Deadlock-Free Mutexes for Rust RISC-V 101 – what is it and what does it mean for Canonical? | Ubuntu The Problem That Built an Industry How Much Linear Memory Access Is Enough? | Solidean Investigating Split Locks on x86-64 Simplest hash functions Sybilproof reputation mechanisms (2005) [pdf] What is a property? How Complex is my Code? Static code analysis in Kotlin — tools overview Toffoli gates are all you need PGLite evangelism dcmake: a new CMake debugger UI Clojure on Fennel part one: Persistent Data Structures Fragments: April 2 Python Release Python install manager 26.1 The Life and Death of the Book Review - Liberties Introducing Database Traffic Control — PlanetScale Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8% God sleeps in the minerals Building slogbox Apple Silicon and Virtual Machines: Beating the 2 VM Limit Who was “Not Even Wrong” first? Pokemon Evolution Vs Darwinian Evolution The APL Programming Language Source Code
Just Fucking Use Go - Blain Smith
2026-05-08 · via Hacker News

Hey, dipshit. You know what compiles in two seconds, deploys as a single binary, and doesn't shit itself when a transitive dependency gets yanked from npm at 3am? Go. The same way HTML has been sitting there since the dawn of the goddamn internet waiting for you to stop overcomplicating the frontend, Go has been sitting there for over a decade waiting for you to stop overcomplicating the backend.

But no. You're out there gluing together fifteen Node packages, three TypeScript build tools, and a Kubernetes cluster to serve a fucking form. You hired a Platform Team to babysit your Rails monolith. You convinced your CTO that Rust was necessary for a CRUD app that does maybe forty requests a second. Congratulations, asshole. You played yourself.

The language is boring on purpose

You know why Go feels boring? Because it is, and that's the goddamn point. There are no decorators. No metaclasses. No macros. No traits, monads, or whatever cursed abstraction the Haskell crowd is huffing this week. There are structs, functions, interfaces, goroutines, and channels. That's it. You can read the spec on a lunch break and be productive that afternoon.

Boring means the junior you hired last month can read the code the principal wrote two years ago. There's exactly one way to format it and gofmt already did it. Your "clever" coworker can't sneak a seventeen-layer abstraction into the codebase because the language won't let him. That's what shipping looks like when nobody is drooling over their own cleverness.

The standard library is the framework

Stop looking for a framework, you absolute walnut.

The standard library is the framework.

package main

import (
    "embed"
    "html/template"
    "net/http"
)

//go:embed templates/*.html
var files embed.FS

var tmpl = template.Must(template.ParseFS(files, "templates/*.html"))

func main() {
    http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
        tmpl.ExecuteTemplate(w, "index.html", map[string]string{
            "Name": "asshole",
        })
    })

    http.ListenAndServe(":8080", nil)
}

That's a working web app. HTML templates compiled into the binary. No webpack. No Vite. No "dev server". No node_modules the size of a fucking Volkswagen. You go build and you ship one file. Drop it on a server. Done.

You want a database? database/sql. JSON? encoding/json. Want to talk to another service? net/http is also a client. Want to do five things at once? Slap go in front of it. Tests? go test. Benchmarks? go test -bench. A profile? pprof is already there laughing at your console.log debugging.

The stdlib is also fucking deep

io.Reader and io.Writer are two interfaces with one method each. They are also the reason you can pipe an HTTP response body into a gzip writer into a file on disk in three lines without thinking about it. Every serious package in the ecosystem speaks them. Once you grok that, half of Go's "magic" turns out to be the same two interfaces showing up everywhere.

context.Context is how you cancel things. A user closes the browser tab, the request context cancels, the database query cancels, the downstream HTTP call cancels. All the way down. No leaked goroutines. No zombie queries chewing through your connection pool. You pass it as the first argument and you respect it. That's the whole API.

encoding/json, encoding/xml, encoding/csv, encoding/binary, all in the stdlib. Same struct tag pattern. Same decode-into-a-pointer ergonomics. Learn one and you basically know them all.

Concurrency that doesn't make you cry

Goroutines are not threads. They are stackful, multiplexed onto OS threads by the runtime, and they cost about 2KB to start. You can spawn a hundred thousand of them on a laptop. Try that with your Node event loop and watch it shit the bed.

Channels are typed pipes between goroutines. You send on one end, you receive on the other, and the runtime handles the synchronization. If you need shared state instead, sync.Mutex is right there, and the race detector will tell you when you screwed up.

results := make(chan string, len(urls))
for _, url := range urls {
    go func(u string) {
        resp, _ := http.Get(u)
        results <- resp.Status
    }(url)
}
for range urls {
    fmt.Println(<-results)
}

That's a parallel HTTP fetcher. No library, no framework, no async/await ceremony. The language does it.

A real example, not a hello-world

Here's a CRUD route reading from Postgres and rendering HTML. The whole thing.

//go:embed templates/*.html
var tmplFS embed.FS

var tmpl = template.Must(template.ParseFS(tmplFS, "templates/*.html"))

type Post struct {
    ID    int
    Title string
    Body  string
}

func postsHandler(db *sql.DB) http.HandlerFunc {
    return func(w http.ResponseWriter, r *http.Request) {
        rows, err := db.QueryContext(r.Context(),
            "SELECT id, title, body FROM posts ORDER BY id DESC LIMIT 50")
        if err != nil {
            http.Error(w, err.Error(), http.StatusInternalServerError)
            return
        }
        defer rows.Close()

        var posts []Post
        for rows.Next() {
            var p Post
            if err := rows.Scan(&p.ID, &p.Title, &p.Body); err != nil {
                http.Error(w, err.Error(), http.StatusInternalServerError)
                return
            }
            posts = append(posts, p)
        }

        tmpl.ExecuteTemplate(w, "posts.html", posts)
    }
}

Database, templates, and an HTTP handler in one screen. Request context wired through to the query so a closed connection cancels the SQL. No ORM, no DI container, no service layer, no controllers/ directory with seventeen abstract base classes. You can read it top to bottom and know exactly what it does.

Dependencies that don't ruin your weekend

go mod init. Done. Your dependencies live in go.mod and go.sum. The sum file is a cryptographic record of what you actually got, so you can tell when somebody pulls a left-pad on you. There is no node_modules directory. There is no lockfile drift between dev and CI. There are no peer dependencies, no optional dependencies, no devDependencies, no peerDependenciesMeta. There is one file that lists what you use, and one file that proves you got what you expected.

You want offline builds? go mod vendor drops everything into a vendor/ directory and the toolchain uses it automatically. The whole project, dependencies and all, fits in a tarball. Your security team will weep with gratitude.

The tooling ships with the compiler

gofmt formats your code. There is no debate. There is no .prettierrc holy war. The format is the format and everyone uses it. Your diffs stay small because nobody is rearranging whitespace.

go vet catches the obvious mistakes. go test runs your tests. go test -race runs them with the race detector and finds the data races you thought you didn't have. go test -bench runs benchmarks. go test -cover tells you what you missed. go tool pprof gives you flame graphs of CPU and memory usage from a running production service through an HTTP endpoint you wire up in two lines.

None of this is third-party, none of it is a plugin, and none of it requires a config file you have to maintain. It's in the box.

Deployment is a copy command

This is the part that makes Rails and Node people physically angry. You build a Go binary. You copy it to a server. You run it.

GOOS=linux GOARCH=amd64 go build -o myapp ./cmd/myapp
scp myapp user@server:/usr/local/bin/
ssh user@server 'systemctl restart myapp'

Three commands. Done. No Dockerfile. No multi-stage build. No base image CVE alerts every Tuesday. No Kubernetes manifest. No Helm chart. No ArgoCD. No service mesh. No sidecar.

A 12MB statically linked binary and a 20-line systemd unit file is a production deployment. It will outlive your career. The only reason to reach for Docker is if your ops team is contractually required to use it, and even then you can shove the binary into a FROM scratch image and call it a day.

"But what about Rails / Django / Express / Next?"

What about them? Rails needs a deploy ritual involving Capistrano, three config files, and a goat. Django wants you to learn its ORM, its admin, its middleware system, and its opinions about everything. Express is held together with npm audit warnings and prayers. Next.js changes its routing conventions every six months and gaslights you about it.

Your Go binary doesn't care. It compiled and it runs, and it'll still run in five years on hardware that doesn't exist yet. Your framework? Deprecated by Christmas, and the maintainer will write a Medium post about burnout.

"But microservices!"

No.

Write the fucking monolith. One Go binary. One Postgres. One Redis if you absolutely must. Serve HTML on the same port that serves your JSON API. Run it on a single VPS that costs less than your monthly oat milk budget. Scale that to ten thousand requests per second without breaking a sweat because Go was literally designed for this and goroutines are cheap as hell.

When you actually need to split it up, and you won't, splitting a Go monolith is just moving packages into their own repos. The interfaces are already there. You designed for it without trying because the language made you.

"But generics! But error handling! But no exceptions!"

if err != nil is the feature, not the bug. It forces you to look at every place something can go wrong and decide what to do about it. Your try/catch nesting hellscape doesn't make errors disappear, it just hides them until production at 2am.

Generics landed in 1.18. They're fine. Use them when you need them. Stop whining.

Just fucking use Go

Stop pretending you need a framework. You don't need microservices either, or a Rust rewrite, or whatever JavaScript meta-framework launched last Tuesday that's going to save you when the last six didn't.

Open your editor. Run go mod init, write a main.go, embed your templates, and compile. Ship the damn thing.

The boring choice is the right choice. It always was.