‹ BackHN Continuity

Thread

How to speed up the Rust compiler in September 2026

279 points · 171 comments · trickypr

  1. slowin · · focus · HN ↗
    I've moved from Rust to Go for most things because in the era of agents, being able to iterate quickly on a project is a huge advantage and Rust is way, way slower than Go for compilation. There are times when Rust is more appropriate, but for the vast majority of things Go is perfectly fine.
    1. echelon · · focus · HN ↗
      I nearly did this, but then I swapped to writing native desktop apps and egui - Rust is still worth it.

      I've stopped using Tauri and gone with 100% egui. It's cross platform and excellent, and if you give it design constraints it will look beautiful.

      Check out my 100% adobe clean room reimplementations:

      <a href="https:&#x2F;&#x2F;github.com&#x2F;storytold&#x2F;filmcraft" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;storytold&#x2F;filmcraft

      <a href="https:&#x2F;&#x2F;github.com&#x2F;storytold&#x2F;photocraft" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;storytold&#x2F;photocraft

      <a href="https:&#x2F;&#x2F;github.com&#x2F;storytold&#x2F;drawcraft" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;storytold&#x2F;drawcraft (going to rename this vectorcraft)

      The #1 thing for the Rust project to do is make Rust faster to compile.

      Rust is the agentic AI language. It just needs to lean in and go faster.

      1. tcfhgj · · focus · HN ↗
        &gt; The #1 thing for the Rust project to do is make Rust faster to compile.

        #0 get rid of the orphan rule

        1. Quitschquat · · focus · HN ↗
          What&#x27;s the orphan rule?
          1. estebank · · focus · HN ↗
            Rust doesn&#x27;t let you write an impl a trait that wasn&#x27;t declared in your crate for a type that wasn&#x27;t declared in your crate. At least one of the two needs to be locally declared. This makes splitting projects into multiple crates harder than it could be, but on the other hand it makes the crates ecosystem less brittle than it otherwise would be.

            Some people propose relaxing this rule for &quot;workspaces&quot; (local projects with multiple crates that are not published individually). I haven&#x27;t researched whether that would be technically feasible.

            1. echelon · · focus · HN ↗
              It absolutely should be relaxed for workspaces.

              Workspaces are a great way to architect larger projects and monorepos, and they&#x27;d at least be internally consistent.

            2. mrkeen · · focus · HN ↗
              If you built two impls, your compiler wouldn&#x27;t know which to pick. Or to phrase it differently, if you wanted to be able to choose the right one, it wouldn&#x27;t be &#x27;orphan impls&#x27;, it would be &#x27;orphan impls plus some selection mechanism&#x27;. E.g. Scala implicits. And once you have Scala implicits, non-orphan impls probably start looking like a pretty sweet alternative!
        2. panstromek · · focus · HN ↗
          btw. That could actually make it slower to compile. The compiler uses the orphan rule to short circuit some checks IIRC.

          Nevertheless, people in the project are trying to figuring out a way to relax the rule while still maintaining coherence, so this might happen some day.

          1. cztomsik · · focus · HN ↗
            there are good reasons, obviously, but it&#x27;s my #1 PITA, #2 is comptime type introspection (it looks like @yara-blue is making some progress, so fingers crossed)

            BTW: cheers, we should grab a beer some day :)

            1. panstromek · · focus · HN ↗
              We should ;)
      2. the_sleaze_ · · focus · HN ↗
        These are great
      3. slowin · · focus · HN ↗
        Very cool projects! I agree, desktop apps are one of the areas that Rust beats Go. It&#x27;s too bad though, since I feel anything with a heavy GUI like this can benefit from a rapid iteration cycle which is painful with Rust.
      4. xutopia · · focus · HN ↗
        Wow those are some nice applications! Thanks for sharing this!
      5. jlahijani · · focus · HN ↗
        !!! WOW !!!
      6. mixmastamyk · · focus · HN ↗
        Looks great. It&#x27;s early but how well do they work? Comparable to FOSS apps yet?

        Also it says egui is immediate mode, does that use a lot of {C,G}PU or have any other issues?

      7. nonethewiser · · focus · HN ↗
        Are agents able to control these well? I saw vector craft mention MCP and a command api. Whats the command api? No CLI it sounds like.
        1. echelon · · focus · HN ↗
          Working on it! That&#x27;s the intent for all of these.

          Going to do Toon Boom and a few others too and build them as a suite.

      8. pjmlp · · focus · HN ↗
        Machine code is the ultimate agentic AI language, we will eventually get there, we are in the middle of the transition to 5 GLs.
        1. echelon · · focus · HN ↗
          Humans need to understand the code.
          1. pjmlp · · focus · HN ↗
            It is right there in the 5 GL language, unless you want to convince us that all your PR come with the corresponding Assembly that the compiler generated, while doing all the compiler passes with PhD level knowledge from everyone that has worked in LLVM since 2003.
      9. shirol · · focus · HN ↗
        Checked out your GitHub profile. This is an insane amount of LLM usage. You created 7 full-blown apps, and each of them is very recent. The earliest commit was only 2 days ago.

        I&#x27;m normally against fully vibe-coded apps, but at this point, I&#x27;m just impressed.

        1. krapp · · focus · HN ↗
          Be impressed when professionals actually test them and find them competitive. Maybe these apps are good, maybe they aren&#x27;t, absent real data just being vibe-coded doesn&#x27;t imply quality and a claim like &quot;I one-shotted Photoshop&quot; should cause alarm even if you&#x27;re all in on GenAI.

          At some point we have to move on from amazement at what these models can do to actually caring about the quality of the product.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.