Reddit · Rust

Rust on Reddit

Recent Rust stories from Reddit. Snapbyte.dev combines r/programming, r/webdev, r/MachineLearning, r/LocalLLaMA, and r/artificial as one Reddit source. Add Reddit and Rust to a Snapbyte.dev digest to receive ranked summaries on your schedule.

Rust on Reddit · 17 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

17 stories

Saving 100 terabytes of memory by optimizing 1.1.1.1's DNS cache

blog.cloudflare.com · 27 Aug

Algorithms · Performance · Rust

Cloudflare optimized Big Pineapple’s DNS cache through five Rust storage changes: replacing growable collections, compacting section metadata, omitting repeated DNS owners, boxing large enum variants, and storing record data contiguously in wire format.

These reduced per-entry memory 56%, lowered fleet memory by roughly 100 TB, increased insert throughput 43%, and reduced lookup latency 19%.

Storing 2 bytes of data in your Logitech mouse

timwehrle.de · 21 Mar

Hardware · Low-Level Programming · Rust

A developer successfully used the Logitech MX Vertical mouse as a tiny, persistent storage device by hacking its HID++ protocol.

By writing arbitrary two-byte data into the DPI register, they demonstrated that the mouse maintains state across devices. The project highlights reverse engineering, firmware communication, and understanding OS-level hardware management through experimental technical exploration.

Rust at Scale: An Added Layer of Security for WhatsApp

engineering.fb.com · 27 Jan

Cybersecurity · C++ · Rust

WhatsApp has successfully integrated and rolled out a significant security layer built with the Rust programming language, marking a major milestone in production-grade software engineering.

This initiative, known as Kaleidoscope, replaces a legacy C++ library with 90,000 lines of Rust code to monitor and validate media files across billions of devices. By leveraging Rust's memory-safe properties, WhatsApp aims to proactively neutralize vulnerabilities like the 2015 Stagefright exploit, which targeted media parsing libraries. This rollout spans Android, iOS, Windows, Mac, and web platforms, proving Rust's scalability and performance advantages in a diverse, global environment. The transition highlights a broader shift toward memory-safe languages to mitigate high-severity vulnerabilities common in C and C++ implementations. WhatsApp's strategy underscores a defense-in-depth approach, ensuring end-to-end encryption is complemented by robust protection against sophisticated malware hidden in seemingly benign file types.

The silent death of Good Code

amit.prasad.me · 7 Feb

Artificial Intelligence · Rust · Software Architecture

Amit Prasad's article, "The silent death of Good Code," explores the shift in software engineering values amidst the rise of coding agents.

He defines 'Good Code' as readable, maintainable, and purposeful, emerging from a blend of talent, experience, and significant time investment. Prasad contrasts an AI-generated Rust rewrite of a Linux kernel subsystem with a manual human rewrite. Initially, the AI version was functional but difficult to understand and maintain. However, when his colleague manually rewrote it after deep research into the original C logic, the result was elegant and inspiring. Prasad notes that while AI agents have vastly increased developer productivity, they generally produce 'acceptable' rather than 'good' code. He suggests that the craft of writing beautiful code may be fading, similar to the historical transitions from assembly or hardware design to higher-level abstractions, mourning the loss of the human element in programming.

Announcing Rust 1.100.0

blog.rust-lang.org · 12 Nov

Programming Languages · Rust

Rust 1.100.0 stabilizes the never type after 10 years, allowing `!

` to be named anywhere and making `Infallible` an alias. It also stabilizes core custom allocator support for `Vec` and `Box`, adds `DropGuard` for cleanup or rollback on scope exit, and introduces unsafe `conjure_zst` for creating zero-sized types. Cargo now warns about unused dependencies, reduces build-cache collisions, and supports dependency cooldowns via `min-publish-age` to delay newly published versions.

My Thoughts on the Bun Rust Rewrite

andrewkelley.me · 9 Jul

Rust · Business · Open Source

The Zig Software Foundation reflects on its complex history with Bun, citing concerns over management practices, poor code quality, and technical debt.

