lemmy.onlylans.io
  • Communities
  • Create Post
  • Create Community
  • 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

message-square
47
fedilink
718

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

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

    Now call that C program from some other program in another language.

    • JasonDJ@lemmy.zip
      link
      fedilink
      arrow-up
      27
      ·
      edit-2
      2 months ago
      with open('program.c', 'w') as f:
          f.write(
      """I'm not actually going to copy down the program... 
      
      But you get the idea of the joke.
      
      Right?""")
    • 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.

    • xthexder@l.sw0.com
      link
      fedilink
      arrow-up
      7
      ·
      2 months ago

      May I present to you: https://github.com/mame/quine-relay

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

        It’s… Beautiful.

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: [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
Visibility: Public
globe

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

  • 2.93K users / day
  • 4.61K users / week
  • 9.23K users / month
  • 17.6K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.39K Posts
  • 51K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org