Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 year ago

Is this a Nut?

sh.itjust.works

message-square
13
fedilink
11

Is this a Nut?

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 year ago
message-square
13
fedilink
  • muzzle@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 year 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
      1
      ·
      1 year 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
      1 year ago

      And then still segfault

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

      • EinfachUnersetzlich@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

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

        • xlash123@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          1 year 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
          ·
          1 year 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
            ·
            1 year 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.

  • 594 users / day
  • 4.97K users / week
  • 10.1K users / month
  • 19.2K users / 6 months
  • 1 local subscriber
  • 24.2K subscribers
  • 1.05K Posts
  • 22.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org