Björn Tantau@swg-empire.de to Programmer Humor@programming.dev · 2 months agoPretty straight forwardswg-empire.deimagemessage-square44linkfedilinkarrow-up1698file-text
arrow-up1698imagePretty straight forwardswg-empire.deBjörn Tantau@swg-empire.de to Programmer Humor@programming.dev · 2 months agomessage-square44linkfedilinkfile-text
minus-squaretiredofsametab@fedia.iolinkfedilinkarrow-up19·2 months agoNow call that C program from some other program in another language.
minus-squareJasonDJ@lemmy.ziplinkfedilinkarrow-up26·edit-22 months agowith 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?""")
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up7·2 months agoMay I present to you: https://github.com/mame/quine-relay
Now call that C program from some other program in another language.
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?""")
Rust, to make it safe.
step 1:
unsafe fn()
…May I present to you: https://github.com/mame/quine-relay
It’s… Beautiful.