KDE Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Björn Tantau to Programmer Humor@programming.dev • 2 months ago

Pretty straight forward

swg-empire.de

message-square
47
fedilink
721

Pretty straight forward

swg-empire.de

Björn Tantau to Programmer Humor@programming.dev • 2 months ago
message-square
47
fedilink

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

  • tiredofsametab
    link
    fedilink
    19•2 months ago

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

    • @JasonDJ@lemmy.zip
      link
      fedilink
      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 TantauOP
      link
      fedilink
      24•2 months ago

      Rust, to make it safe.

      • tiredofsametab
        link
        fedilink
        15•2 months ago

        step 1: unsafe fn()…

        • Traister101
          link
          fedilink
          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
            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
      7•2 months ago

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

      • tiredofsametab
        link
        fedilink
        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: !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
  • 900 users / day
  • 3.95K users / week
  • 8.19K users / month
  • 17.9K users / 6 months
  • 23.2K subscribers
  • 1.4K Posts
  • 51.2K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org