# mame/quine-relay

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/mame-quine-relay).**

14,425 stars · 568 forks · Ruby

## Links

- GitHub: https://github.com/mame/quine-relay
- awesome-repositories: https://awesome-repositories.com/repository/mame-quine-relay.md

## Topics

`quine`

## Description

This project is a multi-language quine relay, a collection of source code files where each program outputs the source code for the next in a sequence until the original code is recreated. It serves as a technical demonstration of recursive program execution and polyglot code generation, verifying the integrity of multi-stage code cycles across diverse programming languages.

The system distinguishes itself through automated relay orchestration, which triggers sequential compilation and execution steps to ensure the entire chain functions correctly. Each program contains the encoded logic required to generate the subsequent language in the sequence, and the framework includes automated verification to confirm that the final output maintains structural and functional equivalence with the original source.

To ensure consistent execution across complex language runtimes, the project utilizes containerized environments that bundle the necessary compilers and interpreters. This approach supports the integration of niche or esoteric programming languages, allowing for the development of complex, multi-stage generation cycles that demonstrate language interoperability and self-replication.

## Tags

### Programming Languages & Runtimes

- [Quine Relay Implementations](https://awesome-repositories.com/f/programming-languages-runtimes/quine-relay-implementations.md) — Produces a sequence of source files across different programming languages where each program outputs the code for the next. ([source](https://github.com/mame/quine-relay#readme))
- [Quine Generators](https://awesome-repositories.com/f/programming-languages-runtimes/programming-language-varieties/programming-languages/quine-generators.md) — Implements a multi-language relay where each program generates the source code for the next in a recursive sequence.
- [Multi-Language Runtimes](https://awesome-repositories.com/f/programming-languages-runtimes/python-language-features/multi-language-runtimes.md) — Orchestrates chains of programs where each source file generates the code for the next language in the sequence. ([source](https://github.com/mame/quine-relay/tree/114f44fefd610812d2f5e3032603762752ed51b2))
- [Source Code Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers.md) — Creates sequences of source code files across many programming languages where each program outputs the next. ([source](https://github.com/mame/quine-relay/tree/233ba8b4e1d7e4c59a46d64481048a8ea7f4400e))
- [Esoteric Programming Languages](https://awesome-repositories.com/f/programming-languages-runtimes/programming-language-varieties/programming-languages/language-specific-resources/esoteric-programming-languages.md) — Supports the testing and implementation of niche and experimental programming languages within complex generation cycles.

### Repository Format

- [Quine Relays](https://awesome-repositories.com/f/repository-format/quine-relays.md) — Functions as a multi-language quine relay where each program outputs the source code for the next in a sequence.

### DevOps & Infrastructure

- [Automation Orchestration](https://awesome-repositories.com/f/devops-infrastructure/automation-orchestration.md) — Coordinates and sequences complex multi-step automated workflows across diverse language environments.
- [Containerized Execution Environments](https://awesome-repositories.com/f/devops-infrastructure/containerized-execution-environments.md) — Bundles compilers and interpreters within isolated containers to ensure consistent execution across diverse runtimes.

### Development Tools & Productivity

- [Recursive Generators](https://awesome-repositories.com/f/development-tools-productivity/compilers-toolchains/source-compilation-tools/source-generators/recursive-generators.md) — Constructs programs that output the exact source code of the subsequent program in a recursive chain.
- [Source Generators](https://awesome-repositories.com/f/development-tools-productivity/compilers-toolchains/source-compilation-tools/source-generators.md) — Produces sequences of source files where each file contains the logic to generate the next language in the chain. ([source](https://github.com/mame/quine-relay/tree/7b81d8704549d31814499c5300be2be9568467c8))
- [Source Embedding Mechanisms](https://awesome-repositories.com/f/development-tools-productivity/cross-language-service-generators/source-embedding-mechanisms.md) — Encodes the logic required to generate subsequent languages directly within the source files.
- [Code Generation](https://awesome-repositories.com/f/development-tools-productivity/project-scaffolding-config-code-generation/code-generation.md) — Orchestrates chains of programs that output the source code for the next language until the original is recreated. ([source](https://github.com/mame/quine-relay/tree/6e173d76e972e1da7992b84768bf9f4c788949ed))
- [Recursive Generators](https://awesome-repositories.com/f/development-tools-productivity/project-scaffolding-config-code-generation/code-generation/recursive-generators.md) — Orchestrates recursive source code generation across diverse programming languages to demonstrate self-replication.
- [Polyglot Execution Orchestrators](https://awesome-repositories.com/f/development-tools-productivity/code-execution-environments/polyglot-execution-orchestrators.md) — Orchestrates the compilation and execution of multi-stage program sequences across various language interpreters.
- [Output Comparison Utilities](https://awesome-repositories.com/f/development-tools-productivity/terminal-shell-cli/competitive-programming-tools/input-output-parsers/output-comparison-utilities.md) — Compares generated source code against original inputs to verify structural and functional equivalence.

### Software Engineering & Architecture

- [Relay Verification Frameworks](https://awesome-repositories.com/f/software-engineering-architecture/reproducibility-verifiers/automated-fix-verifiers/relay-verification-frameworks.md) — Executes chains of programs across different interpreters to confirm the final output matches the original source code. ([source](https://github.com/mame/quine-relay/tree/7b81d8704549d31814499c5300be2be9568467c8))
- [Equivalence Verifiers](https://awesome-repositories.com/f/software-engineering-architecture/architectural-design-patterns/design-patterns/functional-design-patterns/functional-programming/equivalence-verifiers.md) — Automates the verification of generated source code against original inputs to ensure functional integrity. ([source](https://github.com/mame/quine-relay/tree/ad3f8222c796969db8cfb1bae015a46c2387b3d6))

### Education & Learning Resources

- [Technical Demonstrations](https://awesome-repositories.com/f/education-learning-resources/interactive-demonstrations/technical-demonstrations.md) — Provides a technical showcase of recursive program execution and multi-stage code generation integrity.
