This commit is contained in:
Miloslav Ciz 2024-10-09 14:00:06 +02:00
parent 695e83f707
commit 28d52eba80
11 changed files with 1874 additions and 1834 deletions

View file

@ -6,7 +6,7 @@ From [mathematical](math.md) viewpoint quine is a **fixed point** of a [function
Attempt mathematically similar to making quines include e.g. making self matching [regular expressions](regex.md) (for this task to be non-trivial the regex has to be for example enclosed between `/`s). Yet another similar challenge is a [polyglot](polyglot.md) program -- one that is a valid program in several languages -- some programs can be quines and polyglots at the same time, i.e. **polyglot quines**.
The challenging part of writing quines lies indeed in the [self reference](self_reference.md) -- normally we cannot just single-line print a string literal containing the source because that string literal would have to contain itself, making it [infinite](infinity.md) in length. The idea commonly used to solve the problem is following:
The challenging part of writing quines lies indeed in the [self reference](self_reference.md) and the fact that as we are working on the solution, we keep changing the goal -- normally we cannot just single-line print a string literal containing the source because that string literal would have to contain itself, making it [infinite](infinity.md) in length. The idea commonly used to solve the problem is following:
1. On first line start a definition of string *S*, later copy-paste to it the string on the second line.
2. On second line put a command that prints the first line, assigning to *S* the string in *S* itself, and then prints *S* (the second line itself).
@ -19,7 +19,7 @@ In the [Text](plaintext.md) [esoteric programming language](esolang.md) every pr
## List Of Quines
**Brainfuck**: not short, has over 2100 characters.
**[Brainfuck](brainfuck.md)**: not short, has over 2100 characters.
**[C](c.md)**: