Re:Quine Relay
by thedigitalengel on Monday July 15, 2013 @08:16PM
(#6049339)
Representing self is actually not that difficult or mind-bending; you just need a representation that is isomorphic to the program source. For instance, you could store the ASCII symbols in an integer array:
The core idea is that you can interpret `array` in two ways, as an array of integers or an array of ascii characters representing the program source. The only difficult part is adjusting array_index. With a little effort, this can be scaled to a chain of languages.
[ Parent
| on HN ]
There are no comments on this comment yet.