Cogindo
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
0x0@lemmy.zip to Programmer Humor@programming.dev · 11 天前

race conditions

lemmy.zip

message-square
87
fedilink
854

race conditions

lemmy.zip

0x0@lemmy.zip to Programmer Humor@programming.dev · 11 天前
message-square
87
fedilink
  • ILikeBoobies@lemmy.ca
    link
    fedilink
    arrow-up
    42
    ·
    11 天前

    Why is the crab not Rust. This is outrageous, it’s unfair

    • d_k_bo@feddit.org
      link
      fedilink
      arrow-up
      37
      arrow-down
      1
      ·
      edit-2
      11 天前

      Rust would be some borrow checker compile error like

      borrowed data escapes outside of associated function
      
      argument requires that `'1` must outlive `'static`
      
      • pewgar_seemsimandroid@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        17
        ·
        11 天前

        rust errors are funny if you don’t know rust

        • milicent_bystandr@lemm.ee
          link
          fedilink
          arrow-up
          13
          ·
          11 天前

          News at Ten: Borrowed Data Escapes Outside of Associated Function

        • Ephera@lemmy.ml
          link
          fedilink
          English
          arrow-up
          8
          ·
          11 天前

          Those also happen to be errors you’d typically run into, if you don’t yet really know Rust…

          • d_k_bo@feddit.org
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            10 天前

            I do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.

      • jumping_redditor@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        11 天前

        you can still segfault in rust iirc

        • jenesaisquoi@feddit.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          10 天前

          Not in safe Rust. Only if you explicitly tell the compiler “I got this, don’t worry” but then fuck up.

          • jumping_redditor@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            10 天前

            I guess they fixed the weirdness involving calling main later in the program

            • Ephera@lemmy.ml
              link
              fedilink
              English
              arrow-up
              1
              ·
              10 天前

              As in, you call main() recursively? Don’t think, I’ve ever tried that in any language…

          • jumping_redditor@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            10 天前

            https://github.com/Speykious/cve-rs

Programmer Humor@programming.dev

programmer_humor@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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 374 users / day
  • 4.79K users / week
  • 10.1K users / month
  • 19.6K users / 6 months
  • 1 local subscriber
  • 24.3K subscribers
  • 1.52K Posts
  • 56.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.10
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org