Self-replicating Python code | Quine

preview_player
Показать описание
Code shown in the video:

Gödel, Escher, Bach by Douglas R. Hofstadter:
Рекомендации по теме
Комментарии
Автор

The 128-language ouroboros quine is one of the most creative things I have seen being done with code.
It cycles through 128 different programming languages and repeats.

davictor
Автор

The book "I am a strange loop" by Douglas Hofstadter is highly recommended to get a deeper insight into this kind of stuff.

Lky
Автор

I thought I had some understanding of python...now I feel dumb.

divBy
Автор

I thought he would write "we live in a society", so disappointed

wiclignicpodcast
Автор

For loop-: Did that guy just copy me?
While loop-: He sounded exactly like me

ygproduction
Автор

You really need to interview Douglas Hofstadter man!

chrisbigred
Автор

I'm loving the "cool little bits of information that I find interesting" videos! Definitely keep makin more! 👍

idkartist
Автор

For me this video was like a song in a foreign language: you don't understand the lyrics, but it sounds beautiful)

eliyanori
Автор

Fantastic as always Lex. It really puts the perspective of the simplicity from which complicated behaviour can occur, which is so unintuitive. Gödel, Escher, Bach just moved leaps forward in my 'to-read' list.

skoogy
Автор

Lex, I really love your philosophical perspective on the sciences, and it is something I think is deeply needed in the public. I am a philosophy student who has transfered to studying computer science, and the beauty (if you are willing to see it) in computation is endless. Thank you for your work!!!

johndee
Автор

Wow! I didn't know about quines and introns, that is amazing. This is my favorite channel on YouTube.

ZyroZoro
Автор

This is an interesting avenue to pursue for AI development. Just as we’ve modeled neural networks on real neurons, the Quine could model self-replicating, even mutating, source code on DNA/RNA. Absolutely fascinating. Thanks for sharing this.

chancehamaker
Автор

Please Lex, more material like this. You are precise, easy to understand and what I love the most, you find concepts that appear to also exist in other spaces. Thank you thank you and thank you!!.

santiagobmx
Автор

Fascinating. I'm just barely starting to learn Python so this is inspiring. I said I wasn't subscribing to any other channels, but... haha. You got me.

imagep
Автор

Thank you, i understand nothing of coding yet i found this awe inspiring

yoshimitsusushi
Автор

You can easily make the self-replicating code by reading and coping the line from the file itself and then place the code into a var... out-outing them. Placing into to loop you can create endless ways of the code to any other language with timers on them. The danger of this, you could create virus that are unstoppable. Think as a Photoshop filter, the code could become an image or sound and when you watch or play them, you are re-creating the same image and sounds to any other formats by emending them on files in a form of "space" between the code line, making impossible to detect. With self duplicating code, is the foundation of real AI. If you master self replicating code you master AI in many ways.

InteractiveDNA
Автор

It's interesting how close the Python example is to Quine's original English example of self-referential paradoxes: "Produces falsehood when preceded by its quotation" produces falsehood when preceded by its quotation.

donnathelightningbug
Автор

No one had recommended this amazing secret but today I am glad.

adityadhar
Автор

I remember writing code on my sinclair zx spectrum (basic I think it was) where the last line was 'goto line 1' so it repeated whatever I'd written again in a never ending loop of screen changing colours or whatever I'd written. I was so proud as a 10 Yr old 😆

Onestringpuppet
Автор

loving the new code related posts 🤓
betting i'm far from the only developer you have in your subscriber list 🙏

dankoni