tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
starman@programming.dev to Rust@programming.devEnglish · 3 years ago

Why Rust is the most admired language among developers?

github.blog

external-link
message-square
47
link
fedilink
  • cross-posted to:
  • rust@lemmy.ml
111
external-link

Why Rust is the most admired language among developers?

github.blog

starman@programming.dev to Rust@programming.devEnglish · 3 years ago
message-square
47
link
fedilink
  • cross-posted to:
  • rust@lemmy.ml
Why Rust is the most admired language among developers
github.blog
external-link
Rust continues to top the charts as the most admired and desired language by developers, and in this post, we dive a little deeper into how (and why) Rust is stealing the hearts of developers around the world.
  • Alonely0 🦀@mastodon.social
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    @soulsource @anlumo dude your whole code is UB. A reference & means that the data behind it never changes while any reference exists, allowing multiple pointers to point at it at the same time (aliasing); whereas a mutable reference &mut means that the data behind may only be read or written by that pointer, i.e. multiple pointers (aliasing) can’t exist. The compiler uses this to optimize code and remove stuff that you promise never happens. Always use miri, and go read the nomicon.

    • soulsource
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      That was how I thought it works until yesterday. And Miri seems to confirm what I thought.

      But then there was this comment, that suggested otherwise: https://discuss.tchncs.de/comment/2544085

      Thanks for correcting my worldview, because after that playground behaved as it should if aliasing were allowed my worldview was kinda shattered. Oh, and I had completely forgotten that Playground has Miri built in.

    • Alonely0 🦀@mastodon.social
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      @soulsource @anlumo useful links:

      https://predr.ag/blog/falsehoods-programmers-believe-about-undefined-behavior/
      https://doc.rust-lang.org/nomicon/
      https://rust-unofficial.github.io/too-many-lists/
      https://github.com/rust-lang/miri#using-miri

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.

  • 44 users / day
  • 156 users / week
  • 330 users / month
  • 1.48K users / 6 months
  • 147 local subscribers
  • 7.94K subscribers
  • 1.28K Posts
  • 5.73K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.18
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org