What does HackerNews think of quine-relay?

An uroboros program with 100+ programming languages

Language: Ruby

This comes from the same dev known for the 128-language quine relay, where each of the 128 languages prints a program in the next one, looping all the way to the original one. In alphabetical order and as ASCII art, no less.

https://github.com/mame/quine-relay

Quine relay [1] is to this day the most "I will never understand this" brainfuck project I have ever seen.

> This is a Ruby program that generates Rust program that generates Scala program that generates ...(through 128 languages in total, including brainfuck!)... REXX program that generates the original Ruby code again.

It is so mysterious how it's even possible, and hilariously the explanation of how it was made exists in Japanese only. I think at this point it would be easier to learn Japanese than to try to understand this project.

Other things like a brainfuck interpreter in brainfuck are impressive but don't come nearly as close to black magic as quine-relay.

[1] https://github.com/mame/quine-relay

Quine Relay, "a Ruby program that generates Rust program that generates Scala program that generates ...(through 128 languages in total)... REXX program that generates the original Ruby code again."

https://github.com/mame/quine-relay

(HN thread: https://news.ycombinator.com/item?id=6048761)

In this context: Saves both content and the web application itself as and output html.

The wiki/app is the html file itself. If you add / remove content, you get another html file that contains the wiki app and the added / modified content.

No need for complicated applications, compatible wherever a browser runs (All OS), always compatible cos html (the raw html is human readable). No proprietary format lock in.

For the strict meaning: https://en.wikipedia.org/wiki/Quine_(computing)

For mindblowing stuff:

Quine Relay - A Ruby Program that generates Rust program that generates Scala program that generates ...(through 128 languages in total)... REXX program that generates the original Ruby code again. https://github.com/mame/quine-relay

The most amazing multi-quine I've seen is the quine relay here: https://github.com/mame/quine-relay

It goes through 128 programming languages to regen its starting point.

How does one do something like this https://github.com/mame/quine-relay

Does anyone know the core concept?

The quine (through 128 languages in total): https://github.com/mame/quine-relay
This is a beautiful feat showcasing Ruby's expressive power, don't know of any other language that could be molded to accomplish the same feat.

As a non Ruby programmer I still appreciate its culture whose community best seems to explore code as art. One of Ruby's contributors @mame (also a talented #1 IOCCC winner) does this a lot who's famous for quine-relay [1] but has lots of other interesting art code projects in their repos.

[1] https://github.com/mame/quine-relay

What about Illumos's LX-branded zones? Bryan Cantrill has bragged about how complete that implementation is, about how it could even run something as exotic as the 100-language quine relay [1]. Sure, Joyent (who did most of the recent-ish work on this) ended up exiting the public cloud business, but surely that had more to do with the brutal winner-take-all nature of that space than any failure of the technology.

[1]: https://github.com/mame/quine-relay

The source code equivalent of this is a polyglot program:

https://en.wikipedia.org/wiki/Polyglot_(computing)

Apparently people on Stack Exchange have been working together on a single polyglot program for four years and have gotten a single codebase up to validity in nearly 300 languages.

https://codegolf.stackexchange.com/questions/102370/add-a-la...

Edit: also, Yusuke Endoh is a master at this art form

https://github.com/mame/quine-relay

and has even written a book about it

http://uguu.org/words/2015_10_01.html

which I would still love to have available in English!

I might be late to the party, but:

Software can be art in itself. Consider quines [1]. (Programs that, when run, produce themselves) They serve no real world purpose, and I consider them beautiful. Kind of like the restrictive format of a haiku. (Edit: Or perhaps tesselations, e.g. Escher's work [3])

I particularly enjoy what this artist(?) has done with their 128 language uroborus quine. [2]

Edit 2: I expect the objection will be that this is not functional, or a "product", however the uroboros quine does have practical uses. E.g. as a system stress test. If it were marketed as a stress test, its artistic value would still be apparent to a programmer examining its structure.

[1] https://www.nyx.net/~gthompso/quine.htm

[2] https://github.com/mame/quine-relay

[3] http://www.tessellations.org/eschergallery2.shtml

The circularity supported in programming, that programs ("quines") can refer to their own source code, illustrates the same issue at heart. Yusuke Endoh created a tantalizing Ouroboros quine cycling through 128 languages: https://github.com/mame/quine-relay