Reading up on rust
72 deep · digging since nov 21, 25
- kern: fast rootless container sandbox and virtual resource runtime
Kern is a 1.52 MB, daemonless, rootless container runtime that starts kernel-enforced sandboxes from OCI images in ~3.5 ms, with Python/Node SDKs and MCP server for AI-generated code.
- Pinning Down Rust’s Pin
The post explains Rust’s Pin type, showing how it enforces immovability for self‑referential futures via the type system and the Unpin marker trait.
- How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache
Cloudflare reduced its Big Pineapple DNS cache entry size by 56% through five Rust optimizations, freeing ~100 TB of memory while boosting insert throughput 43% and cutting lookup latency 19%.
- Self-hosting mail without opening a single port - dilluti0n.com
The author shows how to run a home mail server with no open ports by routing mail via Cloudflare, a Rust http2lmtp proxy, Dovecot, OpenSMTPD, and smtp2go.
- Bun 1.4 | Bun Blog
Bun 1.4 rewrites the runtime in Rust, adds built-in headless browser automation, image and markdown APIs, boosts Node.js compatibility, and reduces CPU and memory usage.
- JP's Website · 2026-08-22 · Why aren't my two Cortex-A9 cores cache coherent?
On a Terasic DE0-Nano-SOC, two Cortex-A9 cores cannot see each other's memory writes despite enabled MMU, caches, and SCU, revealing a cache coherence failure.
- Fast and Hard Code
LLMs diminish the need to learn language specifics, letting developers choose languages like Rust and Zig for speed and size, and tackle complex low‑level projects without deep expertise.
- JIT Compiling Code in 5μs - malisper.me
The article demonstrates a Rust copy‑and‑patch JIT compiler that compiles regexes in ~5µs, matching handwritten speed and enabling per‑query JIT in databases.
- Bun 1.4 Rust rewrite is not looking good
The author argues that Bun’s Rust rewrite, driven heavily by AI, has caused delays, rising open PRs, and community frustration over broken promises and code quality.
- Fibs and Fibbonacci - is LOGOS faster than Zig?
LOGOS is not the fastest language; its speed claims rely on toy benchmarks, non‑idiomatic comparisons, and a benchmark bug that makes it slower than Zig after correction.
- What's the best programming language for coding agents?
Dan Luu's empirical tests with LLMs on Zstd and Pandoc implementations show that language popularity weakly correlates with better outcomes, but claims about dynamic or token-efficient languages being superior for coding agents do not hold across non-trivial tasks.
- Rust Is Eating JavaScript
Rust is rapidly replacing JavaScript tooling across bundling, linting, formatting and more, with many projects now default Rust-based by the 2026.
- Show HN: A self-running space economy SIM in Rust and Bevy
The author introduces a self-running space‑economy simulation written in Rust using the Bevy game engine, demonstrating emergent trade and resource dynamics.
- Claude Code uses Bun written in Rust now
Claude Code has switched its underlying runtime to Bun, a JavaScript toolkit implemented in Rust, to improve performance and developer experience.
- A new software engineering paradigm – Blog
Using formal verification, AI agents can generate code and machine‑checked proofs, removing the need for human code review and overcoming the AI‑generated‑code bottleneck.
- Sätteri
Sätteri combines a high-performance Rust Markdown/MDX engine with extensible JavaScript plugins to offer fast, customizable document processing for developers in web applications.
- Postgres rewritten in Rust, now passing 100% of the Postgres regression tests
A rewrite of PostgreSQL in Rust has successfully passed all official regression tests, demonstrating full compatibility with the original database system.
- The Pulse: What can we learn from Bun’s rapid Rust rewrite with AI? - The Pragmatic Engineer
Bun’s Zig-to-Rust rewrite was completed in 11 days using 64 AI agents, costing $165K, showing AI can accelerate large migrations when a solid test suite and expert oversight exist.
- Autoresearch, Claude and Constrained Optimization
An experiment using Claude Code to autonomously optimize a file compression algorithm over 10 iterations, achieving competitive results against standard tools by iterating on an LZSS-based approach.
- Nub — an all-in-one toolkit for Node.js
Nub is a TypeScript-first toolkit for Node.js that provides a faster npm/pnpm run, a pnpm-compatible package manager, and a Node version manager, with no lock-in.
- I wrote a 70x faster SQL parser while barely looking at the code - PostHog
The author used AI agents to rewrite PostHog's SQL parser in Rust, achieving a 70x speedup (454x in production) via property-based testing and oracle-based development.
- Astro 7.0 | Astro
Astro 7.0 ships a Rust compiler, Rust-based Markdown pipeline, queue-based rendering, Vite 8 with Rolldown, advanced routing, route caching, and AI-friendly dev server modes.
- GitHub - columnar-tech/databow at console.dev
databow is a command-line tool for querying databases via ADBC, offering an interactive SQL shell, syntax highlighting, formatted output, and file export.
- Introducing Nub: an all-in-one toolkit for Node.js — Nub
Nub is a Rust CLI that augments Node.js with TypeScript execution, fast script/bin running, built-in version management, and a pnpm-compatible package manager — all without replacing Node's runtime.
- Astro 6.4 | Astro
Astro 6.4 releases a pluggable Markdown processor API, a faster Rust-based Sätteri processor, and Cloudflare helpers for experimental advanced routing.
- Use boring languages with LLMs
Using boring languages like Go with LLMs reduces variance in training data, leading to more predictable and reliable code generation.
- Thread by @llama_index on Thread Reader App – Thread Reader App
LlamaIndex released LiteParse v2.0, a Rust rewrite that achieves up to 100x faster parsing and runs natively in Rust, JS/TS, and other ecosystems.
- The occasional `ECONNRESET`
Closing a TCP socket with `shutdown(RD_WR)` or `close()` can cause `ECONNRESET` errors for the peer because data still in flight may be discarded before the receiver finishes reading.
- bun/docs/PORTING.md at claude/phase-a-port · oven-sh/bun
This document defines the rules and idiom map for porting the Bun JavaScript runtime from Zig to Rust in a two-phase process: Phase A produces a draft Rust file, and Phase B makes it compile.
- Formatting an entire 25 million line codebase overnight: the rubyfmt story
Stripe's Developer Productivity team extended rubyfmt, a Rust-based zero-config autoformer, and applied it to their entire 25 million line Ruby codebase in a single overnight run.
- Show HN: A terminal spreadsheet editor with Vim keybindings
A terminal spreadsheet editor with Vim keybindings, written in Rust, for editing CSV, TSV, and PSV files.
- Drunk post: Things I've learned as a senior engineer (2021)
A senior engineer's drunken list of candid career advice criticizes interview processes, praises dynamic languages, and emphasizes documentation and financial planning.
- Lisette a little language inspired by Rust that compiles to Go
Lisette compiles to Go and adds Rust-inspired features like algebraic data types, pattern matching, and no nil for better type safety.
- Show HN: Turbolite – a SQLite VFS serving sub-250ms cold JOIN queries from S3
Turbolite is a SQLite VFS serving sub-250ms cold JOIN queries from S3 using B-tree-aware page grouping and compression.
- Vite 8.0 is out!
Vite 8 replaces esbuild and Rollup with a single Rust-based bundler, Rolldown, delivering up to 10-30x faster builds.
- Ask HN: What Are You Working On? (March 2026)
Monthly Ask HN thread where developers share side projects, including a Rust iCloud downloader, a logic-puzzle site with 90 subscribers, and an A2A agent registry built on Docker.
- LLMs work best when the user defines their acceptance criteria first
Defining clear, testable acceptance criteria upfront dramatically improves LLM-generated code quality, shifting their output from plausible to actually correct.
- How does AI change Software Engineering?
Investing in codebase constraints like strong types and modularity compounds AI agent effectiveness, enabling small teams to outpace legacy-encumbered organizations.
- A case for Go as the best language for AI agents
The Hacker News discussion debates whether Go's simplicity, fast compilation, and opinionated style make it ideal for AI agents, with commenters offering counterarguments favoring Python, Rust, and other languages.
- Writing code is cheap now
The Hacker News discussion argues that while AI makes generating code cheap, writing good software remains expensive, and code is a liability rather than an asset.
- The Algorithm That Powers Your X (Twitter) Post
The X (Twitter) For You feed algorithm uses a Grok-based transformer model and open-sourced components to replace hand-crafted rules with ML, retrieving and ranking posts via in-memory stores and similarity search.
- A terminal weather app with ASCII animations driven by real-time weather data
A Rust terminal app called weathr displays real-time weather as animated ASCII scenes with rain, snow, thunderstorms, and day/night cycles.
- Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory
LocalGPT is a Rust-based local-first AI assistant with persistent memory, but relies on remote LLM API keys, sparking debate on what 'local' truly means.
- GitHub - AnthonyRonning/sage
Sage is an experimental, self-hosted AI assistant with persistent memory, encrypted messaging via Signal or Nostr, and confidential LLM inference inside a TEE.
- Deep dive into Turso, the “SQLite rewrite in Rust”
Turso rewrites SQLite in Rust to enable a new database engine compatible with SQLite's file format while addressing C's memory safety issues and adding support for concurrent writes.
- Why AI Swarms Cannot Build Architecture | An analysis of the structural limitations preventing AI agent swarms from producing coherent software architecture
AI agent swarms cannot produce coherent software architecture because architecture requires global invariants, temporal persistence, and enforcement authority—properties that swarms structurally lack.
- I made my own Git
A developer documents building a custom version control system called tvc in Rust, learning git internals through reconstruction.
- One Human + One Agent = One Browser From Scratch
A single Codex CLI agent built a basic HTML+CSS browser in three days with 20,000 lines of Rust, challenging the need for large multi-agent projects.
- Building docfind: Fast Client-Side Search with Rust and WebAssembly
Docfind uses Rust, WebAssembly, and FSTs to create a compact client-side search engine that runs entirely in the browser, with Copilot accelerating development.
- Show HN: RatatuiRuby wraps Rust Ratatui as a RubyGem – TUIs with the joy of Ruby
RatatuiRuby wraps the Rust-based Ratatui TUI library as a RubyGem, enabling native-performance terminal UIs with Ruby's syntax and ease of use.
- Show HN: An interactive physics simulator with 1000’s of balls, in your terminal
ballin is a Rust TUI app that simulates thousands of balls with realistic physics using Braille Unicode and rapier engine, controllable via keyboard and mouse.
- Don't waste your back pressure ·
Providing AI agents with automated feedback loops (back pressure) enables them to self-correct on long-horizon tasks, increasing engineer leverage.
- Show HN: Ferrite – Markdown editor in Rust with native Mermaid diagram rendering
Ferrite is a fast, native Markdown editor built with Rust and egui that renders Mermaid diagrams without JavaScript dependencies.
- Test, don't just verify
Testing is argued to be more practical than formal verification, but commenters are divided on AI’s role in making verification mainstream.
- Show HN: I built a fast RSS reader in Zig
Hys is a fast terminal RSS reader in Zig that enforces once-daily fetching to combat doomscrolling, designed like a digital morning newspaper.
- Please Just Try HTMX
Using Rust with maud and HTMX enables typed HTML components and code reuse, avoiding the need for separate template languages and complex abstractions.
- Technology | 2025 Stack Overflow Developer Survey
Python adoption accelerated sharply in 2025, Docker saw a record +17 point usage jump, and Rust remained the most admired language, according to the Stack Overflow Developer Survey.
- Announcing the Beta release of ty
Astral released the beta of ty, a Rust-based Python type checker and language server that is significantly faster than mypy and Pyright.
- AI will make formal verification go mainstream
Formal verification will become mainstream as AI coding agents leverage proof systems like Lean for validation, according to a Hacker News discussion.
- Show HN: Tascli, a command line based (human) task and record manager
Tascli is a small (<2MB), fast (<10ms) CLI task and record manager using SQLite, built in Rust.
- If you're going to vibe code, why not do it in C?
Hacker News commenters reject vibe coding in C, arguing that safer, higher-level languages like Rust are better for AI-generated code.
- Thoughts on Go vs. Rust vs. Zig
Hacker News用户就Go、Rust和Zig的设计取舍展开辩论,重点围绕RAII、内存管理和学习曲线等实际体验差异。
- Show HN: Fresh – A new terminal editor built in Rust
Fresh is a new terminal text editor and IDE built in Rust, featuring intuitive keybindings, TypeScript plugins, large file handling, and LSP support.
- GitHub - pamburus/hl: A fast and powerful log viewer and processor that converts JSON logs or logfmt logs into a clear human-readable format.
hl is a high-performance CLI tool that parses and displays JSON and logfmt logs in a human-readable format with filtering, sorting, and theming capabilities.
Takes
Git at Scale (by cursor) has been one of the most interesting blog posts i've read in a while. It came right when I was frustrated with Shopify's internal git system. As an exercise, I've implemented it over the weekend as open source. It's a single rust binary that you can point at any S3 type object store. It uses WAL and CAS primitives and requires no other data store. It also implements bundle-uri so large git repos (like our mono) are very fast to download as a chain of static bundles. Also comes with basic familiar UX.
@tobi
Fable one-shotted a Rust rewrite of the TerminalTextEffects Python library in 11M tokens. Startup time went from 87ms to 2ms and rendering speed is up by 9.6x. Now zero dependencies and a 3mb single exec 🤯 https://claude.ai/code/artifact/287825bc-7aad-4541-a7e7-fa4ba8d03612
@dhh
Fable just found a 15-30% memory efficiency improvement in Turbopack / Next.js, nearly autonomously. @tobi asked me today: what have been your “holy s***” moments with AI? My answer was: it’s every single week. And it’s accelerating. In fact, “WTFs/day” might just be my favorite metric for AI progress. It’s one thing to read benchmarks or stories online. It’s another to watch these machines pull engineering feats every day. 3 days ago? Sol helped us find novel vulnerabilities in some of the most audited code in the world. Today? Fable helps us ship this large optimization of a very complex Rust codebase. I just saw some results of work we’ve done to shrink binaries by 10-20x. List goes on.
@rauchg
We had a team of agents rebuild SQLite from its 835-page manual. It created a replica in Rust which passed 100% of a held-out test suite. Interestingly, cost varied 15x depending on which model mix we used.
@cursor_ai
@argingerigorian http://crabbox.sh
@steipete
Awesome to see! Let's replace the Alacritty core with libghostty-rs. If there are any shortcomings in the libghostty API I'll address them immediately. I know some view Ghostty as competitive to Warp at a GUI level, but the goal was always to empower other terminal apps via libghostty and there was no other vehicle to get that out than to build a GUI too (similar to Alacritty and their vte crate). I don't think I've ever talked negatively about Warp online (except maybe the login thing they fixed ages ago), I've always respected that they're trying something different. I know Warp has moved on to being a much bigger vision than "just" a terminal, but let's modernize that terminal core. :)
@mitchellh
CleanShot X is great.The subscription isn’t.So I built Better Shot an open-source, native macOS screenshot tool using Tauri + Rust.Fast. Local. Free forever.Try it → https://t.co/dVuzrOmFL7Source code included. No bullshit. pic.twitter.com/FcPZkCmuv6
@code_kartik
TIL adding your terminal here will greatly speed up compile times. https://t.co/pfitVPwQls pic.twitter.com/UmPKQVW2Sj
@steipete