Why are Rust programs slow to compile?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/rust

Our great sponsors
  • Scout APM - Truly a developer’s best friend
  • Zigi - Workflow assistant built for devs & their teams
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • rust

    Empowering everyone to build reliable and efficient software.

    I got curious about a few things, notably that MIR thing that seemed to be a work in progress... But when I checked, it seems that MIR has been in use for years already, unless I missed something out. So I'm not sure how outdated the reasons I found on the old website are. Do you know the reasons why Rust has slow compilation times today?

  • bevy

    A refreshingly simple data-driven game engine built in Rust

    Dynamic linking is supported as long as you use the same compiler version for both the linking and linked programs. There is no stability guarantee, otherwise. And naturally, because this is Rust, you cannot partially change the layout of structures that cross the border without recompiling everything. But otherwise it works just fine. Check out how Bevy does it, it's quite simple in concept.

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • mold

    mold: A Modern Linker 🦠

  • a-mir-formality

    a PLT redex model of MIR and its type system

    But MIR optimizations are a bit of a mess right now. The semantics of MIR are not completely settled but that is an area of active work: https://github.com/nikomatsakis/a-mir-formality

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts