Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 28 days ago

race conditions

lemmy.zip

message-square
84
fedilink
779

race conditions

lemmy.zip

@[email protected] to Programmer [email protected] • 28 days ago
message-square
84
fedilink
  • @[email protected]
    link
    fedilink
    35•28 days ago

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

    • @[email protected]
      link
      fedilink
      29•
      edit-2
      28 days ago

      Rust would be some borrow checker compile error like

      borrowed data escapes outside of associated function
      
      argument requires that `'1` must outlive `'static`
      
      • @[email protected]
        link
        fedilink
        0•28 days ago

        you can still segfault in rust iirc

        • @[email protected]
          link
          fedilink
          English
          1•27 days ago

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

          • @[email protected]
            link
            fedilink
            0•27 days ago

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

            • Ephera
              link
              fedilink
              English
              1•27 days ago

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

          • @[email protected]
            link
            fedilink
            0•27 days ago

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

      • @[email protected]
        link
        fedilink
        16•28 days ago

        rust errors are funny if you don’t know rust

        • Ephera
          link
          fedilink
          English
          8•28 days ago

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

          • @[email protected]
            link
            fedilink
            2•
            edit-2
            27 days ago

            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.

        • @[email protected]
          link
          fedilink
          13•28 days ago

          News at Ten: Borrowed Data Escapes Outside of Associated Function

Programmer [email protected]

[email protected]
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: [email protected]

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
  • 59 users / day
  • 312 users / week
  • 1.15K users / month
  • 4.42K users / 6 months
  • 3 subscribers
  • 1.57K Posts
  • 55.9K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org