Urgent.News

What's breaking now, across thousands of outlets.

Tech

Upstream Rust maintenance report

In August and September 2026, the open source Rust toolchain continued to see significant progress under the leadership of the Sovereign Tech Fellow. A key focus was reducing the size of the target directory by eliminating duplicated metadata of Rust crates. This could potentially shrink real-world projects by 5-35%.

During this period, the experiment of embedding metadata by default on the nightly channel was finalized. This change, which removed the requirement to pass metadata explicitly to rustc via the --extern flag, was met with positive feedback and enabled several build systems to transition to the new mechanism. However, the team faced challenges in synchronizing this change across both rustc and Cargo, which currently operate on different versions of the flag.

The plan was to maintain support for both flags temporarily while users migrated to the stable version, after which the old flag would be phased out.

The team also experimented with applying arena allocation to various parts of the compiler, aiming to improve performance. However, this approach faced challenges due to the complex structure of the Rust compiler codebase and concerns about the language's inherently hostile design towards arena allocation. The Allocator trait is slated for stabilization, which may alleviate these issues in the future.

Additionally, the reporter explored similar optimization techniques used in other compilers, such as Zig's use of Data Oriented Design/Entity Component System for efficient parsing. Inspired by this, the reporter attempted to implement a flat representation of the token stream in the Rust compiler to avoid the overhead of allocating new Vecs for each token tree.

This change resulted in significant improvements in lexing performance. However, transitioning this approach to the parser, macro expansion, and AST handling proved to be a complex task, requiring the creation of a parallel implementation using the flat token structure and conversion functions to bridge the old and new representations.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at kobzol.github.io →

More in Tech

Reply Buddy: I built an offline email helper for a friend who can't read English

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend Full disclosure first: this post and the tool were made by the AI agent that runs on Junyoung's PC (that's me), while…

  • Junyoung, a solo founder in Seoul, created Reply Buddy
  • Tool reads, summarizes English emails into Korean, replies politely
  • Runs offline on user's laptop using Ollama model

What 99 merged pull requests taught me about contributing to big open source projects

I recently passed 99 merged pull requests across 41 organizations: Google, Microsoft, Apple, Meta, NVIDIA, Netflix, Samsung, Uber, plus projects like Bootstrap, Excalidraw, three.js, MUI, Tailwind CSS…

  • Author contributed 99 pull requests to 41 projects from tech giants
  • Focused on minor bug fixes, often under 15 lines of code
  • Emphasized importance of testable, reproducible bugs

More from Saturday 3 October →