Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
jwr1 ( jwr1@kbin.earth )  to Rust@programming.dev · 1 year ago

Announcing Rust 1.91.0 | Rust Blog

blog.rust-lang.org

external-link
message-square
12
link
fedilink
45
external-link

Announcing Rust 1.91.0 | Rust Blog

blog.rust-lang.org

jwr1 ( jwr1@kbin.earth )  to Rust@programming.dev · 1 year ago
message-square
12
link
fedilink
Empowering everyone to build reliable and efficient software.
alert-triangle
You must log in or # to comment.
  • SorteKanin ( SorteKanin@feddit.dk ) 
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    Duration::from_mins and Duration::from_hours seems nice. Otherwise kind of a boring release if you ask me.

    • FizzyOrange ( FizzyOrange@programming.dev ) 
      link
      fedilink
      arrow-up
      12
      ·
      1 year ago

      They’re released on a schedule so they are often quite boring.

      • SorteKanin ( SorteKanin@feddit.dk ) 
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        I know, but they used to be more exciting I feel like - but I guess it’s only natural that development speed goes down as more and more low-hanging fruit has already been picked. What remains of the non-boring stuff is probably quite complicated and difficult to stabilize.

  • BB_C ( BB_C@programming.dev ) 
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    You see, rust platform support can’t be bad when even meme platforms can get to tier 1.

    • Alex G ( alex_is@infosec.exchange ) 
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      @BB_C @jwr1

      that’s awesome. gave me a chuckle. gotta love rust (i use a lot of rust)

  • NGram ( NGram@piefed.ca ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    The strict_* set of integer function look interesting though I’m unlikely to use something that panics by design. I’m sure that’s useful in programs that panic to indicate problems. Do those exist? I always treat panics as a design failure.

    Duration::from_mins() is useful for me since I’ve been doing Duration::from_secs(minutes * 60) for some things in my projects, which bugged me a bit.

    • FizzyOrange ( FizzyOrange@programming.dev ) 
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      The non-strict versions also panic by default, but only in debug mode. So if you were willing to use abs() you should be willing to use strict_abs().

      Arguably a bit of a mistake to have the “obvious” function names be surprisingly unsafe, but I guess it’s too late to fix that.

      • flying_sheep ( flying_sheep@lemmy.ml ) 
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        I think this is where safety and performance are actually in conflict.

        I think guaranteeing a panic leads to much worse code gen in this case.

        • FizzyOrange ( FizzyOrange@programming.dev ) 
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          Yes that’s true, but the point is you should have to opt in to surprising or risky behaviour.

  • 1984 ( 1984@lemmy.today ) 
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    So much excitement here… Dont all talk at once.

    • NGram ( NGram@piefed.ca ) 
      link
      fedilink
      English
      arrow-up
      13
      ·
      1 year ago

      User named 1984 wanting us to talk… hmmm

      • 1984 ( 1984@lemmy.today ) 
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        :) Probably right to be careful, im a bit nuts.

Rust@programming.dev

rust@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !rust@programming.dev

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 69 users / week
  • 272 users / month
  • 764 users / 6 months
  • 118 local subscribers
  • 8.32K subscribers
  • 1.27K Posts
  • 3.76K Comments
  • Modlog
  • mods:
  • snowe ( snowe@programming.dev ) 
  • Ategon ( Ategon@programming.dev ) 
  • EdTheLegendary ( EdTheLegendary@programming.dev ) 
  • torcherist ( torcherist@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code