Ultimately, the Zig team celebrates Bun's rewrite into Rust, as it alleviates friction between project visions, distances Zig from criticized engineering habits, and clarifies community boundaries after the project's acquisition.

Let's see Paul Allen's SIMD CSV parser

chunkofcoal.com · 20 Mar

Low-Level Programming · Performance · Rust

This post explains how to build a high-performance CSV parser using SIMD techniques.

By processing data in 16-64 byte chunks, the parser utilizes vectorized classification and bitwise operations to detect structural characters. These methods, including lookup tables and carryless multiplication, enable branchless, parallel parsing, significantly improving throughput for large datasets.

Debunking "Faster than Rust": Malicious Benchmarks in Tov

blog.fyralabs.com · 22 Oct

Performance · Programming Languages · Rust

Tov’s claim of outperforming Rust is undermined by benchmarks that allegedly handicap the Rust implementations.

Tests of `bigint_fib`, `dispatch`, and `map_insert` found no consistent Tov advantage: optimized Rust matched or beat Tov. The `dispatch` comparison used costly dynamic dispatch in Rust, while `map_insert` used slower `std::collections::HashMap` instead of `ahash`; `bigint_fib` results were not reproducible. Because Tov transpiles TypeScript to C, the analysis argues its design cannot meaningfully exceed Rust or C.

Replacing a 3 GB SQLite db with a 10 MB FST (finite state transducer) binary

til.andrew-quinn.me · 10 May

Algorithms · Performance · Rust

The author optimized a Finnish dictionary, Taskusanakirja, by replacing a large SQLite database with a Finite State Transducer (FST) implemented in Rust.

This transition achieved a 300x reduction in memory, compressing 40-60 million inflected word forms into just 10 MB, enabling highly efficient, portable prefix searching for agglutinative languages.

What it takes to count the Linux kernel's 36M lines of code in under 70ms

petros-papatheodorou.dev · 16 Nov

CLI · Linux · Low-Level Programming · Performance · Rust

mezura now counts the Linux v6.15 kernel’s 36 million lines in 67 ms on an 8-core Ryzen 7 9700X, down from about 0.4 seconds.

It walks 5,900 directories, reads 1.37 GB across 63,700 source files, validates UTF-8, and lexes comments and strings. The speedup came from batched work, mmap, AVX2/NEON 64-byte scans, runtime CPU dispatch, block-level line classification, and a table-driven lexer. The 41–42 ms hardware floor shows remaining overhead is software, while fuzzing and LineJudge preserve accuracy across 80+ languages.

Cloudflare Meerkat - Globally distributed consensus

blog.cloudflare.com · 8 Jul

Algorithms · Distributed Systems · Rust

Cloudflare is developing Meerkat, a globally distributed consensus service for control-plane data.

Unlike Raft-based systems, Meerkat utilizes the QuePaxa algorithm, which enables writes from any replica without relying on a leader. This design ensures high availability, strong consistency, and resilience against network instability across 330+ globally distributed data centers.

Announcing Rust 1.94.0

blog.rust-lang.org · 5 Mar

Programming Languages · Rust · News

The Rust team has released Rust 1.94.0, introducing array_windows for constant-length slice iteration and Cargo support for TOML 1.1.

Key features include configuration file inclusion in Cargo and the stabilization of several APIs like LazyCell and LazyLock, enhancing code reliability and management for developers.

Shipping JPEG XL in Chrome

developer.chrome.com · 6 Oct

Rust

Chrome 155 ships decoding support for JPEG XL, which offers 30–50% better compression than JPEG, lossless and HDR support, lossless JPEG transcoding, and progressive decoding.

Chrome integrates the pure-Rust jxl-rs decoder to reduce memory-safety risks while using SIMD optimizations through jxl_simd and a performance-oriented pipeline. The decision followed sustained developer demand and Interop 2026 testing to improve cross-browser coverage, with JPEG XL recommended alongside AVIF for high-fidelity or lossless photographic images.

Where it came fromRedditHacker NewsLobstersRust BlogAdd Reddit to your digest and follow programming, web development, machine learning, local AI, and broader AI stories without monitoring five communities yourself.Build your digest