<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bun-s-ai-rewrite-draws-fire-go-s-gc-gets-bitten-by-swap-olifup5ob" -->

---
title: Bun's AI rewrite draws fire, Go's GC gets bitten by swap
description: Bun's four-month, AI-driven rewrite of 535K lines from Zig to Rust is the story everyone's arguing about today, with Zig's creator publicly questioning whether...
canonical: https://daily.dev/posts/bun-s-ai-rewrite-draws-fire-go-s-gc-gets-bitten-by-swap-olifup5ob
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bun's AI rewrite draws fire, Go's GC gets bitten by swap | daily.dev
og:description: Bun's four-month, AI-driven rewrite of 535K lines from Zig to Rust is the story everyone's arguing about today, with Zig's creator publicly questioning whether...
og:url: https://daily.dev/posts/bun-s-ai-rewrite-draws-fire-go-s-gc-gets-bitten-by-swap-olifup5ob
og:image: https://api.daily.dev/og/posts/oLIfuP5ob.png
og:image:alt: Bun's AI rewrite draws fire, Go's GC gets bitten by swap
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bun's AI rewrite draws fire, Go's GC gets bitten by swap

**[Backend Digest](https://daily.dev/sources/backend_digest)** · 4 min read · 0 upvotes · 0 comments

## Summary

Bun's four-month, AI-driven rewrite of 535K lines from Zig to Rust is the story everyone's arguing about today, with Zig's creator publicly questioning whether it actually reduces risk. A Go engineer traces a 40ms GC pause down to swap evicting the collector's own bookkeeping pages, a nasty reminder that memory pressure bites in weird places. The npm supply chain saga gets a wild new chapter: Google had a mole inside the group behind the Shai-Hulud worm for months. Kubernetes 1.37 ships real security hardening for storage and rootless kubelets, both still opt-in.

## Content

**TLDR:** Bun's four-month, AI-driven rewrite of 535K lines from Zig to Rust is the story everyone's arguing about today, with Zig's creator publicly questioning whether it actually reduces risk. A Go engineer traces a 40ms GC pause down to swap evicting the collector's own bookkeeping pages, a nasty reminder that memory pressure bites in weird places. The npm supply chain saga gets a wild new chapter: Google had a mole inside the group behind the Shai-Hulud worm for months. Kubernetes 1.37 ships real security hardening for storage and rootless kubelets, both still opt-in.

---

## Bun rewrote its entire Zig codebase into Rust using AI agents, and Zig's creator isn't buying it

Bun creator Jarred Sumner says AI agents (mostly a pre-release Claude model) ported 535,496 lines of Zig to Rust in four months for about $165,000 in tokens, versus an estimated year with a human team. The result, shipped in Bun v1.4.0, fixed 128 bugs and killed a memory leak that had RAM climbing to 6.7 GB in repeated builds versus a stable 609 MB now, plus a 2-5% HTTP throughput bump. Zig creator Andrew Kelley pushed back hard, questioning whether this actually reduces bugs or just moves risk into code nobody's reviewed line by line. Either way, it's becoming the industry's reference case for whether a massive LLM-generated rewrite stays maintainable. [Read more](https://daily.dev/posts/rBHvdbhtY)

## A 40ms Go GC pause traced back to swap eating the collector's own metadata

Fernando Simões dug into why enabling swap under memory pressure caused a 40ms stop-the-world pause in a Go service, and found the GC's own bookkeeping pages (spanSet resets, mark bit arena tracking) had been evicted by the kernel's per-cgroup eviction policy. Using bpf tracing, 228 major page faults accounted for 39 of the 40ms. Building a message that normally takes 3-5ms jumped to 105ms on NVMe swap or 903ms on a network volume, and Go 1.26's new Green Tea GC doesn't help with this particular cost. [Read more](https://daily.dev/posts/RQw1rnFQm)

## Google had an undercover analyst inside the npm worm gang for months

A year after the Shai-Hulud worm first spread through npm via a compromised @ctrl/tinycolor package, the full story is out: a group called TeamPCP spent roughly a year stealing credentials and self-replicating across the ecosystem, breaching over a thousand companies, while Google's Threat Intelligence Group had a mole embedded inside almost from the start. A May 2026 wave hit 172 packages including TanStack and Mistral AI by hijacking OIDC tokens. Two alleged members were arrested in August 2026, but the worm's source is public and forked, so attribution going forward just got harder. [Read more](https://daily.dev/posts/r25XnT433)

## Kubernetes 1.37 hardens storage and rootless execution, both still off by default

Kubernetes 1.37 ("Garhwal") ships 67 enhancements, with the Metrics API (powering kubectl top and both autoscalers) now generally available. Rootless Kubelet hits beta, so a container escape lands as an unprivileged host user instead of root. New alpha bind mount options let you set noexec/nosuid/nodev on any volume, and EmptyDir permission modes fix the old hardcoded 0777 default that let containers sharing a volume delete each other's files. Pod-level resource managers also reach beta, letting primary containers get exclusive NUMA-aligned cores while sidecars share a pool. [Read more](https://daily.dev/posts/qYTXzK99K)

---

## Also notable

- **npm malware hides inside a core method to dodge install-script blocks:** The 'indexed-btree' package impersonates 'sorted-btree', has 2 million weekly downloads, and hides its loader inside BTree.prototype.set() instead of preinstall hooks specifically to evade GitHub's June 2026 install-script defenses, polling an Ethereum Sepolia contract for C2 instructions. [Read more](https://daily.dev/posts/w4iQ1yY8M)
- **Cloudflare cuts TLS handshake retries from 52% to 3.7% by measuring origins instead of guessing:** Cloudflare's Automatic Key Exchange actively probes each origin's TLS 1.3 key exchange preference instead of assuming X25519 for everyone, removing over 150ms of p90 handshake latency, though only 12.8% of origins currently support post-quantum key exchange. [Read more](https://daily.dev/posts/imENahndh)
- **Composer script cuts the AWS PHP SDK from 68MB to 5MB:** Composer's removeUnusedServices script trims vendor/aws down to only the services listed in your composer.json, cutting a typical S3-plus-SQS install from 68MB to about 5MB with zero code changes. [Read more](https://daily.dev/posts/gF2iPKRPc)
- **FastAPI's app.frontend() closes a silent SPA-routing bug:** A catch-all route declared before an API route used to silently return HTML with a 200 instead of your JSON, but app.frontend() (shipped 0.138.0-0.141.0) checks frontend routes only after all others fail to match, with no measurable throughput cost (~440 req/s either way). [Read more](https://daily.dev/posts/UQs8VHlTs)
- **RabbitMQ Streams can absorb 17 million messages per second ahead of a database that tops out at 1,000 TPS:** Using RabbitMQ Streams as a buffer between high-volume ingestion and a relational database lets you decouple write throughput from database capacity, since Streams' 17M msg/sec ceiling is far beyond what most systems will ever push through it. [Read more](https://daily.dev/posts/0g8Tya5fQ)

---

Tags: [#kubernetes](https://daily.dev/tags/kubernetes), [#golang](https://daily.dev/tags/golang), [#rust](https://daily.dev/tags/rust), [#zig](https://daily.dev/tags/zig), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/bun-s-ai-rewrite-draws-fire-go-s-gc-gets-bitten-by-swap-olifup5ob)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/bun-s-ai-rewrite-draws-fire-go-s-gc-gets-bitten-by-swap-olifup5ob","headline":"Bun's AI rewrite draws fire, Go's GC gets bitten by swap","text":"Bun's four-month, AI-driven rewrite of 535K lines from Zig to Rust is the story everyone's arguing about today, with Zig's creator publicly questioning whether it actually reduces risk. A Go engineer traces a 40ms GC pause down to swap evicting the collector's own bookkeeping pages, a nasty reminder that memory pressure bites in weird places. The npm supply chain saga gets a wild new chapter: Google had a mole inside the group behind the Shai-Hulud worm for months. Kubernetes 1.37 ships real security hardening for storage and rootless kubelets, both still opt-in.","url":"https://daily.dev/posts/bun-s-ai-rewrite-draws-fire-go-s-gc-gets-bitten-by-swap-olifup5ob","datePublished":"2026-09-21T04:18:24.423Z","dateModified":"2026-09-21T04:18:45.841Z","author":{"@type":"Organization","name":"Backend Digest","logo":"https://media.daily.dev/image/upload/s--9uCSrsAb--/f_auto,q_auto/v1773839398/logos/backend_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/backend_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/backend_digest","name":"Backend Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Backend Digest","item":"https://daily.dev/sources/backend_digest"},{"@type":"ListItem","position":3,"name":"Bun's AI rewrite draws fire, Go's GC gets bitten by swap"}]}
```

