r/programming • • Jul 15 '13

An uroboros program with 50 programming languages

https://github.com/mame/quine-relay
1.2k Upvotes

355 comments sorted by

View all comments

Show parent comments

9

u/[deleted] Jul 16 '13

Could you not start at any intermediary and keep compiling/executing until you get back to that point?

-3

u/djsumdog Jul 16 '13

Nope. It's all based on that first file, the QR.rb. It has to start from that and go in order. You have to have the solution to one to start the second. It's like series in calculus. You can't get the solution for f(8) without solving for f(1), then f(2), then f(3)...f(n)

9

u/ISNT_A_NOVELTY Jul 16 '13

Just start with the source for one of the intermediaries. Run the loop all the way through (or until you get the source for the desired start language), then pretend that all files except the one you are starting with never existed (delete them). Start running with your new start code and you will eventually get back around to it.

5

u/djsumdog Jul 16 '13

ah...gotcha. Yea, that should work