Why do lifetimes need to be leaky?

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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • mrustc

    Alternative rust compiler (re-implementation)

    No, you don't. Existential proof: mrustc ignores lifetimes. Just flat out simply ignores. It changes some corner-cases related to HRBT, yet rustc compiled by mrustc works (that's BTW mrustc exist: to bootsrap the rustc compiler).

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • hylo

    The Hylo programming language

    A model without lifetimes is also being explored in other languages, e.g. in Hylo. It sacrifices expressiveness, but on the other hand you don't have to deal with explicit lifetimes!

  • rust

    Empowering everyone to build reliable and efficient software.

    For now the closest thing to inferred lifetimes are closures, which are effectively functions where the signature is fully inferred, and they already give headaches around lifetime inference (see for example https://github.com/rust-lang/rust/issues/70263). If you never encountered this issue, it's because you always passed closures to functions which take a generic type F: Fn(...), and the compiler could use that Fn(...) as the signature of your closure, hence avoiding inferring it. But if that Fn(...) is not present (even just using another trait that has a Fn(...) supertrait) then everything breaks!

  • polonius

    Defines the Rust borrow checker.

    Correctness prover which uses lifetimes (Polonius).

  • gccrs

    GCC Front-End for Rust

    That's why gccrs doesn't even consider lifetime checking a part of the language (they plan to use Polonius, too).

  • llvm-project

    The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

    C++ compiler which compiles the Rust as if it were C++ (LLVM).

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

  • GCC Rust Approved by GCC Steering Committee

    9 projects | news.ycombinator.com | 11 Jul 2022
  • Adding a Rust compiler front end to GCC

    7 projects | news.ycombinator.com | 17 Jun 2022
  • Take your first steps with Rust

    11 projects | news.ycombinator.com | 18 Apr 2021
  • Why am I writing a Rust compiler in C?

    4 projects | news.ycombinator.com | 25 Aug 2024
  • How hard would it be to port the Rust toolchain to a new non-POSIX OS written in Rust and get it to host its own development? What would that process entail?

    3 projects | /r/rust | 5 Jul 2023

Did you konow that C++ is
the 6th most popular programming language
based on number of metions?