Why are Rust programs slow to compile?

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • mold

    Mold: A Modern Linker 🦠

  • a-mir-formality

    a model of MIR and the Rust type/trait 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