Quine Relay is a quine program that chains together over 100 programming languages in a cycle.
The project creates an uroboros—a self-referential program that consumes its own tail. QR.rb is a Ruby program that generates a Rust program, which generates a Scala program, continuing through 128 languages total, until the final language generates the original Ruby code again. This demonstrates how quines can be composed across radically different language ecosystems, each interpreter or compiler executing code that produces the next language's source.
This is a demonstration and exploration project rather than a practical tool for production use. It serves as a technical challenge and educational artifact, showcasing language interoperability and the mechanics of quine construction at scale. Someone interested in this project is likely exploring the theoretical limits of self-generating code, studying how different languages handle string manipulation and code generation, or seeking an extreme example of polyglot programming. The project requires installing compilers and interpreters for all 128 languages, making it a substantial undertaking to run locally. The README provides installation instructions for Ubuntu, including a single apt-get command to install most interpreters and a build step for bundled ones.
The development activity shows sustained engagement with the codebase over time, with multiple iterations expanding the language chain. The project has evolved from an earlier 50-language version to the current 128-language implementation, indicating ongoing refinement and ambition to increase complexity. Maintenance includes keeping pace with language ecosystem changes, as different interpreters and compilers update their behavior and availability across systems.