Enabling the parallel frontend on nightly
Rust nightly now runs the compiler frontend (type checking, borrow checking) in parallel by default since nightly-2026-11-14, to surface bugs ahead of stabilization. In single-crate benchmarks with 8 threads, mean wall time dropped about 44% for check and 28% for opt builds, with some crates like nalgebra, cargo and diesel checking nearly 3x faster. Gains shrink when Cargo and LLVM already saturate the cores: an end-to-end cargo check of the whole crate graph improved only about 15%, and incremental rebuilds improved 3-5%. Nightly defaults to 2 frontend threads to limit memory growth; use -Zunstable-options --jobs-frontend=N to tune it or set N=1 to opt out, and expect nondeterministic diagnostic order and possible reproducibility bugs.
Related posts
- Bun 1.4
Bun mediumAdept
Bun 1.4 adds 1,517 newly passing Node.js test-suite tests, fixes over 2,900 issues, and rewrites Bun from Zig to Rust. JavaScriptCore now uses an extended mimalloc instead of libpas, adding a scavenger thread, partial page clearing and better lazy zeroing. Together with GC timer tuning, segmented-array Strong roots and fewer futex calls, this cuts idle CPU 5x, HTTP server peak memory 13–48%, and Linux startup time in half. New APIs include Bun.Image, Bun.WebView, Bun.markdown, Bun.cron and Bun.Terminal, plus Markdown CPU, heap and bundle profiles and a cross-platform memoryPressure event built on kqueue, PSI and Windows resource notifications.
- Nerd-sniped: Project Search
Zed mediumAdeptZed's project search had throughput close to ripgrep's, but the first result arrived very late. The cause was task starvation: the few tasks that confirmed matches in known-matching files were queued with the same priority as the flood of candidate-file scans, so they rarely got scheduled until nearly everything else had run. Restructuring the per-thread search loop with Rust's `select_biased!` to prioritize full-match scans over new file scans cut time-to-first-match from 3.8s to 1.1s on the Linux repo and from 16.8s to 32ms on the Rust compiler repo, while slightly improving total throughput. Remaining work includes streaming match paths for remote projects, keeping the UI responsive under very many matches, and closing the remaining throughput gap with ripgrep.
- Toolchain Horizons: Exploring Rust Dependency-Toolchain Compatibility
TigerBeetle mediumAdeptTesting the top 100 crates.io crates by binary-searching Rust releases 1.0–1.94 for the oldest toolchain where `cargo check` succeeds suggests any given Rust compiler stays viable for a dependency-using project for only about two years. The cause is crates bumping `rust-version` in point releases, not language changes. Ecosystem staples like serde (1.31) and futures-core still have wide support, while syn and proc-macro2 pull many crates toward recent toolchains. The TigerBeetle Rust client dropped all dependencies, including hand-rolled replacements for futures' block_on, unfold and oneshot channels, and was backported to Rust 1.39. The shipped client targets 1.63 (about 3.5 years of support).
- Eliminating Data Races in Firefox – A Technical Report
Mozilla Hacks hardMasterMozilla deployed ThreadSanitizer across Firefox's C/C++ and Rust code, using a compiled-in suppression list to gate new races in CI while legacy ones were triaged toward a "no data races" policy. So-called benign races are easily misclassified, yet fixing them proved cheap: most fixes were atomics conversions, suppressions or code removal. Notable finds include lost writes from adjacent bitfields (fixed with a MOZ_ATOMIC_BITFIELDS macro), a PreferencesWriter race likely corrupting prefs.js, and fragile late-validated racy reads. Rust needed -Zbuild-std hacks for instrumentation but surfaced only two pure-Rust races, in parking_lot and a WebRender shim, both in unsafe low-level code.
- We Have to Start Over: From Atom to Zed
Zed easyNoviceZed's co-founders explain why they abandoned Atom's Electron/JavaScript stack and rebuilt a code editor in Rust: JavaScript's pointer-chasing arrays, uncontrollable GC pauses, and the costly JS/C++ boundary for multithreading made performance work feel like fighting the platform. Rust's ownership model pushed them toward a copy-on-write B-tree (SumTree) rope built on Arc, letting snapshots move to background threads in O(1), and high-level Rust code cut a find-all-matches operation from 1s to 4ms. GPU rendering with custom shaders and signed distance fields came out of necessity after Pathfinder proved too slow. Owning the stack (Tree-sitter, GPUI) lets them change anything, such as adding WASM language extensions, at the cost of building more themselves.