If it's a 128 language loop is it fair to describe it as ruby? The other 127 languages presumably have all the information so you should be able to start and end at any language? I guess in its current implementation the ruby code is the code that ends the loop? But that is optional?
A Ruby program that generates itself through a 128-language quine loop
61–63 of 63 posts
Re: A Ruby program that generates itself through a 128-language quine loop
#62Earlier quoted context omitted.
It's easier in some languages than others. There is a delight in doing it, but don't overdo the anticipation. I've found greater delights in programming.
Like refactoring someone else's code? So much fun.
I've had a good deal of joyous fun exploring quirky ideas with mathematics and software. It's old hat now, but back in 2011 I repurposed an algorithm primarily used for document classification by creating my own tokenization of features and stuffing it in there then running it through a ton of photographs, but forcing it to only 200 dimensions of freedom.
Since the algorithm didn't have room to fully separate dimensions, it had to start grouping photos together along dimensions that had to account for multiple topics. I'll never forget bursting out laughing as I explored one particular dimension that was "motorcycles...... and photos of women taken from street level aimed at their scantily clad behinds."
Collaborative filtering proved to me that some stereotypes really do have grounding in reality.
As for the quine stuff? I actually had more fun repurposing[0] some of the ideas for a letter to my MP about the dangers of electronic voting back in 2011 when it seemed possible that Canada was going to allow it at the federal level. I chuckled more at literally sending self-eating code to a presumable less technical politician than I did at getting something to repeat itself.
Re: A Ruby program that generates itself through a 128-language quine loop
#63If it's a 128 language loop is it fair to describe it as ruby? The other 127 languages presumably have all the information so you should be able to start and end at any language? I guess in its current implementation the ruby code is the code that ends the loop? But that is optional?
I don't think so. It looks like the rc code generates the REXX code, which generates the Ruby code, which generates the Rust code....
The only thing that separates Ruby is that it's formatted into ASCII art, although it's not clear if the REXX output is similarly formatted. I can't say I've run through the cycle.