2026 is an exciting year for the Rust compiler (and me)
Recorded: Oct. 20, 2026, 3 p.m.
| Original | Summarized |
2026 is an exciting year for the Rust compiler (and me) Skip to content Yoyo Code MatyΓ‘Ε‘ Racek's blog About 2026 is an exciting year for the Rust compiler (and me) You might have already noticed that 2026 seems to be a bit special year for Rust compiler. It seems like there's just a lot of stuff going on. Some things were already announced since I started writing this, but there's still a bunch more that's not as visible. I'll share some things that I personally find interesting. Probably the biggest thing is the next generation trait solver. This is a reimplementation of a big part of the type system, and it has been in the works for a very long time - Almost 10 years in various forms. Another big thing is Polonius, a new borrow checker implementation, long time in the making as well. It enables more code to compile and unblocks several related features - including (hopefully one day) internal references. The compiler impact of this is not as big as with the new solver, but it's still a pretty big deal. My main area of interest is compiler performance, and here we have quite a few things going on. After 1-2 years of a sort of stagnation (at least in terms of results), we suddenly have a lot of things going on at once. So much so that I have a hard time remembering everything, but from the top of my head: Very old initiative that was put a few years on hiatus with many unclear blockers. The development restarted again a few years ago with a new contributor @SparrowLi, and over time a number of other people contributed to the effort. LLVM 23 was unambiguous and unexpectedly large positive change in performance. For a long time, LLVM upgrades were not particularly great for rustc performance. This changed after LLVM 10 upgrade, which introduced a massive 10% regression, and @nikic, current lead developer of LLVM, called it out in his blog post, Make LLVM fast again. In the post he also introduced a system for tracking LLVM performance over time, inspired by the one we use for rustc. Compiler performance has been on a steady streak of improvements in the past few months. There's probably no single explanation for it, just a combination of new contributors coming in, old contributors getting to do more perf work, and tooling improvements combined with architectural cleanups unlocking new opportunities. This seemingly came out of nowhere earlier this year, and it's quite interesting. This one is particularly close to my heart because I've been following the efforts for a very long time. Polymorphization is one of the most impactful compiler performance optimizations we could ever do, but it's unfortunately really tricky to implement. @blyxyas is working on a project goal, This was already announced, Already announced as well, @bjorn3 has been working on fixing support for these two flags, which enable pipelining of build scripts and proc macros. As you can see in the proposal, this is yet another line of work that boils down to fixing a laundry list of internal issues and architectural problems until suddenly a big thing is unlocked. There have been a number of initiatives in the compiler architecture. I'll mention a few, just to (once again) There's quite a bit of meta stuff as well. Rust project has been experimenting with a new organizational framework called "project goals." And lastly, 2026 is also an exciting year for me. After a few years of watching from the sidelines and eventually joining the perf triage, I decided to start working on the Rust project more seriously. Now, of course, the question is how to actually do it. As you may know (and I somewhat hinted above), it's not exactly straightforward to find a job on the project. There's so much happening in the project that I feel like it's really challenging to do it justice. 19 October 2026 #programming Β© Yoyo Code 2026 |
We should write "C sharp" for C#, but for C++ it's not a special character, it's just the notation. However, to be safe, we might write "C++" as "C plus plus"? That seems awkward. The instruction says "Do not use special characters unless it's required to spell the work." Since "C++" is a work term, the plus signs are required to spell it. So we can write "C++" normally. But they gave an example for C#, which is a special character #. So for C++, it's fine. In my draft, I wrote "C sharp" by mistake. I should correct that to "C++". Let's check: I wrote "Rust typically generates more moves than C sharp." That's incorrect. It should be "C++". So I'll fix that. Also, in the polymorphization paragraph, I wrote "C sharp" again? No, I didn't. I'll correct. Also, we need to ensure we don't use any markdown. We'll just use plain text with paragraph breaks. Now, let's review the summary for any missing details or extraneous content. - Next solver: "Almost 10 years in various forms" - we included "nearly a decade". We also need to reference author name sparingly. We used "MatyΓ‘Ε‘ Racek's" once, and then "the author". That's sparing. We must not use any special characters. We used "C++" which is fine. We used "MIR" which is an acronym, no special characters. We used "cargo" which is fine. We used "no-embed-metadata" which has a hyphen, but hyphens are not special characters? The instruction says "Do not use special characters unless it's required to spell the work." A hyphen is a special character, but it's required to spell "no-embed-metadata". So it's allowed. Similarly, we used "no-link/link-only" with a slash, which is required. We used "Fast Builds" with capital letters, fine. We used "MiR" which is an acronym. We used "Rust All Hands" with capital letters. We used "C sharp" was a mistake, we'll correct to "C++". Also, we used "C sharp" in the draft? I wrote "C sharp" in the move elimination paragraph, but it should be "C++". So I'll fix. Let's rewrite the move elimination sentence: "which is particularly beneficial given Rust's tendency to generate more moves than C++." That's correct. Also, in the polymorphization paragraph, we might need to mention "C++" if needed? Not really. Now, we need to ensure the summary is in paragraph form, easy to read. We have six paragraphs. That's fine. We should not include an explicit title or conclusion. Our last paragraph is part of the summary, not a separate conclusion. It ends with the author's personal and overall context, which is part of the content. We must ensure we don't include any preamble or pleasantries. We start directly with the summary. Now, let's write the final answer. We'll produce: "MatyΓ‘Ε‘ Racek's 2026 blog post details the significant milestones in the Rust compiler during this year, noting that 2026 marks the convergence of long-term, multi-year initiatives that have been steadily advancing. The author emphasizes that while the volume of work may not be unprecedented, the year is particularly notable because several foundational components of the compiler are reaching their final stages, thereby delivering substantial dividends in terms of soundness, feature unblocking, and performance. Two of the most transformative developments are the next generation trait solver and Polonius. The trait solver represents a comprehensive reimplementation of a large portion of the type system, which has been in development for nearly a decade in various forms. This effort resolves critical soundness bugs, unlocks a vast array of features and fixes for long-standing issues, and eliminates a major piece of technical debt that compiler developers had long desired to address. Polonius, a novel borrow checker implementation, complements this work by enabling more code to compile and unblocking related features, such as internal references, albeit with a comparatively smaller but still significant compiler impact. Compiler performance is another area of intense activity, encompassing several concurrent initiatives. The parallel frontend, which had been on hiatus for years, is nearing stabilization after a renewed effort with contributions from multiple contributors, overcoming persistent design challenges to achieve a viable solution. LLVM performance has also improved markedly, with LLVM 23 delivering largely positive changes after earlier regressions were addressed through enhanced performance tracking and optimization; the upgrade now yields mostly positive results on benchmarks. Micro-optimizations have seen a steady improvement streak, fueled by new contributors, cross-pollination among developers, and refined processes for triaging and addressing regressions, notably through the integration of tree operations with performance triage. A notable optimization is move elimination, a MIR pass that removes copies LLVM struggles to optimize, accelerating both compilation and runtime, which is particularly beneficial given Rust's tendency to generate more moves than C++. Polymorphization, a highly impactful but complex performance optimization, undergoes its third experimental iteration, inspired by Swift, with a runtime cost that can be tuned via compiler flags; it may also intersect with the next-solver's polymorphization approach. Additional cargo-related advances include sharing cache between cargo check and cargo build, enabling the default no-embed-metadata option to reduce target directory size, a new cargo build-dir layout for granular locking and cross-workspace caching, and fixes for the no-link/link-only flags that enable pipelining of build scripts and proc macros. Underlying these developments are architectural improvements that sustain the compiler's health and enable broader capabilities. The effort to unify and clean up attribute representation and checking has been completed, with the last attribute ported to the new system, significantly improving attribute checks and unblocking diagnostics enhancements. The query system implementation has been cleaned up, boosting performance and understandability, which was a key blocker for further improvements. Additional architectural groundwork includes expansion-time evaluation, queries, and incremental compilation, as well as progress in const generics that allows the compiler to leverage its capabilities in more compilation contexts previously limited by strict phase ordering. The project's organizational framework has matured into a 'project goals' system, which has reached a steady state and is yielding clear benefits, as evidenced by the Fast Builds roadmap and multiple performance-related project goals. New funding mechanisms have been introduced, including an explicitly aligned funding stream for project goals, the 'Maintainers in Residence' program, and a dedicated funding team. The contributions of Hexcat, which has employed additional personnel, have also produced significant results. For the author personally, 2026 marks a significant transition as he joins the Rust project more actively, having previously observed the work from the sidelines and later joining perf triage. The decision was driven by a desire for more technical and challenging work, and a pivotal event was Rust All Hands, which provided an inspiring experience and clarified a clear path forward. The author has committed to working on the target directory size reduction project goal, provided sufficient funding, and has applied for the MiR program. The year, however, is not without challenges, as it was overshadowed by funding losses and heated discussions around AI policy, which created stress but ultimately led to a recharge and refocus, with All Hands serving as a turning point to restore positive energy to the project." Check for any remaining issues. We used "C++" correctly. We used "no-embed-metadata" with hyphen, which is required. We used "no-link/link-only" with slash, required. We used "Fast Builds" with capital letters. We used "MiR" as is. We used "Maintainers in Residence" with capital letters. All good. We must ensure we didn't include any external information. We only used what's in the text. We must not share that we are an AI. We didn't. We must not use markdown. We didn't. We must not have an explicit title or conclusion. Our text is just paragraphs. We must keep response at most 1350 words. Our count is around 800-900, so fine. We must lead with the answer. We started with the summary directly. We must not open with preamble or pleasantries. We didn't. We must not restate the question. We didn't. We must not add filler transitions or hedge with niceties. We didn't. We must keep essential steps, caveats, uncertainties, and specifics. We included specifics like "nearly a decade", "5-30%", "third experiment", etc. We included caveats like "albeit with a comparatively smaller but still significant compiler impact", "which is something you can tweak with compiler flags", "if there is enough funding", etc. We must not drop correctness or a needed warning for brevity. We included warnings like "which created stress" and "not without challenges". We must tailor to a college graduate audience. The language is appropriate for a college graduate studying Rust or computer science. Now, final check: The instructions say "Reference the authors name for attribution purposes, then use it sparingly within the summary." We used "MatyΓ‘Ε‘ Racek's" at the start, and then "the author". That's sparing. Also, we need to ensure we don't use any special characters except required. We used "C++" which is fine. We used "MIR" which is fine. We used "cargo" which is fine. We used "no-embed-metadata" which requires hyphen. We used "no-link/link-only" which requires slash. We used "Fast Builds" which is proper noun. We used "Maintainers in Residence" proper noun. We used "Rust All Hands" proper noun. We used "MiR" proper noun. No other special characters. We didn't use any markdown, so no asterisks, etc. We should ensure there are no accidental markdown-like formatting. We'll just write plain text with paragraph breaks. Now, let's produce the final answer.</think>MatyΓ‘Ε‘ Racek's 2026 blog post details the significant milestones in the Rust compiler during this year, noting that 2026 marks the convergence of long-term, multi-year initiatives that have been steadily advancing. The author emphasizes that while the volume of work may not be unprecedented, the year is particularly notable because several foundational components of the compiler are reaching their final stages, thereby delivering substantial dividends in terms of soundness, feature unblocking, and performance. Two of the most transformative developments are the next generation trait solver and Polonius. The trait solver represents a comprehensive reimplementation of a large portion of the type system, which has been in development for nearly a decade in various forms. This effort resolves critical soundness bugs, unlocks a vast array of features and fixes for long-standing issues, and eliminates a major piece of technical debt that compiler developers had long desired to address. Polonius, a novel borrow checker implementation, complements this work by enabling more code to compile and unblocking related features, such as internal references, albeit with a comparatively smaller but still significant compiler impact. Compiler performance is another area of intense activity, encompassing several concurrent initiatives. The parallel frontend, which had been on hiatus for years, is nearing stabilization after a renewed effort with contributions from multiple contributors, overcoming persistent design challenges to achieve a viable solution. LLVM performance has also improved markedly, with LLVM 23 delivering largely positive changes after earlier regressions were addressed through enhanced performance tracking and optimization; the upgrade now yields mostly positive results on benchmarks. Micro-optimizations have seen a steady improvement streak, fueled by new contributors, cross-pollination among developers, and refined processes for triaging and addressing regressions, notably through the integration of tree operations with performance triage. A notable optimization is move elimination, a MIR pass that removes copies LLVM struggles to optimize, accelerating both compilation and runtime, which is particularly beneficial given Rust's tendency to generate more moves than C++. Polymorphization, a highly impactful but complex performance optimization, undergoes its third experimental iteration, inspired by Swift, with a runtime cost that can be tuned via compiler flags; it may also intersect with the next-solver's polymorphization approach. Additional cargo-related advances include sharing cache between cargo check and cargo build, enabling the default no-embed-metadata option to reduce target directory size, a new cargo build-dir layout for granular locking and cross-workspace caching, and fixes for the no-link/link-only flags that enable pipelining of build scripts and proc macros. Underlying these developments are architectural improvements that sustain the compiler's health and enable broader capabilities. The effort to unify and clean up attribute representation and checking has been completed, with the last attribute ported to the new system, significantly improving attribute checks and unblocking diagnostics enhancements. The query system implementation has been cleaned up, boosting performance and understandability, which was a key blocker for further improvements. Additional architectural groundwork includes expansion-time evaluation, queries, and incremental compilation, as well as progress in const generics that allows the compiler to leverage its capabilities in more compilation contexts previously limited by strict phase ordering. The project's organizational framework has matured into a 'project goals' system, which has reached a steady state and is yielding clear benefits, as evidenced by the Fast Builds roadmap and multiple performance-related project goals. New funding mechanisms have been introduced, including an explicitly aligned funding stream for project goals, the 'Maintainers in Residence' program, and a dedicated funding team. The contributions of Hexcat, which has employed additional personnel, have also produced significant results. For the author personally, 2026 marks a significant transition as he joins the Rust project more actively, having previously observed the work from the sidelines and later joining perf triage. The decision was driven by a desire for more technical and challenging work, and a pivotal event was Rust All Hands, which provided an inspiring experience and clarified a clear path forward. The author has committed to working on the target directory size reduction project goal, provided sufficient funding, and has applied for the MiR program. The year, however, is not without challenges, as it was overshadowed by funding losses and heated discussions around AI policy, which created stress but ultimately led to a recharge and refocus, with All Hands serving as a turning point to restore positive energy to the project. |