3 ms·
It's awesome how it can maintain the image layout in the source code through those 100 transformations. I wonder whether it reads its own source code file to d
by TuringTest 10y ago
It's awesome how it can maintain the image layout in the source code through those 100 transformations.
I wonder whether it reads its own source code file to detect where to put the spaces for the image, or is it all encoded as data in the ruby program itself? I suppose it's the latter (otherwise it wouldn't qualify as a quine), but I can't figure out how it is encoded.
- nacs 10y agoIt appears all the languages' code is encoded in the `code_gen.rb` file: https://github.com/mame/quine-relay/blob/master/src/code-gen.rb#L1030-L1056 https://github.com/mame/quine-relay/blob/master/src/code-gen... < VB https://github.com/mame/quine-relay/blob/master/src/code-gen.rb#L120-L146 https://github.com/mame/quine-relay/blob/master/src/code-gen... < PHP