• nous@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 month ago

    Tldr; their flagship goals are:

    2024 edition: (1) supporting -> impl Trait and async fn in traits by aligning capture behavior; (2) permitting (async) generators to be added in the future by reserving the gen keyword; and (3) altering fallback for the ! type.

    Async: support for async closures and Send bounds.

    Rust in the Linux kernel: focus on the unstable features it uses so it can progress out of the experimental phase.

    And highlights other goals:

    • Stabilize cargo-script
    • Improving Rust’s borrow checker to support conditional returns and other patterns
    • Move parallel front end closer to stability
    • Ergonomic ref counting
    • Implementing “merged doctests”

    With a link to a list of 23 other goals

  • thingsiplay@beehaw.org
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    I wish Rust would adopt tokio (or any other, if better suited) as a default first citizen async runtime. Then everyone can be sure to write in that runtime , knowingly it will run. If people need a different runtime, they could still opt out of tokio and opt in to whatever they like. The freedom of choice would not be hindered, but we would gain a default runtime.

    What’s stopping this from happening?

    • Flipper@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 month ago

      Goal is to keep the std to the absolute minimum. It’s a lot easier to change a normal library and switch over, than to change std. Just ask the c++ guys about their regex support.

      That’s the reason rand, regex, num, chrono etc. aren’t part of the std.