Self-Reproducing Programs

Опубликовано: 20 Июль 2026
на канале: Tsoding
188,732
8.4k

References:
Rust Compiler: https://github.com/rust-lang/rust/
Porth Compiler: https://gitlab.com/tsoding/porth
Porth Playlist:    • Porth  
Reflection on Trusting Trust: https://www.cs.cmu.edu/~rdriley/487/p...
Quine: https://en.wikipedia.org/wiki/Quine_(...)
Quine Relay: https://github.com/mame/quine-relay
Source Code: https://gist.github.com/rexim/d961342...

Support: https://github.com/tsoding/donate

Chapters:
00:00 - Self-Hosting
02:57 - Q Programming Language
03:43 - Fist Attempt
05:12 - Newlines in String Literals
05:40 - The Paradox
06:23 - The Self Variable
07:30 - The Escape Macro
08:50 - The Double Print Observation
09:12 - The Question Mark Anchor
10:12 - Self Escaping
11:24 - Escaping the Escaping
12:39 - The Triple Print Problem
13:18 - Self-Hosting Achieved Internally
13:57 - Trusting Trust
15:40 - Quine
16:25 - Ouroborous
16:47 - The C End
18:32 - The Python End - self "Keyword"
19:13 - The Python End - Extracting C Part
19:55 - The Python End - The Question Mark
20:23 - The Python End - Escaping the Self
21:09 - Assembling the Ouroborous
21:43 - The Bar Gotcha
22:44 - The Brackets Mistake
23:11 - The Ouroborous Has Been Completed
24:00 - Quine Relay