lemmy.cat
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Björn Tantau@swg-empire.de to Programmer Humor@programming.dev · 2 months ago

Pretty straight forward

swg-empire.de

external-link
message-square
47
fedilink
723
external-link

Pretty straight forward

swg-empire.de

Björn Tantau@swg-empire.de to Programmer Humor@programming.dev · 2 months ago
message-square
47
fedilink

By https://www.youtube.com/@yousuckatprogramming

  • Björn Tantau@swg-empire.deOP
    link
    fedilink
    arrow-up
    24
    ·
    2 months ago

    Rust, to make it safe.

    • tiredofsametab@fedia.io
      link
      fedilink
      arrow-up
      15
      ·
      2 months ago

      step 1: unsafe fn()…

      • Traister101@lemmy.today
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        Ah yes now I can… dereference a raw pointer (yes that’s essentially the only thing unsafe rust actually enables you to do, it doesn’t disable the borrow checker or anything else, it just allows you to play with pointers)

        • calcopiritus@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago
          unsafe fn<'a, T>(p: &'a T) -> &'static mut T {
              p as *cons T as *mut T as &'static mut T
          }
          

          It is a bit more than just dereferencing raw pointers.

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.

  • 2.96K users / day
  • 4.56K users / week
  • 9.29K users / month
  • 16.1K users / 6 months
  • 2 local subscribers
  • 23.1K subscribers
  • 645 Posts
  • 11.8K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org