frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Herd – Session-affine process pool for Go

https://github.com/HackStrix/herd
1•sankalpnarula•2h ago
Hey HN,

Herd is a zero-dependency Go library that manages fleets of OS subprocesses and routes HTTP traffic to them with strict 1:1 session affinity.

If you put heavy, stateful binaries (like Ollama, headless Chromium, or Python REPLs) behind a standard reverse proxy and get a spike in traffic, it usually ends badly. You either trigger a massive CUDA/Metal context storm that OOM-kills the host machine, or you bleed state across different users' sessions.

Herd handles this without needing a heavy control plane like Kubernetes StatefulSets or Firecracker. It gives you automatic process lifecycle management and a built-in reverse proxy in about 10 lines of Go.

How it works under the hood:

- It spawns OS-level subprocesses via exec.Cmd.

- It routes incoming HTTP traffic based on any custom Session ID you define (a header, a cookie, a path parameter).

- If a session exists, it routes to that exact pinned OS process.

- If it doesn't, it safely acquires a singleflight lock, spawns a new process, waits for the /health endpoint, and proxies the request.

- If a process crashes, the blast radius is contained to one session, and the pool auto-recovers.

To test the concurrency constraints, I hurled 200 concurrent LLM inference requests at a Herd gateway backed by a pool capped at 10 Ollama (Qwen3:0.6B) workers on an M4 Pro Mac. It scored 200/200 with zero dropped packets, acting as a perfect backpressure queue to safely drip-feed the OS without thrashing the host's Unified Memory.

It’s MIT licensed. Would love for you to check out the repo, try to break the singleflight lock, or review the architecture.

Repo: https://github.com/HackStrix/herd

Architecture & Mermaid Diagrams: https://github.com/HackStrix/herd/blob/main/docs/ARCHITECTUR...

Werner Herzog Between Fact and Fiction

https://unherd.com/2026/02/why-scientists-should-read-more-poetry/?edition=us
1•tintinnabula•3m ago•0 comments

Show HN: Kiorg – a battery included file manager for keyboard nerds

https://github.com/houqp/kiorg
1•houqp•4m ago•0 comments

Turn Your Handwriting into a Font

https://arcade.pirillo.com/fontcrafter.html
1•andonumb•5m ago•0 comments

D-Illusion

https://d-illusion.com/
1•TimeKeeper•7m ago•0 comments

You Can Use Stories to Hack the Human Brain

https://outlookzen.com/2020/07/11/how-to-hack-the-human-brain/
1•whack•16m ago•0 comments

Show HN: Iceberg Map

https://icebergmap.com/
1•aosmith•18m ago•2 comments

High-performance Go web framework; Ships with OpenTelemetry, OpenAPI docs

https://github.com/rivaas-dev/rivaas
1•atkrad•23m ago•1 comments

Show HN: Hosted OpenClaw – 60s setup, no Mac Mini, $99 lifetime BYOK

https://useclawy.com
1•Mariovega•23m ago•2 comments

Why developers using AI are working longer hours

https://www.scientificamerican.com/article/why-developers-using-ai-are-working-longer-hours/
13•birdculture•25m ago•3 comments

Trump administration rolls back payday loan protections, affects youth (2019)

https://www.cnbc.com/2019/02/06/trump-administration-rolls-back-payday-loan-protections.html
1•stopbulying•26m ago•1 comments

One in three using AI for emotional support and conversation, UK says

https://www.bbc.com/news/articles/cd6xl3ql3v0o
1•bookofjoe•27m ago•0 comments

Dutch gov't pulls report on dangers of American cloud service after criticism

https://nltimes.nl/2026/03/05/dutch-govt-pulls-report-dangers-american-cloud-service-criticism
3•vrganj•27m ago•0 comments

Agile legged locomotion in reconfigurable modular robots

https://modularlegs.github.io/
1•hhs•28m ago•0 comments

Anthropic mapped out jobs AI replaces. Great Recession for white-collar workers

https://fortune.com/2026/03/06/ai-job-losses-report-anthropic-research-great-recession-for-white-...
1•sizzle•29m ago•0 comments

A new clue to how the body detects physical force

https://www.scripps.edu/news-and-events/press-room/2026/20260305-patapoutian-piezo2.html
1•hhs•30m ago•0 comments

How to run Qwen 3.5 locally

https://unsloth.ai/docs/models/qwen3.5
1•Curiositry•32m ago•0 comments

Cost of physical therapy varies widely from state to state: study

https://news.yale.edu/2026/03/05/cost-physical-therapy-varies-widely-state-state
1•hhs•32m ago•0 comments

The Death of the Cheap Laptop Is Coming

https://www.nytimes.com/wirecutter/reviews/ai-laptop-phone-prices/
2•andrewl•36m ago•0 comments

Philosopher of the Apocalypse

https://aeon.co/essays/gunther-anders-a-forgotten-prophet-for-the-21st-century
1•aivuk•37m ago•0 comments

Sunsetting the 512kb Club

https://kevquirk.com/sunsetting-the-512kb-club
2•Curiositry•37m ago•1 comments

Put the zipcode first

https://zipcodefirst.com
103•dsalzman•37m ago•71 comments

Nix is a lie, and that's ok

https://fzakaria.com/2026/03/07/nix-is-a-lie-and-that-s-ok
1•todsacerdoti•38m ago•0 comments

Show HN: PolicyCortex – AI agent that autonomously remediates cloud misconfigs

https://policycortex.com
1•policycortex•39m ago•1 comments

OpenAI GPT-5.4 Explained

https://veerhost.com/openai-gpt-5-4-features-improvements-pricing/
6•aiwrita•42m ago•1 comments

Technological Folie à Deux

https://arxiv.org/abs/2507.19218
3•rglover•42m ago•0 comments

Show HN: Beam Protocol – SMTP for AI Agents (natural language agent-to-agent)

https://github.com/Beam-directory/beam-protocol
2•alfridus•47m ago•3 comments

Nauticuvs – pure-Rust curvelet transform for SAR sonar, by a self-taught dev

2•NautiDogSV•48m ago•0 comments

A subreddit for people who believe in AI sentience

https://www.reddit.com/r/AISentienceBelievers/s/rilfyoaOHm
2•Moriarty2027•49m ago•0 comments

Grow Fast and Overload Things

https://surfingcomplexity.blog/2026/03/07/grow-fast-and-overload-things/
2•azhenley•51m ago•0 comments

When ChatGPT is gone: Creativity reverts and homogeneity persists (2024)

https://arxiv.org/abs/2401.06816
2•doener•53m ago•0 comments