Lemmy.eus
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 years ago

Is this a Nut?

sh.itjust.works

message-square
17
fedilink
10

Is this a Nut?

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 years ago
message-square
17
fedilink
  • muzzle@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 years ago

    Rust is more like: unless you can mathematically prove to me that this is equivalent to a nut there is no ducking way I’ll ever let you compiled this.

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      And hot take, but that’s good. I’m absolutely stupid enough for idiot gloves like that.

    • ryannathans@aussie.zone
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      edit-2
      2 years ago

      And then still segfault

      https://github.com/Speykious/cve-rs/blob/main/src/segfault.rs

      • EinfachUnersetzlich@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        If you can make safe Rust segfault you’re doing something wrong.

        • xlash123@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          It actually is possible to segfault in safe Rust, although it is considered a bug. Proofs of concept are shown in this cve-rs crate.

          If you want an explanation of why this happens, I recommend this video: https://youtu.be/vfMpIsJwpjU

        • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          2 years ago

          IME Rust programs crash at about the same rate as other languages. “Rewrite everything in Rust” hasn’t made much of a difference for me, so far.

          • nick@campfyre.nickwebster.dev
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            A crash is different to a SEGFAULT. I’d be very surprised to see a safe rust program segfault unless it was actively exploiting a compiler bug.

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.

  • 1.74K users / day
  • 4.33K users / week
  • 9K users / month
  • 16.2K users / 6 months
  • 3 local subscribers
  • 27.9K subscribers
  • 1.79K Posts
  • 43.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org